From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 712B9C43334 for ; Tue, 12 Jul 2022 16:11:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234241AbiGLQLi (ORCPT ); Tue, 12 Jul 2022 12:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233916AbiGLQLf (ORCPT ); Tue, 12 Jul 2022 12:11:35 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE235BDB9E for ; Tue, 12 Jul 2022 09:11:34 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id ss3so9151346ejc.11 for ; Tue, 12 Jul 2022 09:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=qvnGgeO99cNBndr+zz3vZPBPjheS4AqDg5tJYJa9iR5ARJ8GPd50mYESF4pgF6HdFl m0VBCK+91GngOqkbtm49sDlQL4Jd82szEHwB5HnSf+wox0J90LlQarAzbvJqQQ2q+UtN iAWTSxgnzZ/RHK5tZkYBxrLflMZvalt6vu7lY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=mS9bKB5yv/xkEBmTwuOEaaKPIloRiV5Wsm8u+FYTq97GC9Nt+X+6uS4MaJyEWDTgsj lD9HOVcrXuyHa1hlCDe+xla557b3J6p79SZ6oMWxhJRovtDW6DxaxEa5mCrvYYSHqR4P Jn/i4NnboJq+XKh5VfXylOT/5e8vSdA/gUVtfa4QViHN3mtO0d9mtIsccLJocgbIj3fN CFYs7S906qcxkNc/A9vQHPQNnzKnc/YB0ZD7/IhL3FMmr6B11swgkQHW9mzpmc9v5DWk 5EC+dLt/1D5SmIRrICgjp7nH3n68o3GunlLKIWIX8MHb+8jW/4u+OvOK3T8TbHfFBCQY r6jQ== X-Gm-Message-State: AJIora96q5UvWa5pM/Y88KVl5qVIhV1Vg//TJtevl79wMoV3Y4DQ2e7q tMiSAoGfgS9ukSiPgGagC15DtTve4SVksw== X-Google-Smtp-Source: AGRyM1vzGSUHcJzBp/hgiaDv/invRmw4l+YZl3HEKr2i8km6/o0VBKy7xDflf7yWj8fy9tbhieIS9w== X-Received: by 2002:a17:907:6e05:b0:72a:a141:962 with SMTP id sd5-20020a1709076e0500b0072aa1410962mr24563519ejc.545.1657642293037; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.retail.telecomitalia.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id h4-20020a1709066d8400b00722ea7a7febsm3911498ejt.194.2022.07.12.09.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 09:11:32 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Michael Trimarchi , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/2] dmaengine: mxs: fix section mismatch Date: Tue, 12 Jul 2022 18:09:08 +0200 Message-Id: <20220712160909.2054141-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220712160909.2054141-1-dario.binacchi@amarulasolutions.com> References: <20220712160909.2054141-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch was suggested by the following modpost warning: WARNING: modpost: vmlinux.o(.data+0xa3900): Section mismatch in reference from the variable mxs_dma_driver to the function .init.text:mxs_dma_probe() The variable mxs_dma_driver references the function __init mxs_dma_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi Cc: stable@vger.kernel.org --- (no changes since v1) drivers/dma/mxs-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 18f8154b859b..a01953e06048 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -834,7 +834,7 @@ static int __init mxs_dma_probe(struct platform_device *pdev) return 0; } -static struct platform_driver mxs_dma_driver = { +static struct platform_driver mxs_dma_driver __initdata = { .driver = { .name = "mxs-dma", .of_match_table = mxs_dma_dt_ids, -- 2.32.0