Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2192495imu; Wed, 12 Dec 2018 11:04:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/X5j6ClPA4yXOo+giceW5YkAon87zQ8+0kOLmYYT5chGtRAxIRkd0DKOuRa1rX2taBVbjTI X-Received: by 2002:a17:902:8541:: with SMTP id d1mr21275966plo.205.1544641451031; Wed, 12 Dec 2018 11:04:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544641451; cv=none; d=google.com; s=arc-20160816; b=UlFEQlUp2QJER0uSmvKxZG7mlRx8L1jGKA+F9hlmbTnZrbq1SA2z31maNVVXcPnljg KO/8k8ArZxzHuSDkIaIUlYcOoJUEyer7d6L9nRSe8khx6eQGeaodHNHnwISpCFzqNt6E QCp3U+euG45LfXqw9/JyWIMAcv7kxFLGLZUzcwjyprPtusBs5l+0CVlqaAly4YZ52C4Z 8d97mBF0LWeVfieiqq9iaJ4UoUkI6Mbwoc8DgU0cqOqdvP8s7kt/xM/yeUnbYAFE5cF8 1qtijmjZYbtwt3y1fluhWIMEMqaz3F79dMiRFKegqkg+0MsZe8cT3ZAKw42x32sWN2pl /l1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=CP+RwMDzs0XysMFNc0hafUFRInLWV6TKKGZ3Zttg7wk=; b=GSyTaOgLGMEVVnHCjrdR+53m664Y/qbQsll67hwa3zCUtUsu42NyIPC5952hWF5/yG L7jkWEUUpdXoCgig6rf9fL3E0AWM4W+NIHsuOO9EKTV1bYQgQzr5ArbilVmzXVzQ3FYf 925rIRUAA9XgGrsvaxecl1TilD91T7fJSN5PfzhKwsffF+KEdzCcC3ZNluznLa5xlAUC p0B8coXAkLstT+C5rejQ6VMVagmcp/ITTOM6sHDappJJH1Gojq8pWmWJbEznr4HoljMS Vu/qQ/TpXx6gkLcGv/iHU8mSghhQYPvzpYQ6llx/6BHU+dDehUWV62Q8Fm+kfHW/Ekmm S4Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q73si16191924pfi.205.2018.12.12.11.03.50; Wed, 12 Dec 2018 11:04:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726688AbeLLTCk convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Dec 2018 14:02:40 -0500 Received: from mga03.intel.com ([134.134.136.65]:51538 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbeLLTCj (ORCPT ); Wed, 12 Dec 2018 14:02:39 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2018 11:02:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,345,1539673200"; d="scan'208";a="283075187" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga005.jf.intel.com with ESMTP; 12 Dec 2018 11:02:39 -0800 Received: from orsmsx159.amr.corp.intel.com (10.22.240.24) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 12 Dec 2018 11:02:39 -0800 Received: from orsmsx122.amr.corp.intel.com ([169.254.11.103]) by ORSMSX159.amr.corp.intel.com ([169.254.11.100]) with mapi id 14.03.0415.000; Wed, 12 Dec 2018 11:02:38 -0800 From: "Schmauss, Erik" To: Sinan Kaya , "linux-acpi@vger.kernel.org" CC: "Moore, Robert" , "Wysocki, Rafael J" , Len Brown , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , open list Subject: RE: [PATCH v6 5/5] ACPICA: Remove PCI bits from ACPICA when CONFIG_PCI is unset Thread-Topic: [PATCH v6 5/5] ACPICA: Remove PCI bits from ACPICA when CONFIG_PCI is unset Thread-Index: AQHUkj7xabqLvJKsV0WIbkZeNQOeIqV7dNjw Date: Wed, 12 Dec 2018 19:02:38 +0000 Message-ID: References: <20181212171941.7437-1-okaya@kernel.org> <20181212171941.7437-6-okaya@kernel.org> In-Reply-To: <20181212171941.7437-6-okaya@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODY5OTZlOGUtNGNlMS00M2JmLTgwOTUtZmFjY2EzMGEwNzFiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicUlSTEVQNTV5cXphYjRBM1FpXC94WEJcL2hPNE92NVFjVmVzTnFiOG5XMHViUkFuOHd1MkQ3QXhNQ3JXQk94WmRhIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Sinan Kaya [mailto:okaya@kernel.org] > Sent: Wednesday, December 12, 2018 9:20 AM > To: linux-acpi@vger.kernel.org > Cc: Sinan Kaya ; Moore, Robert > ; Schmauss, Erik ; > Wysocki, Rafael J ; Len Brown > ; open list:ACPI COMPONENT ARCHITECTURE (ACPICA) > ; open list > Subject: [PATCH v6 5/5] ACPICA: Remove PCI bits from ACPICA when > CONFIG_PCI is unset > > Now that we allow CONFIG_PCI to be unset, remove useless code from > ACPICA too. > > Signed-off-by: Sinan Kaya > --- > drivers/acpi/acpica/Makefile | 2 +- > drivers/acpi/acpica/achware.h | 9 +++++++++ > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/acpi/acpica/Makefile b/drivers/acpi/acpica/Makefile index > b14621da5413..59700433a96e 100644 > --- a/drivers/acpi/acpica/Makefile > +++ b/drivers/acpi/acpica/Makefile > @@ -77,13 +77,13 @@ acpi-y += \ > hwacpi.o \ > hwesleep.o \ > hwgpe.o \ > - hwpci.o \ > hwregs.o \ > hwsleep.o \ > hwvalid.o \ > hwxface.o \ > hwxfsleep.o > > +acpi-$(CONFIG_PCI) += hwpci.o > acpi-$(ACPI_FUTURE_USAGE) += hwtimer.o > > acpi-y += \ > diff --git a/drivers/acpi/acpica/achware.h b/drivers/acpi/acpica/achware.h > index 43ce67a9da1f..1c827184fe64 100644 > --- a/drivers/acpi/acpica/achware.h > +++ b/drivers/acpi/acpica/achware.h > @@ -109,8 +109,17 @@ acpi_hw_enable_runtime_gpe_block(struct > acpi_gpe_xrupt_info *gpe_xrupt_info, CONFIG_PCI is a Linux-ism. We should stay with the OS-independent nature of ACPICA. Please use ACPI_PCI_CONFIGURED and put it above the comment like so: #ifdef ACPI_PCI_CONFIGURED > /* > * hwpci - PCI configuration support > */ > +#ifdef CONFIG_PCI > acpi_status > acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id, > acpi_handle root_pci_device, acpi_handle pci_region); > +#else > +static inline acpi_status > +acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id, acpi_handle > root_pci_device, > + acpi_handle pci_region) > +{ > + return AE_SUPPORT; > +} > +#endif > > #endif /* __ACHWARE_H__ */ > -- > 2.19.0