Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp454746pxb; Thu, 9 Sep 2021 05:00:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz53s9cVypZogGtM/kT1MDhhQmXcqVueY4nFrxV8NtBzTbnVvZldZCOhc+ji3Le5Ufyrb1K X-Received: by 2002:a92:c68a:: with SMTP id o10mr2098725ilg.163.1631188812723; Thu, 09 Sep 2021 05:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631188812; cv=none; d=google.com; s=arc-20160816; b=yLEdwbz3fQ1Hjihv27qFATsMiwIG77kTU+InsYgtI5xGJXGW8YGwKOLFtDyn6i1nR/ b1J3cbF4uwcIboEB010fPh/aHP7/TFsScpC7e7Dol5oX5e09+TdN77JTSTgbOOhAzNw0 Q7loRNaB5sP6FJp7WZPCFyZmFHqpvwchmcKQU3X4j33VBo4m4yfpIivqRSoO242Us9vh XfkyGSwmTGqDQ5G2bqgVE3LMQ/wlF5xArxKGxs4Nb/+U1ioFcB1TncD4h8StWADJ0wEL JbNVrvI/duBLB8DcPlYCisX4dNWhgBIaUtQovZwhpHfRfErgy2kwzV/NmuoisP0dyTzG M/lQ== 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=RHaLnAGBfpOveec361pOc5qsR/ANAm1l8bbxGKroKmI=; b=EcAysTozUrsa1jLjI4NgjkNVJgitVxldFPL1wZHa7kyigp0LqMfmym+lZwZNS25Qb5 CwZgLlCs1HfGepZzBO12D5Exxv2NsCXG0vUVIp5L7yknzM8ghDaWd5ufM+v5lj+dSfGZ tSSKAEuLRa3GdXz1mgVSRp5pyEGihPc22uLeUTnZ28CcxUwxuoJt2nWS9U7RdFvhMvxn d5kH/6npTcv8YLPDc4kh7nfZkTMOxZLGYZZTtKTc50EXNjWpmyVRJVRUMLHsuTzKRtC0 dGST/J1XpSEfAMAfQSOFUeleefvCXSmftFPZLOTHe98RtshsbRjBroL/5aehFTUFsCZJ ZHXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uJ7CdJkN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si1514373ilq.148.2021.09.09.04.59.58; Thu, 09 Sep 2021 05:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uJ7CdJkN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240066AbhIIMA0 (ORCPT + 99 others); Thu, 9 Sep 2021 08:00:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:34230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243026AbhIIL4J (ORCPT ); Thu, 9 Sep 2021 07:56:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF37A613A1; Thu, 9 Sep 2021 11:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187913; bh=n5trVym9rA9eKT958C+3eitE2IdRM6j8B2EA8KcOOJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uJ7CdJkNmhM+9NAgnX76wLuUfpXiRP6bQ/fVVgeXMlCK2Y8mANereJEEE89qnIfQz 7n/x1veBdmoCNKffyM6GdcEA4yOQ8ruTEzB4PkK7fZewRfhcNemw3MlJvo7BA64JDI p6JnGX7xGj1EhlRh0VjvKfqZ8aF42vdGtzxqNWv//5iBg92ijuDBMc+GP1tz3kTWr0 0+emlI14xpg42ODBGQCAsMgJ8fVxUKLl3Pfnks59olLF56VALqiWKBT/To++TzfdB1 qKgIuh2z23DQpJuhfqhxBzP8of9nW5SHNSsAAyeuTG99v936BW+JJxjxyz8QSKhLr0 CxWtRvHodwfZA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Greg Ungerer , Sasha Levin , linux-m68k@lists.linux-m68k.org Subject: [PATCH AUTOSEL 5.14 189/252] m68knommu: only set CONFIG_ISA_DMA_API for ColdFire sub-arch Date: Thu, 9 Sep 2021 07:40:03 -0400 Message-Id: <20210909114106.141462-189-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit db87db65c1059f3be04506d122f8ec9b2fa3b05e ] > Hi Arnd, > > First bad commit (maybe != root cause): > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 2f73937c9aa561e2082839bc1a8efaac75d6e244 > commit: 47fd22f2b84765a2f7e3f150282497b902624547 [4771/5318] cs89x0: rework driver configuration > config: m68k-randconfig-c003-20210804 (attached as .config) > compiler: m68k-linux-gcc (GCC) 10.3.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=47fd22f2b84765a2f7e3f150282497b902624547 > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 47fd22f2b84765a2f7e3f150282497b902624547 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=m68k > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > In file included from include/linux/kernel.h:19, > from include/linux/list.h:9, > from include/linux/module.h:12, > from drivers/net/ethernet/cirrus/cs89x0.c:51: > drivers/net/ethernet/cirrus/cs89x0.c: In function 'net_open': > drivers/net/ethernet/cirrus/cs89x0.c:897:20: error: implicit declaration of function 'isa_virt_to_bus'; did you mean 'virt_to_bus'? [-Werror=implicit-function-declaration] > 897 | (unsigned long)isa_virt_to_bus(lp->dma_buff)); > | ^~~~~~~~~~~~~~~ > include/linux/printk.h:141:17: note: in definition of macro 'no_printk' > 141 | printk(fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ > drivers/net/ethernet/cirrus/cs89x0.c:86:3: note: in expansion of macro 'pr_debug' > 86 | pr_##level(fmt, ##__VA_ARGS__); \ > | ^~~ > drivers/net/ethernet/cirrus/cs89x0.c:894:3: note: in expansion of macro 'cs89_dbg' > 894 | cs89_dbg(1, debug, "%s: dma %lx %lx\n", > | ^~~~~~~~ > >> drivers/net/ethernet/cirrus/cs89x0.c:914:3: error: implicit declaration of function 'disable_dma'; did you mean 'disable_irq'? [-Werror=implicit-function-declaration] As far as I can tell, this is a bug with the m68kmmu architecture, not with my driver: The CONFIG_ISA_DMA_API option is provided for coldfire, which implements it, but dragonball also sets the option as a side-effect, without actually implementing the interfaces. The patch below should fix it. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Ungerer Signed-off-by: Sasha Levin --- arch/m68k/Kconfig.bus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/Kconfig.bus b/arch/m68k/Kconfig.bus index f1be832e2b74..d1e93a39cd3b 100644 --- a/arch/m68k/Kconfig.bus +++ b/arch/m68k/Kconfig.bus @@ -63,7 +63,7 @@ source "drivers/zorro/Kconfig" endif -if !MMU +if COLDFIRE config ISA_DMA_API def_bool !M5272 -- 2.30.2