From patchwork Thu Sep 16 15:59:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 512991 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1366080jao; Thu, 16 Sep 2021 09:20:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOmn46jOb0zzEKMxS62Opc3wk6O9MSuf2s8vvS813ENo6vFvWDpUl6u+Ku4rXs9eJwnu44 X-Received: by 2002:a17:907:995a:: with SMTP id kl26mr7207758ejc.6.1631809222515; Thu, 16 Sep 2021 09:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809222; cv=none; d=google.com; s=arc-20160816; b=Lqu/iitBiNR1+0gyq05vmvDC0y4a5E7jcU+P7sg6k0GULCONheU9GbCLGHeX7JaMqy Y0nDM9boSyjbKS3zoBxLAaQr3iR9bvnsekO6+11hkRSjnG5b8ohwM+3Vlfn9RRPuKkn+ O2LnKykDuBGoP1XJsNtH8CL78eMPYP5kVjdCPRD9fMvYrGnv29RsvFbHqViaDFIUd6yl kDhyVyxplowVh6mg4LPv0o11LBGbhj7Y+zIQw1ibNIeJb0bsiHr9gTVcjgdCHdER3Lpy QyOu8ea75Ta0Pazi+srR8+hbUQJYkhWtJPR8AdwIWQDIE7F3aeUWNQ6T5TSoE4Kb8sGg kSCw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RHaLnAGBfpOveec361pOc5qsR/ANAm1l8bbxGKroKmI=; b=1EqCJ0Sl4InbF4f/XSJ/GBaJ3SaEHivynYmR8WyXZqkQoYW1WVToyx6TbegxmOVsXp b6dBhg/8ZZXsqT5q7Y50KyyYmuPuqfl+MSSRTH3G0mp9h14NYu5rmOKQPE6bx32Zy1jI 3juGlEsURGzL1Xt9VDERUntTVVo8sqQtEDAvPtJ2nX9wpXHu1VjBpPKgMtrqfa969KAj tWEr74KP+76k8TD1jZbyKJVwqnaSJ5HCVX7gEduvUlNWG7d0WU2WaI/qBlBqtc6IKUui ZANQtzXacUOJTVPu9MaFeOxi8ZSVk9nIWk/k33oCrZjKnuFBWrVns7rWuPO5K3Z/e6MA D7sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UP8Kql08; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca5si3698550edb.284.2021.09.16.09.20.22; Thu, 16 Sep 2021 09:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=UP8Kql08; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241528AbhIPQVj (ORCPT + 11 others); Thu, 16 Sep 2021 12:21:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:59280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241687AbhIPQT6 (ORCPT ); Thu, 16 Sep 2021 12:19:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D1E676121F; Thu, 16 Sep 2021 16:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808842; bh=n5trVym9rA9eKT958C+3eitE2IdRM6j8B2EA8KcOOJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UP8Kql08kSg326A+KY2V5rBpGIiBuFwXqPZJWTsEZc2RI5uLLkT7pvngU5K5cmRiq ExL0K+Rc3GV2d6DNh9fhpsRoXz40VY9WSH6sujF2arGSHbAVR94A2VgF+maAM0it8Z rgh9HpdGi7dx3ZxcPG3Hq8X7BTb9T/lhAPCSrrIc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Greg Ungerer , Sasha Levin Subject: [PATCH 5.10 241/306] m68knommu: only set CONFIG_ISA_DMA_API for ColdFire sub-arch Date: Thu, 16 Sep 2021 17:59:46 +0200 Message-Id: <20210916155802.277116164@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@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(-) -- 2.30.2 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