• L
    ACPICA: Tables: Move an iasl specific table function to iasl source file. · 76cffa79
    Lv Zheng 提交于
    ACPICA commit 6eb364d790dd103bd4990f808e0095a421c437cb
    
    acpi_tb_store_table() implements a logic that is only correct to iasl. So it
    won't be used by any other utilities except iasl. This function is
    complained by the kernel users as an unused function. The best choice to
    stop releasing it to the Linux kernel should be moving it to adisasm.c.
    
    ACPI table manager can use both struct acpi_table_desc (direct referencing)
    and table index (indirect referencing) as the descriptor to the table, so
    acpi_tb_get_next_root_index() is extended to return both of them to allow
    maximum usability from the callers. NOTE that indirect referencing is a
    design result to meet the boot stage static allocation requirement for the
    table descriptors.
    
    This is a linuxized acpi_tb_store_table() removing result, there should be
    no functional changes introduced to the Linux kernel by this patch except
    the additonal kernel unused argument for acpi_tb_get_next_root_index()
    (renamed to acpi_tb_get_next_root_index()). This argument is used in the
    ACPICA upstream.
    
    Link: https://github.com/acpica/acpica/commit/6eb364d7Reported-by: NRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
    Signed-off-by: NLv Zheng <lv.zheng@intel.com>
    Signed-off-by: NBob Moore <robert.moore@intel.com>
    Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    76cffa79
tbinstal.c 15.5 KB