Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp274118imn; Wed, 27 Jul 2022 23:28:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjLelxLKYBASm3fs09dK6d6yChvpo0UV4fOsJvZE3CC4EM1HCT0CxM+mDmSfs7YdcUDvO+ X-Received: by 2002:a63:164d:0:b0:416:4bc:1c28 with SMTP id 13-20020a63164d000000b0041604bc1c28mr21868083pgw.302.1658989695866; Wed, 27 Jul 2022 23:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658989695; cv=none; d=google.com; s=arc-20160816; b=uvNdLDMll2chBjMcVieK7JRebu0hkIikFYRjSRmdriOzWrRiZWwDdbozbgCVuKS0D/ f53AaSYryMV6vAg25wbse9W16Gq1JCJ3i/H4KOTvxQJfYQymEG4Rbw6FNV3TX0lYdsGx eKTUZPjJP4b7Udq2qYgzMcp3FrKxmmplKBHQbV6nxiZVGwXO3nAfcFBOg7NarPYkPUC9 9rUWFAviyhdzBytKCnafInwMj0+q3KliIFbWZxK5Sy7Ugap5tcMiTvw2uivIYkJvJsrw fQ4XmoMRgOxXpIA7E1uJ7u2PwqC3G3PPm1dT15H1FOpHy1BLes9Hqdz0lRsP+qSaCL5g YJZQ== 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=psT/0rnNVyYuwizOjmjFdh2EfUyxs1hyaQZ97f93Giz2S5k3xahte5XbJlUxskmN6A ub9vWscilKu/eDW4ohsbJyMq9Itjj91Ls7d1w4uEhK4jktVp3aPMVw3PATOL/nJM3Aui 9dKpY0ildlMuPX3VVjqD5T6KGvbdMxMgXfO2xnawrF05RjKcS1X42I+yBUFIqFeOUEJK D7lRZKXPzebvC97qa1DZGTMO1d/cEjDbeS7RSxQKnZTDZxL/z8dtOL7b98o0bdnKsNLM tErK1Ea+zwoM+aCSI5hjj2mLR1t7AubWfB0AkIN7vwo8pjcTxQ66aI6RH44nj6r/p9TR hnEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JxzV2oSf; 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 nd3-20020a17090b4cc300b001f2bda7da3esi1576863pjb.43.2022.07.27.23.27.58; Wed, 27 Jul 2022 23:28:15 -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=JxzV2oSf; 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 S234138AbiG1GTL (ORCPT + 99 others); Thu, 28 Jul 2022 02:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234034AbiG1GTJ (ORCPT ); Thu, 28 Jul 2022 02:19:09 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202CA5D0F2 for ; Wed, 27 Jul 2022 23:19:08 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id w5so877862edd.13 for ; Wed, 27 Jul 2022 23:19:08 -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=JxzV2oSfWwKritZ+fmuoWkOXRPsUIVzZhiFsuXbVagrOjYrHlMyQE3ykTSYSnDmW3u JUFSQpcMZYC+K91RrMsY4H6KlQ7vzRxdPTZjQ5f/toaKumjVjVAYVZXltUN9f2/Y2tni Fb4jE49zfjC8zyoV5FTPrQnoWkLwKoCPsILno= 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=7dgUe6nlAX2allkhX2GY0kPhDnpgXssc1ScKZLhiYZ2k1hhu5A7/RHc1bxqctVOM/E Qcqy23kxgiWNg+CNKuOAvBId4SOPV2Br7fGLyf0pP113/2o1Js8rWCroPezotY6u55It Gut1z1aoCrAonM5iscftTRrOjNaYGeG9+eCopAiZzJ8BKy4JCxak6XruY97ccR0dvT5m 0zHivs2Ywy6KeAvlkQGGVkhBMHKyhzJvcUytuUJ94FhO7HD/pxx/dT5ajbIwqrR+TzLW 5SLnmaaki/l/ZB53kfV2Ofwfnmoj/i5sT36cWzLubuKjj0+ikDqnpAldaifAfw5QI2x+ 01Aw== X-Gm-Message-State: AJIora+ZQcLDgkdODrlaGncmUI21Yt7r1sv1/pNp+ENYfKDzNW+p8D96 GbQD51v7uRpjql8ukY0fCJcO3cckY66Qjw== X-Received: by 2002:a05:6402:484:b0:43b:6e02:71af with SMTP id k4-20020a056402048400b0043b6e0271afmr26664127edv.176.1658989146470; Wed, 27 Jul 2022 23:19:06 -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 d6-20020aa7ce06000000b0043ba24a26casm105469edv.23.2022.07.27.23.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 23:19:05 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Michael Trimarchi , linux-amarula@amarulasolutions.com, 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: Thu, 28 Jul 2022 08:18:52 +0200 Message-Id: <20220728061852.209938-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220728061852.209938-1-dario.binacchi@amarulasolutions.com> References: <20220728061852.209938-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 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