Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp545825pxb; Fri, 29 Oct 2021 15:08:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztGl8GDQUxpC+Qu5CEzBNbbeBtAzJmn0zEr2nmssqSovczDGYiyc6XrRNngLUW4yYdKArw X-Received: by 2002:a05:6402:520f:: with SMTP id s15mr19068884edd.376.1635545308448; Fri, 29 Oct 2021 15:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635545308; cv=none; d=google.com; s=arc-20160816; b=mzUo8ud+Fc3NJBj3A5IVUayB1aAL27uTWXeAp+QQvSsLJxP7vu3cR25VWVowPVDht9 fnjiwkTSJ4ZZ3o0wXveSO3UM4f7DRgCEswfiKP0v8LVXbWtlS+VRHvWcuGjKDB5c+lF3 m/5Qd/3NPDBE+X0So0lVW1PpUseTVTjcipfaIRmDqHpo/G8eQPQcVhD1bVwB9DRyaeo/ z1YyfS5OoO2fS7FcvdyqAsSAGOtCnus++N065ZmOPMsa1FHabvUEC/ilQcbVbULe+edD vhDHHF4WQB7SrCPxAO0sLhGfBu0xnF09DxTVGb4/DHl6iNShJP6xFKfeBRKJ//1+4En/ cWLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=N7lnX/ncqzRNHuXabtakNGmmKFmg5JlxcNrcPtBVibI=; b=UByB1mYTZjBoRt5SrKzuJi4tDiQy3228nb7x9JwiId96G9tfXci2ZfdsEY7AwJUEOd MmAT3jYMZIZoofGZhTNt0yeDFeysfNAeSvvoBzHgwezQqQbi1jnERy51zAAzRiXZVLPh Vkf8NKo0JkPWeJgDz5uyTX9pF7dtCPAduwZbh7Lr6uOf2vg+1f1gLIUGcw4pxq1cxnMX nYyu03aHXqEIj8HFIbrNMiRM/+tGzNKQ8qpRVw8W1yx+9wyPqUBl/C1aGVz6N0kOS6rW WeR2stAi3e4365gJG5PyNdE6s6yosbxvOsulrlwJCPz0nHGjQTJCYmpqdDCUoh4OTad5 CvvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si14586063edd.584.2021.10.29.15.08.03; Fri, 29 Oct 2021 15:08:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbhJ2WIQ (ORCPT + 99 others); Fri, 29 Oct 2021 18:08:16 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:33251 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230325AbhJ2WIP (ORCPT ); Fri, 29 Oct 2021 18:08:15 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1Mzydy-1mtHtm3LZW-00x5NC for ; Sat, 30 Oct 2021 00:05:44 +0200 Received: by mail-wr1-f43.google.com with SMTP id u18so18865663wrg.5 for ; Fri, 29 Oct 2021 15:05:44 -0700 (PDT) X-Gm-Message-State: AOAM530H/wtUY/3yZbzluDy+jn63vJcIckBBziQRcyEvv76rzdroo/lg wWDg7b6/4bFBJUgY8ii35QbOxoKU36SzS5c9XYM= X-Received: by 2002:a05:6000:18c7:: with SMTP id w7mr17331452wrq.411.1635545144483; Fri, 29 Oct 2021 15:05:44 -0700 (PDT) MIME-Version: 1.0 References: <20211029203110.8343-1-julianbraha@gmail.com> In-Reply-To: <20211029203110.8343-1-julianbraha@gmail.com> From: Arnd Bergmann Date: Sat, 30 Oct 2021 00:05:28 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: fix unmet dependency on BITREVERSE for HAVE_ARCH_BITREVERSE To: Julian Braha Cc: Russell King - ARM Linux , Arnd Bergmann , Linus Walleij , Geert Uytterhoeven , Mark Rutland , Andrew Morton , Linux ARM , Linux Kernel Mailing List , fazilyildiran@gmail.com Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:Vupko7xIT5uNd9SYbd+5fxgmOxygq6hPgunKDTymd0BhZQySXhd WDUm/3CcUHiY7NjuLScIQtlzNWWELBp4tBDRAnpLUKafOFr+ehGxGw0eh5OretM1atMtSr8 75jnteroEHTrK+JEHo7IywY3/KsocH7yCRK7PGR89VOK5keeA/Uma56zx1ZuIViAGUbn9AH q7J0fmZzgsYNowbUQRFPg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ga9JNT9RWjo=:Xk5179wHn3DiAgGVGmyNO0 91WTOK3no8/SP9TQrbxGk3kCR9GXfDhJAFmBj+Ie5ciG5gEv4Fkg+DNzzIN2jh6MMZLH2dIEO Tcf/YNpJ+t2Yd+QWQvJ33pDJv6Wn23G3/KKqxgeWAUVfHKsmzYnAup7fYiEMlYLwvKFvGheoA bF+NPt2WeoRPfObWQVreE+cSO89f7tQaU1J61UEz2UIsY2xNlW6kJAYboIPxMbWbFn4OUHbtG 1Wp8syPEForFwYKmuEIB4vTqmR8JHIS5wB0+3nSrHaGGnfFr5hkuidun3LT0FkYzdFi2GCMck DCSmFdcK1l/l3G1XSL/xAKbp6UqTgBDFM7r7nNV9yfhnwwCJbkuEnkO1pDIWlS4P9RL07gUgI ZP7EHUPwLuAkMFdxByQh4m//01XeOBYD6XkeiX+w13DKjQi4AIEBJ5u92t4k354BB+BFSW9z9 vojFSpRzrC7vY4dRan0l137+aQKEYPDSaHpfTzvfNrOBc5BR6MSOzFcW8HL0nDv9JuXY6TY59 9KbcuLvgVoujS6iXnnY/AvFXmk6ClQ0tz7CYJQz1fE+2WoW7bU98+jBQyKfOAOM8NNZ9c4jxd XewoIMAt8feIpJv75ypmDeRtmuKtxHA3BegVwPLe53JhMFPcmiFcStlrq6fNa3lRZikde9dkW zmw46EVbIfC1lIeM2jki13LkrnCCAYn+qoBsc2IS4eBUR/HN/h7qdzhVApD4A3AJlhs0= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd