23 Jul, 2014

1 commit


07 Dec, 2013

2 commits

  • The following warnings can be seen in W=1 builds, because the original
    sfi_acpi.[ch] header inclusions are incorrect:

    include/linux/sfi_acpi.h:72:2: error: implicit declaration of function 'acpi_table_parse' [-Werror=implicit-function-declaration]
    drivers/sfi/sfi_acpi.c:154:5: warning: no previous prototype for 'sfi_acpi_table_parse' [-Wmissing-prototypes]

    Fix linux/sfi_acpi.h and modify drivers/sfi/sfi_acpi.c accordingly.

    Reported-by: Andy Shevchenko
    Signed-off-by: Lv Zheng
    [rjw: Subject and changelog]
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     
  • Replace direct inclusions of , and
    , which are incorrect, with
    inclusions and remove some inclusions of those files that aren't
    necessary.

    First of all, , and
    should not be included directly from any files that are built for
    CONFIG_ACPI unset, because that generally leads to build warnings about
    undefined symbols in !CONFIG_ACPI builds. For CONFIG_ACPI set,
    includes those files and for CONFIG_ACPI unset it
    provides stub ACPI symbols to be used in that case.

    Second, there are ordering dependencies between those files that always
    have to be met. Namely, it is required that be included
    prior to so that the acpi_pci_root declarations the
    latter depends on are always there. And which provides
    basic ACPICA type declarations should always be included prior to any other
    ACPI headers in CONFIG_ACPI builds. That also is taken care of including
    as appropriate.

    Signed-off-by: Lv Zheng
    Cc: Greg Kroah-Hartman
    Cc: Matthew Garrett
    Cc: Tony Luck
    Cc: "H. Peter Anvin"
    Acked-by: Bjorn Helgaas (drivers/pci stuff)
    Acked-by: Konrad Rzeszutek Wilk (Xen stuff)
    Signed-off-by: Rafael J. Wysocki

    Lv Zheng
     

23 Jun, 2012

1 commit

  • Mark function acpi_sfi_table_parse() as __init to avoid warning messages:

    WARNING: vmlinux.o(.text+0x4cd2d2): Section mismatch in reference from the
    function acpi_sfi_table_parse.clone.0() to the function

    Function acpi_sfi_table_parse() calls acpi_table_parse() and
    pci_parse_mcfg(), which are both marked as __init. Currently
    acpi_sfi_table_parse() is only used by MMCONFIG to scan MCFG table
    at boot time only, so it's safe to mark acpi_sfi_table_parse() as __init.

    Reviewed-by: Yinghai Lu
    Signed-off-by: Jiang Liu
    Signed-off-by: Bjorn Helgaas

    Jiang Liu
     

29 Aug, 2009

1 commit

  • Extend SFI to access standard ACPI tables.
    (eg. the PCI MCFG) using sfi_acpi_table_parse().

    Note that this is _not_ a hybrid ACPI + SFI mode.
    The platform boots in either ACPI mode or SFI mode.

    SFI runs only with acpi_disabled=1, which can be set
    at build-time via CONFIG_ACPI=n, or at boot time by
    the failure to find ACPI platform support.

    So this extension simply allows SFI-platforms to
    re-use existing standard table formats that happen to
    be defined to live in ACPI envelopes.

    Signed-off-by: Feng Tang
    Signed-off-by: Len Brown

    Feng Tang