From patchwork Tue Jul 12 16:09:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2107 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B7B663F066 for ; Tue, 12 Jul 2022 18:11:34 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id x21-20020a05640226d500b0043abb7ac086sf6474638edd.14 for ; Tue, 12 Jul 2022 09:11:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657642294; cv=pass; d=google.com; s=arc-20160816; b=O32H8VIotwF/CpQVGdX3Z9I116KuVpX3EmLh26fk8Fr7apmHR9OZep1yTizu1EV80X IOsTIItutS+cxwSLJvRMsDm5NwQ/L0VvRN/hMepFWidQ7+rMnhhnAyjzCPeFsjc/ASOp 6zgf6kiGMcT6Y6xsTSbOkxV9FYHWPRDpTgo2yERKcARWnis+NeBiWm6gO0M9iVEgJTrf 3eJJCjlU+sbIAzHp6HTO1lTosNOCay+a6o2WvMkxUM2rd2Jbh/dhMaVKoKe8/djlhJLL vDojwG92FKp0tM9Nd1vDx6wvaXCJ6nQXM6lULkiQ9MTx8IEsUtVndGVXY6g0NlFxk/7F deZw== 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=GbqPZPz+8aez3lOPYfCVxpxGQcOErZIuKc9qDUPEud0bJjuzoOgPtQS1sbD+WJNlnh uyXHPP2G6Afqcv+CZpNdVxeCriOTUX4i0xAhXuLqAwZARJVfxsMvddaxzXGcZxXVTU9C eylWoqMT5z/KH3bVNJLcI3J4PZ9Ak3ErRmP6CbNSq1dsJ7QpzCQHt4uyiS3xl7DrmRzP vD7bBURWsYqGbestWUsow9cKzx0AL0p/TGsVnkjM9JL5GI93R/5t4Z3slHMjqiF6tFLS t6rRbs5sZw1R7gug4bETxg4+nA2lNBZcKAlC7hMT1IA7vzHiSw3Hyil+tYUXJqskxBXW coEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qvnGgeO9; 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=WcJmGQCUUyy+wkCofJdKW+sQqKdYlZbSQc9pP2EzLTr9VVNWQo+Stqio1MHEV5Hfz4 CL1sbDI25M1+Hj2qyZ++9Oh8vedJeJsoaV7/mguCfVdo4W0VmSmN9sNI0rRthzmzVgxS 9lERs80StVKyJ3B04pbIS2ggi3/PFT6ZLjVq4= 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=SwGxgyjgrYMlR1yjp18//XEV0E0hC3Jr7hEYFcWMIr1WeWerWXIGdCawvTTxev/dOB crw5yl/efz6f3gtB360x/T9GlIKxsK16kNfgINR1qhfdi9reh/Naoi86uue0+6+LIDBa D7Oj80F0f+gvbHnwFF36f+Pe6ckfFFq/zQEPRXCgCcAgPkjv0JHmo0nujWbxfPKWfwjt fGWB0t90NGdi/1wy1S/OPmh2BzyZ1r/iivZGqsO5JJNdGVKwY3F0ng/agV9GaxRhRJzX D+LdL0q9Mhb64L2ATsw2BZmd5sfDgTq2jj2rfbPMl3ilsMKFG0b9My5xIESXv1mvKnpe fstQ== X-Gm-Message-State: AJIora8VCy9SHKHxetyOM4bLecODdvUk649fxqpj9FSxpwcQtdC9+6Iy qyBcylg0CNfWSlSIepN/EwpN49xI X-Google-Smtp-Source: AGRyM1vYwsFDZAACaJwDWYL7OVa/5XxxJYJWafPHFJyzCRoHu8ZvPj2INg2dUl48Ua8LtWlPcDsWFg== X-Received: by 2002:a05:6402:1909:b0:43a:64bb:9f27 with SMTP id e9-20020a056402190900b0043a64bb9f27mr33787261edz.24.1657642294365; Tue, 12 Jul 2022 09:11:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:70cf:b0:6fe:d027:3c1f with SMTP id g15-20020a17090670cf00b006fed0273c1fls1722152ejk.2.gmail; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) X-Received: by 2002:a17:906:9752:b0:722:f10e:b464 with SMTP id o18-20020a170906975200b00722f10eb464mr23579095ejy.539.1657642293209; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657642293; cv=none; d=google.com; s=arc-20160816; b=hrvIi0CfFAwxweLqeMMPTHb0hgcqEmahWAqQIEfQcv6gOw8grCkIYT5qgVzm/2f9QA rQ2TAFIJAZq3P+2EBMI56PwqWomLhKYoDdJb6PNtllqKLHVA2Tzeq8P+rRdTCoSeJyNN 6PFp/3AoVhoT1Ct92yp9nN5eakQaOMOJbBfP0J2ZHx7mBlDWAgO/Tr2/ZK3Z5WwXhSgi Lg8+GMUSQOkgrf4G3S/QU62vncAnINHTaDdizYoO9YVGYMwLSWSUwsRHKYVoB6U+msRO VgH2s7khz8BrG0QLfaEw5BVfpQDlXRiiJcwnBSW5CrtJWnA4rnJytEPwqgcqUpkcYvU9 wdnQ== 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=s05hYph2mQJIlBEnIc3Q5xMSKn8ArtT+7KLUVcZvmBXYIKs8dsMlMnJ34YnNXh73MZ WOQkL5s7rrkGDg11CY1w2liIVLj5OTueTWN5SbrhrduWByBV9d/d6rED2+Qf1hyO+I/p bYQ6ORMP8r47+XEd4RpzrqmTzK2G0Msxmo4afvt13dKjOuyua/arlfVBEdbUFxYn6zAO PcPCH0sE3eAQb43oVlLb7jj/uNTh4vSqp+HFXlpphEHMe01tk8H0aOw8Y4R1bRuxy++V 7J3nkHuPHWTOl6G9+nk1ftjAPsx/1LM6ZtQt75AL0fG9H27QdFZnSEjcOVpE9mZdElWW 9s8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qvnGgeO9; 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 n7-20020a17090695c700b00710f0bae981sor2767599ejy.125.2022.07.12.09.11.33 for (Google Transport Security); Tue, 12 Jul 2022 09:11:33 -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: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 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=qvnGgeO9; 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,