From patchwork Thu Jul 28 06:18:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2271 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DB1233F1ED for ; Thu, 28 Jul 2022 08:19:07 +0200 (CEST) Received: by mail-ej1-f69.google.com with SMTP id qw22-20020a1709066a1600b0072f43c1f59bsf280212ejc.6 for ; Wed, 27 Jul 2022 23:19:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658989147; cv=pass; d=google.com; s=arc-20160816; b=X1ErGRTTyT57+1/KlFHaPMyOMvzdyqv0Yk2kyIIpcE/cSSmr1gv1BK8sZe12UaRFKQ WepGRTMaDJeTc8VYlViHrVnxH7oj+Mi1Ydxm8xGPkaetqFb0hm0gX3U8jRXvRXV5XgN7 UATSqEXW7NVUJHcJzmX0i19iThRVlIauzby/HvwAq6OIMMmTN/8TL7Fpn6qrYYEmZmhO Ec4Wov6Qqq0iJU5bnv4qSKWA3iaIj0b1n5KTiO3IBCshjP2w6q0SdkoESDzjPfdITnW4 c6efXgsM1Up+aidcF+ZgAyk4pupZ2d1nJqQz5sSI5wpgPEbRzp8Tl3SsQRWnlHxmDvg4 21GA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=g65XVqaFXbdx8XlvwfIdoCzIcCB3BgckoPAxLhcBm3iQiHF9/UNnO88tEXxWWTLUMY vAfqHqg+tsQNvtnmY9wTHPpVPufXWf3uEoC6BUo8aFdHHEELgYq53O2uXtHZRVBTkTta p4+jX7rpITG1M4z6RZoYaddubDo9h41ulaaQIqEPS0PW4ZVco27CRyIhy0M2tpnkFDhd n5bDwdNPyZVvMLrZ0Iym1EMDr/g9Zb+1DLDLZY5yUDensSXBSfOtF1jdm2e7jGvVlmDz XHvvr+thiwLUdsCunUAPQTHuaIggdBLz4WBxSSo6FSsDWtjNY0dR8qbspziF6EDQEeqg TL5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JxzV2oSf; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=LSq0/2xkc8HO4dm02/CgxM7iIfMmRiF4E8eaRizTKER7oh5nHv2uHR7EtLpG8CW/5B 9GinH0YkR06+EGcPnM+43ctXyGxhRt5Tj+ZMpPIRi6grKFsNc16kXh5U2aBevnzRnZB2 W7wUw4akAjr2Sa/NGKZ65i2kXCxS5jKw3UWrM= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=02JoHQKXCpRAJGtH2/bOdca6mQqtT9egB+phUjMxLzhSMWrOvhj3BfVBQry+hTqWtJ ZQ88GK4qtdliTYPn1ePrK+IjdhMgGbR4c/PQnjm1kq8rHMLnR3hHfFaCe1uGc7Ylxzc5 2BA9lLSNBCcowItv7NwFg4QteaO4W+VYnHt2Av7rBi+zMROfyYbWnEGGMEYBE7SE0Ar4 qPKKxwqFFHXBM0VtBKDP8Il6cfvxyDT8dAe/8AYP63OHGJ0Iu51sw8gSN4QShuA6UCHM 9F8maqyohVMmbwBSdp4jJGfqhNpEUm4CjPjVErXTZSDUkZx3mfvnY2Z5YiKWkLJG4AjU 2kbw== X-Gm-Message-State: AJIora8uIJsMnuoeFOhGsC4KDKulHXqZUIyEHLwgJebniWxDQvmZclc2 XmUIFuB4eUwoUthXwvm1psEljeaM X-Google-Smtp-Source: AGRyM1sCmbHGvQjIxokIIKLzFm3FbWCLwIUsL8N7BG9upvlHTDn20pPq5K9BbhORbnCCpZtDQzbjZA== X-Received: by 2002:a17:907:7d8e:b0:72b:9d09:5c48 with SMTP id oz14-20020a1709077d8e00b0072b9d095c48mr20577901ejc.38.1658989147796; Wed, 27 Jul 2022 23:19:07 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1e90:b0:43a:77a6:b0d with SMTP id f16-20020a0564021e9000b0043a77a60b0dls859560edf.3.-pod-prod-gmail; Wed, 27 Jul 2022 23:19:06 -0700 (PDT) X-Received: by 2002:a05:6402:3514:b0:43b:d87c:7a99 with SMTP id b20-20020a056402351400b0043bd87c7a99mr25223691edd.43.1658989146642; Wed, 27 Jul 2022 23:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658989146; cv=none; d=google.com; s=arc-20160816; b=priWisWzsCRHFhiEFqrjX1aXVdPwF832eeS8KZevWzpa32EPISZjTzkr8jf5DTsZ/g KHwrMhSYMF+UUGF4kZf+Sh0N2cGC89wYXr1lGXpusbt3a9L6xG5qHwBQJj3IzLoxbH9K uXuE/8EnF6+l1S13+Kzs70HiPKaUtW7w763bZhelY4K24MqHt98BSrsHEQHT6yAu/zmp ny14WzuPQ/EJ6ZBNKaQ0BGiikajnNRAoYhPwnflONOvHP7Juyx4uTQaJUHgdDEpo8UM7 /6RKtsFzjqWIaYDIGEOxLZAkP7UEjPG+FyhV7x4jFGOvZ6vs3QQ9kYo/izmZZ2X0U2CS WJIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=E0c70pOKu7AlubebzZFi8zw28L7DFdGUk51PwlVqUJ2VfHQ21q3hQ1eJsmlg5GD1PJ aWJFBKFL8ejByV1LLwh3DlBZ5CLxxqY9RXpD4aR+e9G5MxVyQ4HQLy+0d1E3Yk650w07 oE8gQvTcfRKkM+zZvh53VOCLYlKEfVXBiX/yWnqCdXEf/FvcEe/EDNkk7av0JNPOUk1l RGOZC703Mi8L9EK8v/fPEiIUcVelYwozpy3lZO73d86Z62iwfYYJlR0WPbDkMSI5Ctbg 0WgzC19pK7KUf8ljI2MFAbAwOo92sJzsEuVrlxjZtDd6Yg+7nYYsV3qT8IM1DDiVLKTI 2g3g== 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 dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a36-20020a509ea7000000b0043b7048f177sor80519edf.25.2022.07.27.23.19.06 for (Google Transport Security); Wed, 27 Jul 2022 23:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JxzV2oSf; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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,