Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp182631rwb; Fri, 19 Aug 2022 20:06:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4msP7O+YHlLOwCWh3JLR8Kz2DDXpXRM84k4HGFSvcv4g6LGmgNk9O2x5EMsjJccJV3q3jN X-Received: by 2002:a05:6402:329:b0:446:3137:b4fd with SMTP id q9-20020a056402032900b004463137b4fdmr5500237edw.426.1660964800530; Fri, 19 Aug 2022 20:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660964800; cv=none; d=google.com; s=arc-20160816; b=T6a45PvxXiMFADGeSJ4bI725BlJvZdTbcYy+ljojlwPNvrih7CZEnUe/4+O6E8tkxS OfiMzfZaJJlprOwc8hE25H1YC2/Loe/Toze+k5epLmaSgfdefuJKaV5FCIthm7q66eQz huecrWM2Vma91ip54CPgw+lACMJ71dP05OmxAbRi0lRR+K59UWx0m06BLyBzWHpXmwbW UMYV4DtzzceVsrsYfOgTV+i4EKesw/jQtzHWn0uiRD9nN8KxPzqWJQJKAlqJEGhBcT73 KTA43yVPhksOPwlh4eGL4O4o2sx9Ds25vWaw1BJf6wUB7N3x4ai4xvpHK/CVNTqW+/cZ crEg== 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 :message-id:date:subject:cc:to:from; bh=xKcMtOfrm+cktvANvwHqRTzyTs44Z3YqHTsmXgpk9xA=; b=L6FvQCjykErPbDW90j7KRkLSurrlMKWC77og7Os/sL/cbFgf6VBcTxWjA7A1J3RuVD UrI+Xla9xIOFD9vrCVKIynjhehAixx2EVOcF71QZJSfx68MM8N8wqcJPOsLoH3C0j6Io xujik+H/WziTP7IsfhaAuBgipaVthFg4mWhx+UEikFqrfiZf1w5OFYFSXg8SbBmpCS3P lr8heRT46DAJGu4xLxfPUA2OsjeBr0w3fPh7EZG72ispWnKgoUfkIgNN24tvLXffVsh5 Y4gOyHJTCF29R6ZXqIzIYIR9sD8ILvTS0z1ujZiLqlHY5XdbIVTuTD4W7Hxp8w6S3X/K 4QXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he16-20020a1709073d9000b0073c732a9ec9si3533722ejc.192.2022.08.19.20.06.14; Fri, 19 Aug 2022 20:06:40 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243232AbiHTC6O (ORCPT + 99 others); Fri, 19 Aug 2022 22:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242572AbiHTC6L (ORCPT ); Fri, 19 Aug 2022 22:58:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A364DC4826; Fri, 19 Aug 2022 19:58:09 -0700 (PDT) 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 5DABFB828A4; Sat, 20 Aug 2022 02:58:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C0ECC433C1; Sat, 20 Aug 2022 02:58:04 +0000 (UTC) From: Huacai Chen To: Arnd Bergmann , Huacai Chen Cc: loongarch@lists.linux.dev, linux-arch@vger.kernel.org, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , linux-kernel@vger.kernel.org, Huacai Chen , kernel test robot Subject: [PATCH] LoongArch: Select PCI_QUIRKS to avoid build error Date: Sat, 20 Aug 2022 10:57:55 +0800 Message-Id: <20220820025755.3110083-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 PCI_LOONGSON is a mandatory for LoongArch and it is selected in Kconfig unconditionally, but its dependency PCI_QUIRKS is missing and may cause a build error when "make randconfig": arch/loongarch/pci/acpi.c: In function 'pci_acpi_setup_ecam_mapping': >> arch/loongarch/pci/acpi.c:103:29: error: 'loongson_pci_ecam_ops' undeclared (first use in this function) 103 | ecam_ops = &loongson_pci_ecam_ops; | ^~~~~~~~~~~~~~~~~~~~~ arch/loongarch/pci/acpi.c:103:29: note: each undeclared identifier is reported only once for each function it appears in Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PCI_LOONGSON Depends on [n]: PCI [=y] && (MACH_LOONGSON64 [=y] || COMPILE_TEST [=y]) && (OF [=y] || ACPI [=y]) && PCI_QUIRKS [=n] Selected by [y]: - LOONGARCH [=y] Fix it by selecting PCI_QUIRKS unconditionally, too. Reported-by: kernel test robot Signed-off-by: Huacai Chen --- arch/loongarch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 4abc9a28aba4..26aeb1408e56 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -111,6 +111,7 @@ config LOONGARCH select PCI_ECAM if ACPI select PCI_LOONGSON select PCI_MSI_ARCH_FALLBACKS + select PCI_QUIRKS select PERF_USE_VMALLOC select RTC_LIB select SMP -- 2.31.1