Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp211163rwa; Sat, 20 Aug 2022 02:09:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR6AOW3laczACtPLjSE81IP6IAfLwG5HkHKkWZntusOjLYRVSoMCxom2bJpY7hZcPewMQhRg X-Received: by 2002:a17:902:bb8c:b0:172:74c9:62bd with SMTP id m12-20020a170902bb8c00b0017274c962bdmr11119607pls.87.1660986599430; Sat, 20 Aug 2022 02:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660986599; cv=none; d=google.com; s=arc-20160816; b=L/vvbArgvGT0w9QonBHWD/oU1q/RzkvxzD5eqsJdRqb/1pu66jImrwmeZGI1xcstHj mKAIoUSzsgqPq/iFjnKD7QfONdrAu9XpBKGRp+3+eVr0nK8s+VDxgbegPXwGUkErBD6c B7cUIa5HMOamNyZ5MdTE2HZoY/u5Ksj/IX8FrPSIBxj22bNtaN6k8yhKj4m38Bl9tS9D 3FwNCCKHt+PLzAOwV8Dnd4aAmXVc9DDZ2yAtAsB74zcT8ierxcBV4vweDkpE2TY+qITj JEcuY3gGcMKy8EKflQf8NQHMdXe4vyK6rhvgfT557bA/4NdNIkE6Y4xPgNcR8AyYYFRZ usGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=guCXqC+QPatyT0smu8jeNrR1IWSPcUrI5DMwCqHmumpaDxS8Mow3F2eJnz8hdsm27K z5YK1AUuCjcFf4TKOI2pZUsNRtDoo3FTlDajg5ky4YPNAXMdkLKzdcdyoxL1vhh7NHfk rfi0UT6Ptp53zg/aqGpraUJ6lA3cc3R7X918DbcTtBvCsgCFFEoy7ffhCxEEoJRT2QfU ice+32jtP6etvuMjC219z9/4nr7aw+0EGUMzuCdJdek/8V10/Xg7I6TeVUXO+1+zPxiC uezwPzd4ju3J3k0Y03PknOpF2X0mNuN7Wzz40gsvd806WVb8AUsL6HBE3s7ijT8a/sSr HIuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PFBUJaVj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a63154e000000b0041cda12f984si6698287pgv.20.2022.08.20.02.09.48; Sat, 20 Aug 2022 02:09:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PFBUJaVj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344621AbiHTIpL (ORCPT + 99 others); Sat, 20 Aug 2022 04:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344722AbiHTIpI (ORCPT ); Sat, 20 Aug 2022 04:45:08 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F5108C003 for ; Sat, 20 Aug 2022 01:45:07 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id fy5so12716025ejc.3 for ; Sat, 20 Aug 2022 01:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=PFBUJaVjPkRQdOOwLzx7iIz20v9iOaOvAdqgW4jBePTLYIdeSyUvJ2zwu3Q3o4Cq6i 5B6mfTVTYUGtqzw1bRS79u25XlaALcHR8OpDENAuIFtrJVVth3UIcTe44Y6AhfObiNld JnuKWXZtlJiWWDwpgd8DawXuhDAoPFtD+hz04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=eeqOd3jn0piQSi7ucwMowvm2iqzH8mdBq0QEqhiGZTgHx3HxbJONAQ2XqhNU1zAV5r B6G9QNFhPLkkKYJXciF6Q+pc5BEBPz5R6wWEdTMBk6PjtJNdeORgFslA+NCFaY+uLRHU NAhQPTcxqomWO69PzvJ07UxtLvxvqWdamTVstP6abbru7iGLIzgAmH1IXuLjZmU6deuU 8zvXIE/1ULgNhbXfiUhCAJ4RPqbhKql4sm1pYJbqWQZh9p6PLELoRNkoJQkfwo82ZjNO ljWw7mD+trSEH+C4aWUsyeJQO3ZFfM5o3FJVtuPQi9ECIurOMGC2WGXdguQcb3ym/jVB 2jYg== X-Gm-Message-State: ACgBeo1BpIGB5chfRkeHyFY5J+6X0lFuPiPc7JwnUaqSeNhLPXwMK8QM cVUAeTFoF7BJQX+5ECyhSTGjwDZ2rWwjWg== X-Received: by 2002:a17:907:7617:b0:730:e317:d0e9 with SMTP id jx23-20020a170907761700b00730e317d0e9mr7257826ejc.736.1660985105254; Sat, 20 Aug 2022 01:45:05 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-31-31-9.retail.telecomitalia.it. [79.31.31.9]) by smtp.gmail.com with ESMTPSA id k8-20020a17090632c800b0073cd7cc2c81sm2170821ejk.181.2022.08.20.01.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 01:45:04 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Michael Trimarchi , Dario Binacchi , 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: [RESEND PATCH v5 2/2] dmaengine: mxs: fix section mismatch Date: Sat, 20 Aug 2022 10:45:00 +0200 Message-Id: <20220820084500.689445-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220820084500.689445-1-dario.binacchi@amarulasolutions.com> References: <20220820084500.689445-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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