WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] acpi: mark several more items __init/__in

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] acpi: mark several more items __init/__initdata
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 Sep 2008 11:20:16 -0700
Delivery-date: Mon, 22 Sep 2008 11:20:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1222094022 -3600
# Node ID ae29cd95ba7d7f5cdcbb32509575b83e9fb3d43c
# Parent  d8a2d117225c316438f327ae09e6d365c336e8eb
acpi: mark several more items __init/__initdata

Remove unused acpi_reallocate_root_table()

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/drivers/acpi/tables.c          |    8 +++--
 xen/drivers/acpi/tables/tbfadt.c   |   10 +++----
 xen/drivers/acpi/tables/tbinstal.c |    3 +-
 xen/drivers/acpi/tables/tbutils.c  |    4 +-
 xen/drivers/acpi/tables/tbxface.c  |   52 -------------------------------------
 xen/drivers/acpi/tables/tbxfroot.c |    4 +-
 6 files changed, 17 insertions(+), 64 deletions(-)

diff -r d8a2d117225c -r ae29cd95ba7d xen/drivers/acpi/tables.c
--- a/xen/drivers/acpi/tables.c Mon Sep 22 15:24:03 2008 +0100
+++ b/xen/drivers/acpi/tables.c Mon Sep 22 15:33:42 2008 +0100
@@ -36,14 +36,16 @@
 
 #define ACPI_MAX_TABLES                128
 
-static char *mps_inti_flags_polarity[] = { "dfl", "high", "res", "low" };
-static char *mps_inti_flags_trigger[] = { "dfl", "edge", "res", "level" };
+static const char *__initdata
+mps_inti_flags_polarity[] = { "dfl", "high", "res", "low" };
+static const char *__initdata
+mps_inti_flags_trigger[] = { "dfl", "edge", "res", "level" };
 
 static struct acpi_table_desc initial_tables[ACPI_MAX_TABLES] __initdata;
 
 static int acpi_apic_instance __initdata;
 
