Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1567197rdd; Thu, 11 Jan 2024 03:11:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdR23TA4g8PQ20VoZgT1d32KDJ6y3NC+oWZ/KlmlEXudk2sgDmBpONp4iC8paEO3r1M1dI X-Received: by 2002:a17:906:3acf:b0:a29:bec2:6e69 with SMTP id z15-20020a1709063acf00b00a29bec26e69mr225455ejd.94.1704971465621; Thu, 11 Jan 2024 03:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704971465; cv=none; d=google.com; s=arc-20160816; b=XsK6ydlh9xJIN+3g5J62Bgax/FVBoJYHYHX+Ru7u1LdjnxxOUZShq4H/l3j1c0s96v 1mEcrShGzj4mW5t8i6Serk8UzaUCjZGuuEzmd/aNuQw8C2VcieRYRg1jL+Jf7YN10482 sPAnfdnJ44T7TgXjkvowfl19f/XYi4RO5Dnp7nFe0BIdksiIBVdwBuYTLjug0qBf42Ih ZP+gRYbQ1RjqpXyI9L4rXzsxRWSlmDHZme/haP1Ho+XyCVN91rpQU0RB0dfryVVfyfHU jODQMqlcnFLQfDdGqN5ek04ZOrGHgj/F0UKv9jKatW+X7ercY2lciI0pa6rLOYxDkWNn NJvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=DrHB+y9PgcvV0CSGp8H420Yn6g7abiIoAQ9Qr6Gyars=; fh=A3mj//epyrnPI+Nu0cAg+0lvHom+ykA+vnXiDTtPSFY=; b=D60s7uk4hGzV5/79M/0+MkA/7AQRc+/H7xYsbST87vSA9fjYkvhV9VYpWenJodbLu6 8gRZsnmeRA92oW99BJoJA6jjkEMTyPb8FEbJGAF7irolddnIhZnW3Jbco4Uh2NJrQgSj aYPmlDubtTnX4pvhawULCgQIl3T4vyrPtBN/VmHQRmWiZJye5dnIkYfViBaVI0wW0fpQ 3igke8M06sOZuXyE7KZ31zGG0eNKFm//70IuzR5TyKE0AO8WNSMzl4netXvfNppt6irA vhqHsIOSuhj6jhFLt5M+VFvspoiL5CyR7JiWHsDUnBxKsKcTZtT9/prvgvigOR9s8rVJ qJ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=GkipVFTE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="Y/8wUkSJ"; spf=pass (google.com: domain of linux-kernel+bounces-23093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m12-20020a170906580c00b00a297d2fae1csi387065ejq.594.2024.01.11.03.11.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:11:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=GkipVFTE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="Y/8wUkSJ"; spf=pass (google.com: domain of linux-kernel+bounces-23093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BA2421F24687 for ; Thu, 11 Jan 2024 06:25:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A533FC01; Thu, 11 Jan 2024 06:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="GkipVFTE"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Y/8wUkSJ" Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A202FBF2; Thu, 11 Jan 2024 06:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id BE0CE3200A7A; Thu, 11 Jan 2024 01:24:17 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 11 Jan 2024 01:24:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1704954257; x=1705040657; bh=DrHB+y9Pgc vV0CSGp8H420Yn6g7abiIoAQ9Qr6Gyars=; b=GkipVFTE0PStlL9e/y52pEHOHM +nDgLIhX+lPWbqe7arZFqGvrxEt/mZ2l+BGl0OvhbIbEPvLfL1/Y1Qngp+0+Z+aY ua4T6YTQxQl6G1i4M4Dx9lXbiodzGTXB0ZCE6zn5qhxfmc//SR0UyHHkypMqGs21 GVTc8LiPYV2ObPT2XVVQflil3evqzbZ5gOu1J/5jZcrQjP2mG6chgGRBCUuNmbIO 276SYaLT+zSGmYn2LS3pQ8xEMnqywOtbo2oRX7dTggg3QFaRs0Uwi9URroObMNf1 A85G+p0O8KWiXf/pV0YFXLRvK/YBlm5FPQeJQBa/sawDBpG+G1CKdlMFniNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704954257; x=1705040657; bh=DrHB+y9PgcvV0CSGp8H420Yn6g7a biIoAQ9Qr6Gyars=; b=Y/8wUkSJEobH2iVWvcsm87q14HOzEf7pmiM7brlRtgQX 4L/XOIQ3jsYxcIELJUxK/d5vS4fg4bOf9TrGu9/+HRslPN/3bzXGndLFMq2u5mA/ 1X8DZhvGY+RucQ7w/2slxRdFODZA4i7KOf6OdbuxnWyKx4tF05DUN1drg3YKrHbe 3uKiuIKe6XyazwypVu4xDflhDoAOa1KSGMFKiMQyO8qCAPtaDokB2ioy1sYLm9LU joRdj6mJ3ikCQBFIpiqaj+huP+Gbf6ZtVDeGqAaVnekDjpLcHrJUSjOzCZgPRdL8 jnxMLt2UJMOPdVusDcoeSqJj2s3LyklhjexnBI7m6g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeivddgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D2E92B6008D; Thu, 11 Jan 2024 01:24:16 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1374-gc37f3abe3d-fm-20240102.001-gc37f3abe Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <343cedc4-a078-4cf8-ba3b-a1a8df74185b@app.fastmail.com> In-Reply-To: References: <20240110232255.1099757-1-arnd@kernel.org> Date: Thu, 11 Jan 2024 07:23:34 +0100 From: "Arnd Bergmann" To: "Frank Li" , "Arnd Bergmann" Cc: "Vinod Koul" , "Peng Fan" , "Fabio Estevam" , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH] dmaengine: fsl-edma: fix Makefile logic Content-Type: text/plain On Thu, Jan 11, 2024, at 01:02, Frank Li wrote: > On Thu, Jan 11, 2024 at 12:03:42AM +0100, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> A change to remove some unnecessary exports ended up removing some >> necessary ones as well, and caused a build regression by trying to >> link a single source file into two separate modules: > > You should fix Kconfig to provent fsl-edma and mcf-edma build at the same > time. That sounds like the wrong approach since it prevents compile-testing one of the drivers in an allmodconfig build. > EXPORT_SYMBOL_GPL is not necesary at all. > > mcf-edma is quit old. ideally, it should be merged into fsl-edma. I have no specific interest in either of the drivers, just trying to fix the build regression. I see no harm in exporting the symbols, but I can refactor the drivers to link all three files into the same module and add a hack to register both platform_driver instances from a shared module_init() if you think that's better. Unfortunately we can't have more than one initcall in a loadable module. Arnd