x86: use zalloc_cpumask_var for mce_devinitialized
PATCH 1/1 x86: use zalloc_cpumask_var for mce_devinitialized
to make MAXSMP happy
Signed-off-by Yinghai Lu <[email protected]>
--- arch/x86/kernel/cpu/mcheck/mce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce.c +1 -1
@@ -1969,7 +1969,7 @@ static __init int mce_init_device(void)if (!mce_available (&boot_cpu_data))return -EIO ; -alloc_cpumask_var (&mce_dev_initialized,GFP_KERNEL ); +zalloc_cpumask_var (&mce_dev_initialized,GFP_KERNEL ); err =mce_init_banks ();if (err)
PATCH 1/1 x86: mce fix type
can not have two ignore_ce
Signed-off-by Yinghai Lu <[email protected]>
--- arch/x86/kernel/cpu/mcheck/mce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce.c +1 -1
@@ -1777,7 +1777,7 @@ static struct sysdev_ext_attribute attr_ };static struct sysdev_ext_attribute attr_cmci_disabled = { -_SYSDEV_ATTR (ignore_ce,0644 , sysdev_show_int, set_cmci_disabled), +_SYSDEV_ATTR (cmci_disabled,0644 , sysdev_show_int, set_cmci_disabled), &mce_cmci_disabled };
PATCH 1/1 x86: use zalloc_cpumask_var for mce_dev_initialized -v2
In reply to Yinghai Luneed to get cleared cpu_mask about if mce device is initialized. esp when MAXSMP is used.
used zalloc_... instead
Signed-off-by Yinghai Lu <[email protected]>
--- arch/x86/kernel/cpu/mcheck/mce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mcheck/mce.c +1 -1
@@ -1969,7 +1969,7 @@ static __init int mce_init_device(void)if (!mce_available (&boot_cpu_data))return -EIO ; -alloc_cpumask_var (&mce_dev_initialized,GFP_KERNEL ); +zalloc_cpumask_var (&mce_dev_initialized,GFP_KERNEL ); err =mce_init_banks ();if (err)
Re: [PATCH] x86: mce fix type
In reply to Yinghai LuQuoted 3 lines · Yinghai Lu
can not have two
ignore_ceSigned-off-by Yinghai Lu <[email protected]>
Thank you for finding it!
Acked-by Hidetoshi Seto <[email protected]>
Re: [PATCH] x86: use zalloc_cpumask_var for mce_dev_initialized -v2
In reply to Yinghai LuQuoted 7 lines · Yinghai Lu
need to get cleared
cpu_maskabout if mce device is initialized. esp when MAXSMP is used.used
zalloc_... insteadSigned-off-by Yinghai Lu <[email protected]>
Good catch!
Reviewed-by Hidetoshi Seto <[email protected]>