-void acpi_table_print_madt_entry(struct acpi_subtable_header *header)
+void __init acpi_table_print_madt_entry(struct acpi_subtable_header *header)
 {
        if (!header)
                return;
diff -r d8a2d117225c -r ae29cd95ba7d xen/drivers/acpi/tables/tbfadt.c
--- a/xen/drivers/acpi/tables/tbfadt.c  Mon Sep 22 15:24:03 2008 +0100
+++ b/xen/drivers/acpi/tables/tbfadt.c  Mon Sep 22 15:33:42 2008 +0100
@@ -72,7 +72,7 @@ typedef struct acpi_fadt_info {
 #define ACPI_FADT_REQUIRED          1
 #define ACPI_FADT_SEPARATE_LENGTH   2
 
-static struct acpi_fadt_info fadt_info_table[] = {
+static struct acpi_fadt_info __initdata fadt_info_table[] = {
        {"Pm1aEventBlock", ACPI_FADT_OFFSET(xpm1a_event_block),
         ACPI_FADT_OFFSET(pm1a_event_block),
         ACPI_FADT_OFFSET(pm1_event_length), ACPI_FADT_REQUIRED},
@@ -157,7 +157,7 @@ acpi_tb_init_generic_address(struct acpi
  *
  
******************************************************************************/
 
-void acpi_tb_parse_fadt(acpi_native_uint table_index, u8 flags)
+void __init acpi_tb_parse_fadt(acpi_native_uint table_index, u8 flags)
 {
        u32 length;
        struct acpi_table_header *table;
@@ -217,7 +217,7 @@ void acpi_tb_parse_fadt(acpi_native_uint
  *
  
******************************************************************************/
 
-void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length)
+void __init acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 
length)
 {
 
        /*
@@ -278,7 +278,7 @@ void acpi_tb_create_local_fadt(struct ac
  *
  
******************************************************************************/
 
-static void acpi_tb_convert_fadt(void)
+static void __init acpi_tb_convert_fadt(void)
 {
        u8 pm1_register_length;
        struct acpi_generic_address *target;
@@ -393,7 +393,7 @@ static void acpi_tb_convert_fadt(void)
  *
  
******************************************************************************/
 
-static void acpi_tb_validate_fadt(void)
+static void __init acpi_tb_validate_fadt(void)
 {
        u32 *address32;
        struct acpi_generic_address *address64;
diff -r d8a2d117225c -r ae29cd95ba7d xen/drivers/acpi/tables/tbinstal.c
--- a/xen/drivers/acpi/tables/tbinstal.c        Mon Sep 22 15:24:03 2008 +0100
+++ b/xen/drivers/acpi/tables/tbinstal.c        Mon Sep 22 15:33:42 2008 +0100
@@ -41,6 +41,7 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
+#include <xen/init.h>
 #include <acpi/acpi.h>
 #include <acpi/acnamesp.h>
 #include <acpi/actables.h>
@@ -105,7 +106,7 @@ acpi_status acpi_tb_verify_table(struct 
  *
  
******************************************************************************/
 
-acpi_status acpi_tb_resize_root_table_list(void)
+acpi_status __init acpi_tb_resize_root_table_list(void)
 {
        struct acpi_table_desc *tables;
 
diff -r d8a2d117225c -r ae29cd95ba7d xen/drivers/acpi/tables/tbutils.c
--- a/xen/drivers/acpi/tables/tbutils.c Mon Sep 22 15:24:03 2008 +0100
+++ b/xen/drivers/acpi/tables/tbutils.c Mon Sep 22 15:33:42 2008 +0100
@@ -149,7 +149,7 @@ u8 acpi_tb_tables_loaded(void)
  *
  
******************************************************************************/
 
-void
+void __init
 acpi_tb_print_table_header(acpi_physical_address address,
                           struct acpi_table_header *header)
 {
@@ -268,7 +268,7 @@ u8 acpi_tb_checksum(u8 * buffer, acpi_na
  *
  
******************************************************************************/
 
-void
+void __init
 acpi_tb_install_table(acpi_physical_address address,
                      u8 flags, char *signature, acpi_native_uint table_index)
 {
diff -r d8a2d117225c -r ae29cd95ba7d xen/drivers/acpi/tables/tbxface.c
--- a/xen/drivers/acpi/tables/tbxface.c Mon Sep 22 15:24:03 2008 +0100
+++ b/xen/drivers/acpi/tables/tbxface.c Mon Sep 22 15:33:42 2008 +0100
@@ -65,7 +65,7 @@ ACPI_MODULE_NAME("tbxface")
  *
  
******************************************************************************/
 
-acpi_status acpi_allocate_root_table(u32 initial_table_count)
+acpi_status __init acpi_allocate_root_table(u32 initial_table_count)
 {
 
        acpi_gbl_root_table_list.size = initial_table_count;
@@ -153,56 +153,6 @@ acpi_initialize_tables(struct acpi_table
 
 
/*******************************************************************************
  *
- * FUNCTION:    acpi_reallocate_root_table
- *
- * PARAMETERS:  None
- *
- * RETURN:      Status
- *
- * DESCRIPTION: Reallocate Root Table List into dynamic memory. Copies the
- *              root list from the previously provided scratch area. Should
- *              be called once dynamic memory allocation is available in the
- *              kernel
- *
- 
******************************************************************************/
-acpi_status acpi_reallocate_root_table(void)
-{
-       struct acpi_table_desc *tables;
-       acpi_size new_size;
-
-       ACPI_FUNCTION_TRACE(acpi_reallocate_root_table);
-
-       /*
-        * Only reallocate the root table if the host provided a static buffer
-        * for the table array in the call to acpi_initialize_tables.
-        */
-       if (acpi_gbl_root_table_list.flags & ACPI_ROOT_ORIGIN_ALLOCATED) {
-               return_ACPI_STATUS(AE_SUPPORT);
-       }
-
-       new_size =
-           (acpi_gbl_root_table_list.count +
-            ACPI_ROOT_TABLE_SIZE_INCREMENT) * sizeof(struct acpi_table_desc);
-
-       /* Create new array and copy the old array */
-
-       tables = ACPI_ALLOCATE_ZEROED(new_size);
-       if (!tables) {
-               return_ACPI_STATUS(AE_NO_MEMORY);
-       }
-
-       ACPI_MEMCPY(tables, acpi_gbl_root_table_list.tables, new_size);
-
-       acpi_gbl_root_table_list.size = acpi_gbl_root_table_list.count;
-       acpi_gbl_root_table_list.tables = tables;
-       acpi_gbl_root_table_list.flags =
-           ACPI_ROOT_ORIGIN_ALLOCATED | ACPI_ROOT_ALLOW_RESIZE;
-
-       return_ACPI_STATUS(AE_OK);
-}
-
-/*******************************************************************************
- *
  * FUNCTION:    acpi_get_table
  *
  * PARAMETERS:  Signature           - ACPI signature of needed table
diff -r d8a2d117225c -r ae29cd95ba7d xen/drivers/acpi/tables/tbxfroot.c
--- a/xen/drivers/acpi/tables/tbxfroot.c        Mon Sep 22 15:24:03 2008 +0100
+++ b/xen/drivers/acpi/tables/tbxfroot.c        Mon Sep 22 15:33:42 2008 +0100
@@ -120,7 +120,7 @@ static acpi_status acpi_tb_validate_rsdp
  *
  
******************************************************************************/
 
-acpi_status acpi_find_root_pointer(acpi_native_uint * table_address)
+acpi_status __init acpi_find_root_pointer(acpi_native_uint * table_address)
 {
        u8 *table_ptr;
        u8 *mem_rover;
@@ -233,7 +233,7 @@ acpi_status acpi_find_root_pointer(acpi_
  * DESCRIPTION: Search a block of memory for the RSDP signature
  *
  
******************************************************************************/
-static u8 *acpi_tb_scan_memory_for_rsdp(u8 * start_address, u32 length)
+static u8 *__init acpi_tb_scan_memory_for_rsdp(u8 * start_address, u32 length)
 {
        acpi_status status;
        u8 *mem_rover;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] acpi: mark several more items __init/__initdata, Xen patchbot-unstable <=