Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2587407lqb; Tue, 28 May 2024 04:55:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWapr33r0yN4QIPb+4xHRLz4gwn6/DOyRgJ/Ce7Q4TiXaeIQo+RW+E8RDF18k7pcsly5FJLzBRs9g2gbSdh9hrKk8ySZIfytmiR/I7xRA== X-Google-Smtp-Source: AGHT+IG9AaGkbFP1WWPeI4NB/LO+P/Za8/gBOvM4nfrC2/ResRiTtnRx9aURqpeZ++s6GYeJePBE X-Received: by 2002:a17:906:3111:b0:a59:cfab:50d with SMTP id a640c23a62f3a-a626417a2dfmr866147266b.2.1716897307591; Tue, 28 May 2024 04:55:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897307; cv=pass; d=google.com; s=arc-20160816; b=WoDc66tWN+4DsNGBwhLJqg2Z8GTAI39bGpFMXQROLhERhgChINGLE2g11vC2pW2lHU aVZSIGHQ4qTLvAfPveKgPCpPx7SjwmnvjivdMZeMSclLDE2moqR/t+u85qlz76kDbl2x oU3piqwwDtXsDRmHjXoZsaeuZ1t40oodm3UKIh26m+fVNpMsO6dP5wbqnX+dvZtET1P5 dLSCV7KdsP8vdAq8YocCvkKUyO3rOoWiHUvXvSxEhdOa7J0LipoBdQSfa1ba5B+RmwXs 3mQPdwZm+L8dG+JEgW5AfxrlkBz+fBons5tFIHCsFXoCo6tU/613O+1L6JHuQkMjWdgB 4UGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=BcCWHhKdmnBVO5y1+MmAQa8GAyYtDoR34GA4a12eP9o=; fh=GOe8NSNFijLfeVY4D6Xh0KaQBsPH4p7Z0H66qYfzjmc=; b=fAOutjf+dD2HHhxS/lQ9LX7avZ2sMdzFhlNMeTcIEp855rQduzm/OqoiXEfkn6TShG 9unIHnA4ONbPGhD/cskfzaPSzgCQDe6mxWtd0LYMyjMCOd7PFheN0f4OFRdvllQnR2Yl 9xuLZ6G1ZsGxrA5Iru9gnqpCPxtY//xraVO9M5IbPv/gMe0BLNW/cyss1W+wAqghLQNB zo+ZOrDtFgolEGM1fsF6/f4XEPCi69izhWfffvdfDFzlZWayO3sF4WqTknQ8Z6q/qhYC sqQFmHnjPf8H/jVkuu0Q8jCrxtvOXsiruZjllJwjlB24lI7rQrf1AcSmbCzuLEYl1ZDV fE8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ELLVpAfZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6349ebc049si53152666b.213.2024.05.28.04.55.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:55:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192230-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=@kernel.org header.s=k20201202 header.b=ELLVpAfZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 4EFB11F239CB for ; Tue, 28 May 2024 11:55:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0971F16D32D; Tue, 28 May 2024 11:54:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ELLVpAfZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3596C16D31E; Tue, 28 May 2024 11:54:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897286; cv=none; b=oRgfjQvY44/yCMo2DTjSlx98TYxwKO41eEYqdMi2rfYZ6QhQ9G/A+qhzQw8/nGLEa0R85RbAxHCpqDyRLSAiGgSzHldRBflo+Isc94Mey9nZik8Q8Zxqti73wcdHm9D98R31EotXHDl+pth9aRlaliGZ0Ikg37MLqsPeK9YwekE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897286; c=relaxed/simple; bh=pLxvFN5xoZsmrrcBMk/UoNtiBh/fqcsPOnfsZ8fmsVQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=j5bPNtVT0ooLpPYnPd1sp9F6ZLTOnBOme8GCbfhPWZOiLEHg+kGMhXGyd9PPTYTd1cD8ZMzGYiRqVkSjETJET2H4Kvh7f4SLIP87KYw/SucjydUzB9lHRpqZpB7HVAo1/mkau8WRxujvidd8bnv2K/fBwXm2A7GSStCVHV5E1Wo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ELLVpAfZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10472C32782; Tue, 28 May 2024 11:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716897285; bh=pLxvFN5xoZsmrrcBMk/UoNtiBh/fqcsPOnfsZ8fmsVQ=; h=From:To:Cc:Subject:Date:From; b=ELLVpAfZw8gnXmQG8/5+WnJJZaVPKFcnFt8bg4L6b0QJiCV2d1C09Xes6bKc4+L+i OKpLeJi+EWcX02O3ZhjvKp8zOoMJ5BaF5UqlBUK3QNRLxwz7Km0jWNYQ9VkbYr/cEX 6wL2pSm69cruSgtH1mG1kj+A30DM2Cj9FvigAuOeqDwuYhY9PDMJKGIkAj4D7ulbO7 8nu/6OmrjNjNGgLIMmeTn4+cXRpadIl0wNIjI3vzvFURmtikDJndqqd2LH2Yg8IKjl f99ia8uAjdrjHs2lBneWpWMQFRTJIP5XOuQWUe0UWG86SmtFSf3NFP5tUXYC+MsRuE oNHv0c9ggE7rA== From: Arnd Bergmann To: Vinod Koul , Peng Fan , Frank Li Cc: Arnd Bergmann , Fabio Estevam , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dmaengine: fsl-edma: avoid linking both modules Date: Tue, 28 May 2024 13:54:22 +0200 Message-Id: <20240528115440.2965975-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann Kbuild does not support having a source file compiled multiple times and linked into distinct modules, or built-in and modular at the same time. For fs-edma, there are two common components that are linked into the fsl-edma.ko for Arm and PowerPC, plus the mcf-edma.ko module on Coldfire. This violates the rule for compile-testing: scripts/Makefile.build:236: drivers/dma/Makefile: fsl-edma-common.o is added to multiple modules: fsl-edma mcf-edma scripts/Makefile.build:236: drivers/dma/Makefile: fsl-edma-trace.o is added to multiple modules: fsl-edma mcf-edma I tried splitting out the common parts into a separate modules, but that adds back the complexity that a cleanup patch removed, and it gets harder with the addition of the tracepoints. As a minimal workaround, address it at the Kconfig level, by disallowing the broken configurations. Link: https://lore.kernel.org/lkml/20240110232255.1099757-1-arnd@kernel.org/ Fixes: 66aac8ea0a6c ("dmaengine: fsl-edma: clean up EXPORT_SYMBOL_GPL in fsl-edma-common.c") Signed-off-by: Arnd Bergmann --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 965fa49668ff..b3873d01a2ab 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -394,7 +394,7 @@ config LS2X_APB_DMA config MCF_EDMA tristate "Freescale eDMA engine support, ColdFire mcf5441x SoCs" - depends on M5441x || COMPILE_TEST + depends on M5441x || (COMPILE_TEST && FSL_EDMA=n) select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help -- 2.39.2