mirror of https://gitee.com/openkylin/linux.git
ACPI/HEST: adjust section selection
Properly const-, __init-, and __read_mostly-annotate this code. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
091aad6af4
commit
bec4f22a2d
|
@ -46,9 +46,9 @@ EXPORT_SYMBOL_GPL(hest_disable);
|
||||||
|
|
||||||
/* HEST table parsing */
|
/* HEST table parsing */
|
||||||
|
|
||||||
static struct acpi_table_hest *hest_tab;
|
static struct acpi_table_hest *__read_mostly hest_tab;
|
||||||
|
|
||||||
static int hest_esrc_len_tab[ACPI_HEST_TYPE_RESERVED] = {
|
static const int hest_esrc_len_tab[ACPI_HEST_TYPE_RESERVED] = {
|
||||||
[ACPI_HEST_TYPE_IA32_CHECK] = -1, /* need further calculation */
|
[ACPI_HEST_TYPE_IA32_CHECK] = -1, /* need further calculation */
|
||||||
[ACPI_HEST_TYPE_IA32_CORRECTED_CHECK] = -1,
|
[ACPI_HEST_TYPE_IA32_CORRECTED_CHECK] = -1,
|
||||||
[ACPI_HEST_TYPE_IA32_NMI] = sizeof(struct acpi_hest_ia_nmi),
|
[ACPI_HEST_TYPE_IA32_NMI] = sizeof(struct acpi_hest_ia_nmi),
|
||||||
|
@ -126,7 +126,7 @@ struct ghes_arr {
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void *data)
|
static int __init hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void *data)
|
||||||
{
|
{
|
||||||
int *count = data;
|
int *count = data;
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ static int hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void *data)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data)
|
static int __init hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data)
|
||||||
{
|
{
|
||||||
struct platform_device *ghes_dev;
|
struct platform_device *ghes_dev;
|
||||||
struct ghes_arr *ghes_arr = data;
|
struct ghes_arr *ghes_arr = data;
|
||||||
|
@ -165,7 +165,7 @@ static int hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hest_ghes_dev_register(unsigned int ghes_count)
|
static int __init hest_ghes_dev_register(unsigned int ghes_count)
|
||||||
{
|
{
|
||||||
int rc, i;
|
int rc, i;
|
||||||
struct ghes_arr ghes_arr;
|
struct ghes_arr ghes_arr;
|
||||||
|
|
Loading…
Reference in New Issue