Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7328813rwb; Tue, 15 Nov 2022 10:34:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qiltRytSwnCK6Vl0kVknUCeiIxPMtsU3UXaNOgH1ZHHXuVu+gQnjA8Nd3oW0N3zP+xI/1 X-Received: by 2002:aa7:9632:0:b0:572:84a4:d797 with SMTP id r18-20020aa79632000000b0057284a4d797mr2825731pfg.42.1668537269979; Tue, 15 Nov 2022 10:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668537269; cv=none; d=google.com; s=arc-20160816; b=m8FhtFfTHDHYSEaWD5NVhS0nUhLcytwSi4YLDcGoz9VYOkenPpEggzMiVJjEGeQjc8 X/MOmabgb7wFknug+rPFm/KwI3iM6J1WLwv4UifLr2OlTJlXsZCjTspUroRriSnnrcZM F4TEyjwuS7IU+m/NB96nLMso4bceP3kroOOzvQeqch/gyBjKsir9zwpKQFKBKK/lc+iN 2llh15qzKELO2w/naaMFSW2DYf4ZuZHqUdFW5S+2uyTVeCU/kmR3ajqOfqqxgC7vWwmL Dv73l2cB3ckhyHxxx0x2bnN4bTdHWWcjpFltxRYJ47yeH1FGaQjfsEkvDVFq9oG5Vkib y0fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=w1I53TmuEAkYmR0UMQeZ2RhK0ZCnzFK8ft3oRULUWVQ=; b=iiZZq/dQGNPp+t+asCkhApOMpGiIDPqHsUcxVx8guhwIwRJfaL3ocU/SpNaOXvR2Ro KTumPgDn4DkCXbGZL6/RokjnP1D3ER1lNTQMvAkJXoQ5Y3MUEtG6oltMVcvguVv0utHV aTQEeRPfh6rOVhrTIVZGaj77OyTHmjkDaoZoS9l5O4kgF6yEhofTOJ5Kf8esr3T6pzta PWv5EtqKmPwDlcm6yLyr1YXy1N0h43imwEgDl8T2CYg1puGTv8tBPIuufktX9VRNwiUP +N4w1Nx+High4hgNdEYWzK2dPG5MHIjBq/6Kz1Ezf4D59zX3Thk8z+Y4z1Nsu/m3GztO unmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kj7PrOhL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v191-20020a6389c8000000b0046f3dfb9789si12468834pgd.477.2022.11.15.10.34.17; Tue, 15 Nov 2022 10:34:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kj7PrOhL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238085AbiKOSIL (ORCPT + 90 others); Tue, 15 Nov 2022 13:08:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232820AbiKOSH5 (ORCPT ); Tue, 15 Nov 2022 13:07:57 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D522713F73; Tue, 15 Nov 2022 10:07:38 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7CF04B81A5F; Tue, 15 Nov 2022 18:07:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7EBEC433C1; Tue, 15 Nov 2022 18:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668535656; bh=gVYcutXI++9bdrHBHueMBmsjqWSHjeoLZDZVF1qz2gY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Kj7PrOhLg29hSgQ0mhZwTHKYN6ylN97waXxxyCaBF9rHt/ZmxWNR0yjFiG0VWZNBO 7s6k6oaT/B4M6iA8qN9H9hmXAdr2jaYHY8FxJemnY9fSFMhtRaYpNoMYO2d56BZOQb qLDX6au8eVes2feP8rqwd4HC9EoOomckazimxAtkgSH2IvBMWjOBxnJFevFqH27pMg XDaML34HV0P5635S0Jp0Ri0GG35qf+mzDZ9WZJXTVl+kxM/SwjVO4qrh9p2a99PM5E vpWJtrjI/jAg1SLOJGYOdwbKxE+JfY9Wxb4zXiv+kXRXGDkMYh6PTMGFfBNEylgsRt kRTtgyUorBxRA== Date: Tue, 15 Nov 2022 12:07:34 -0600 From: Bjorn Helgaas To: Geert Uytterhoeven Cc: Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH 2/2] PCI: Drop controller CONFIG_OF dependencies Message-ID: <20221115180734.GA999206@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 15, 2022 at 04:56:10PM +0100, Geert Uytterhoeven wrote: > On Tue, Oct 25, 2022 at 9:16 PM Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > Many drivers depend on OF interfaces, so they won't be functional if > > CONFIG_OF is not set. But OF provides stub functions in that case, so drop > > the OF dependencies so we can at least compile-test the drivers. > > --- a/drivers/pci/controller/Kconfig > > +++ b/drivers/pci/controller/Kconfig > > @@ -8,7 +8,6 @@ config PCI_MVEBU > > depends on ARCH_MVEBU || ARCH_DOVE || COMPILE_TEST > > depends on MVEBU_MBUS > > depends on ARM > > - depends on OF > > This is exactly why we have the COMPILE_TEST symbol. > There is no point in bothering all users who configure kernels with > questions about drivers that won't function anyway due to missing > dependencies, unless the user explicitly wants to do compile-testing. > > So all of these should become: > > depends on OF || COMPILE_TEST Oh, yes, thanks for pointing this out, I totally blew it here. I dropped this while we figure it out. Do you have a preference between this: depends on ARCH_MVEBU || ARCH_DOVE || COMPILE_TEST depends on OF || COMPILE_TEST and this: depends on ((ARCH_MVEBU || ARCH_DOVE) && OF) || COMPILE_TEST The latter seems more common and doesn't repeat "COMPILE_TEST", but I can see advantages to the former. Bjorn