From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9E54C433FE for ; Fri, 29 Oct 2021 22:23:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3E7E6044F for ; Fri, 29 Oct 2021 22:23:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A3E7E6044F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0AcRbLLf9Uj9WoxfwzPA7N8ByGI+7sosdOWsNqWujpk=; b=f7cPwn/7Xpu1Yz hpk6elPWblSY9mDkIIzCdXND9YAKRduqoVpOEfJcEVteo/B/IAXBz/ZnmMMzhbrjQXGLiD/8cQRX4 ThWXm6X+a6MpOVfdacCyLclW5yoQ0TqZd4BS5enqZnWf2eEKIeOzdQaMOSv0rm0WXIg/IjPfp0QI8 0lYr982cshL4WOYL3NoGIJbpXdvxmh8qWybHCFPrzrCqc4fgxfRdNoKLYp57mRbzHtcjl4Wf3IXNZ iRrCJY+eCIQ6QwurRFMyjmOn30KIveFUw1ZuDiXu2HIuNGvYpbE93qFrzlakcIXfJ+sLHWEh+b3vU YhgOOywzMktssXtabhsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgaFg-00CRr8-BG; Fri, 29 Oct 2021 22:21:32 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgaFc-00CRpl-4o for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 22:21:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Do7L5x/Jp2vk5w/0hBh1oQ1CeFEeism1jwbxTAib4ds=; b=fC/7EXoX0qn3AdwgeEVSJmsZUQ epV3jL3ktl0x9QaArUocyphyoui8Uk2vR4cLJhRWJugb5NFpIlidT8oMtnN6ur5FXSF4RR0aJYZBZ hoSqdNgG5p9s4PLojNjPT+C+2KRUYFnnUTDJUZCHx2gxiadLOB24GyRk2vWwSyKB8e9xx4AnwI4gG m4qNGzOSj8G9tkNcHligfjMBp/DmEKzDGh73BU77puqR6GWoGLlU3wQwzayRU0lpOHAPHIS4HG1vT VeOpryF3pzCIxLnbXcxKLJQ/L1gu0evzqDdfGgCBiQE9e/MTUtXTctNa/cvQqrFNdtH4ut7dA/iiY 88qbrjrA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55388) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mgaFU-0000kF-GW; Fri, 29 Oct 2021 23:21:20 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mgaFS-0001wk-Ke; Fri, 29 Oct 2021 23:21:18 +0100 Date: Fri, 29 Oct 2021 23:21:18 +0100 From: "Russell King (Oracle)" To: Arnd Bergmann Cc: Julian Braha , Linus Walleij , Geert Uytterhoeven , Mark Rutland , Andrew Morton , Linux ARM , Linux Kernel Mailing List , fazilyildiran@gmail.com Subject: Re: [PATCH] ARM: fix unmet dependency on BITREVERSE for HAVE_ARCH_BITREVERSE Message-ID: References: <20211029203110.8343-1-julianbraha@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_152128_359464_44231CD5 X-CRM114-Status: GOOD ( 25.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Oct 30, 2021 at 12:05:28AM +0200, Arnd Bergmann wrote: > On Fri, Oct 29, 2021 at 10:31 PM Julian Braha wrote: > > > > When ARM is enabled, and BITREVERSE is disabled, > > Kbuild gives the following warning: > > > > WARNING: unmet direct dependencies detected for HAVE_ARCH_BITREVERSE > > Depends on [n]: BITREVERSE [=n] > > Selected by [y]: > > - ARM [=y] && (CPU_32v7M [=n] || CPU_32v7 [=y]) && !CPU_32v6 [=n] > > > > This is because ARM selects HAVE_ARCH_BITREVERSE > > without selecting BITREVERSE, despite > > HAVE_ARCH_BITREVERSE depending on BITREVERSE. > > > > This unmet dependency bug was found by Kismet, > > a static analysis tool for Kconfig. Please advise if this > > is not the appropriate solution. > > > > Signed-off-by: Julian Braha > > This works, but I think it would be better handled differently: > > The other 'select BITREVERSE' instances are for drivers that use > bitrever(), not those that provide it. > > We can probably just remove the dependency. Alternatively we could > change arch/arm/ to > > select HAVE_ARCH_BITREVERSE if BITREVERSE && ((CPU_32v7M || > CPU_32v7) && !CPU_32v6) > > Regardless of what we do here, note that > > a) the 'select' lines in CONFIG_ARM are sorted alphabetically, and > should be kept that way > > b) the same probably exists on arch/mips and arch/arm64, whatever we > do here should be the same as on the other architectures. I think HAVE_ARCH_BITREVERSE shouldn't depend on BITREVERSE. BITREVERSE is set when something wants the bitreverse support. HAVE_ARCH_BITREVERSE means that the architecture has support for the bitreverse instructions and the generic code should not be compiled. I don't see any reason for HAVE_ARCH_BITREVERSE to depend on BITREVERSE. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel