From patchwork Tue May 6 03:24:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 29683 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F4152055D for ; Tue, 6 May 2014 03:25:35 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf47368782iec.10 for ; Mon, 05 May 2014 20:25:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=2jrubJzszDHVv4nqjH69IFbvurmbotmuVuZ6tWu4ArA=; b=ITVB0SwDu1b+2u08pXmqRs9Kbq/qtsGZI6IftU0sJfbCA/MrEqwu3s+LZ8Yu9LEhJX CdJMdDalcelGqBlydGJod5j2imATEvm2pcCi+rbZ8HHLwBJgB0BqiP+qhHhhMZ34CcMT Qyl+83k7D/3LrZwtLK7hRbvs7HOqOMLKry3dFKEYVhDdKoTqg3EOtdsfBcCYXyW4HDVY gnKMRx3ImCpZkhIsnGH5IsA73s3TiDOdmRGmpQKbE9mbAlKq0pLws2e8NeYeYYMbxkHp cET/oKm47dC/gKHBqmbxIrz7PUCUEjzwxmu8rDGRBnT7Pcz4hNLxq22PQ28UfzFzJuf8 fmGw== X-Gm-Message-State: ALoCoQn7jcXbLD4r16mACwUy1rJme64hd/eCoI6NXe9XZkCKXzVdWATRm6zOBVSWhLkUiSgTRNRE X-Received: by 10.42.209.18 with SMTP id ge18mr120574icb.7.1399346735023; Mon, 05 May 2014 20:25:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.81 with SMTP id r75ls2687255qga.71.gmail; Mon, 05 May 2014 20:25:34 -0700 (PDT) X-Received: by 10.58.187.9 with SMTP id fo9mr30671151vec.4.1399346734905; Mon, 05 May 2014 20:25:34 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id yv18si2079078vcb.122.2014.05.05.20.25.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 20:25:34 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db11so5048213veb.8 for ; Mon, 05 May 2014 20:25:34 -0700 (PDT) X-Received: by 10.58.38.166 with SMTP id h6mr6112759vek.22.1399346734813; Mon, 05 May 2014 20:25:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp190266vcb; Mon, 5 May 2014 20:25:34 -0700 (PDT) X-Received: by 10.66.253.33 with SMTP id zx1mr1484027pac.28.1399346733699; Mon, 05 May 2014 20:25:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck1si10576217pad.368.2014.05.05.20.25.32; Mon, 05 May 2014 20:25:32 -0700 (PDT) Received-SPF: none (google.com: linux-acpi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933800AbaEFDZb (ORCPT + 8 others); Mon, 5 May 2014 23:25:31 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:33735 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933794AbaEFDZb (ORCPT ); Mon, 5 May 2014 23:25:31 -0400 Received: by mail-pd0-f176.google.com with SMTP id y13so6578023pdi.21 for ; Mon, 05 May 2014 20:25:30 -0700 (PDT) X-Received: by 10.66.218.226 with SMTP id pj2mr1471352pac.134.1399346730329; Mon, 05 May 2014 20:25:30 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id pb7sm86243247pac.10.2014.05.05.20.25.19 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 May 2014 20:25:29 -0700 (PDT) From: Hanjun Guo To: "Rafael J. Wysocki" Cc: Arnd Bergmann , Lv Zheng , Tony Luck , Yijing Wang , linux-ia64@vger.kernel.org, linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [PATCH] ACPI / PCI: Stub out pci_acpi_crs_quirks() and make it x86 specific Date: Tue, 6 May 2014 11:24:30 +0800 Message-Id: <1399346670-6525-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , For pci_acpi_crs_quirks(), ia64 already doesn't use it, and we can not foresee it should be used in ARM64, so stub out pci_acpi_crs_quirks() to avoid introducing platform specific dummy stub function. Signed-off-by: Hanjun Guo Reviewed-by: Bjorn Helgaas --- arch/ia64/include/asm/acpi.h | 1 - include/acpi/acpi_drivers.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/ia64/include/asm/acpi.h b/arch/ia64/include/asm/acpi.h index d651102..97cb160 100644 --- a/arch/ia64/include/asm/acpi.h +++ b/arch/ia64/include/asm/acpi.h @@ -92,7 +92,6 @@ ia64_acpi_release_global_lock (unsigned int *lock) #endif #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ static inline void disable_acpi(void) { } -static inline void pci_acpi_crs_quirks(void) { } #ifdef CONFIG_IA64_GENERIC const char *acpi_get_sysname (void); diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index d504613..ea6428b 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h @@ -96,7 +96,12 @@ struct pci_dev *acpi_get_pci_dev(acpi_handle); /* Arch-defined function to add a bus to the system */ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root); + +#ifdef CONFIG_X86 void pci_acpi_crs_quirks(void); +#else +static inline void pci_acpi_crs_quirks(void) { } +#endif /* -------------------------------------------------------------------------- Processor