From patchwork Wed Nov 16 20:50:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 13045746 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2974DC4332F for ; Wed, 16 Nov 2022 20:52:25 +0000 (UTC) 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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=evdDPZPvtzx6r0904b2RgVNLlYpalJYPI+GlOImJ0Ec=; b=Dze6+s81/x2H11 YVIdnDNWkZGOANwEJl8VKdCwo7EYfLU4NFwJjpnmEg7KIjmRq91qwEF04vp1t6N88epbjuyvtzyvC g2XveLXjEHh1MYYpJEWOHIJ2pggepdAkIjK03qwcks3Figdx+Z3O7bLNoFSdrmUs4XbgD0Y7UhQZs P5xV8LxZ9dRw2wLyT8G3jQspeCWDZ9pD6O5am099lkvfeWHYQf8XTBapFG2RSD0EdLNDR6zYWgL53 TlLXY+dHSJsEptrNEoUHJu16U42vd7Z+LizWdQKqxxatGgeYqgPCEFxl+/Zxq1Dq2xiX8IW30ll1U I8l9C3kvBLq5z6q2e06Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovPNH-007t1H-6n; Wed, 16 Nov 2022 20:51:11 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovPNE-007t0O-3o for linux-arm-kernel@lists.infradead.org; Wed, 16 Nov 2022 20:51:09 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8469861F91; Wed, 16 Nov 2022 20:51:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 653F1C433C1; Wed, 16 Nov 2022 20:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668631866; bh=8WkS0KoSIEQDcVnrOtMBRMpT1esiNNbOZ77Wa5K5uk4=; h=From:To:Cc:Subject:Date:From; b=YaaJM+O5UkOayhpkKt6HqIxEsHTCrkIte76musMkiVEYg8sHuWUwD56DcfzMtlphV pmxm7NLHBR7iX6klYzQkdbIvEUxiEXLu2VGxkszaFBsJyeuK4GjLPdWT7c5kuaeOv1 BRGRGRpwDOUQyKiG9ppR+7Rd/hU6xG2G7hcSDecZlF7us+Dw8apUcqEt0vYfARdR6A lu983HrqwE6rna/i/CZKeY4VLo/urpnBy7aH4Jyub2o42h1AxS23ABIRviZP7PToik jln8QU6+4HhepEfGPb4Z0pgU7ow/2t+OjQhENpuDdDVB8byqLGCLsfWmFcphQkLgI/ F95iLfChQ9SVw== From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Lorenzo Pieralisi , Geert Uytterhoeven , =?utf-8?q?Pali_Roh=C3=A1r?= , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH v2 0/2] PCI: Allow building CONFIG_OF drivers with COMPILE_TEST Date: Wed, 16 Nov 2022 14:50:58 -0600 Message-Id: <20221116205100.1136224-1-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_125108_216214_C1C8037B X-CRM114-Status: GOOD ( 10.50 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bjorn Helgaas Update CONFIG_OF dependencies so we can compile-test drivers (with CONFIG_COMPILE_TEST=y) even without CONFIG_OF being enabled. OF provides stub functions when CONFIG_OF is not set. Changes from v1 to v2: - Retain "depends on OF || COMPILE_TEST" instead of dropping "depends on OF" completely so drivers are only offered when they are applicable or COMPILE_SET is enabled (many thanks to Geert for pointing out this major mistake) v1: https://lore.kernel.org/r/20221025191339.667614-1-helgaas@kernel.org Bjorn Helgaas (2): PCI: Drop of_match_ptr() to avoid unused variables PCI: Allow building CONFIG_OF drivers with COMPILE_TEST drivers/pci/controller/Kconfig | 34 +++++++++++---------- drivers/pci/controller/cadence/Kconfig | 12 ++++---- drivers/pci/controller/dwc/Kconfig | 40 ++++++++++++++++--------- drivers/pci/controller/mobiveil/Kconfig | 2 +- drivers/pci/controller/pci-ftpci100.c | 2 +- drivers/pci/controller/pci-v3-semi.c | 2 +- 6 files changed, 53 insertions(+), 39 deletions(-)