android_kernel_sony_sdm845/arch/x86/kernel/apic
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rusty Russell 101aaca1f3 cpumask: remove dangerous CPU_MASK_ALL_PTR, &CPU_MASK_ALL.: x86
Impact: cleanup

(Thanks to Al Viro for reminding me of this, via Ingo)

CPU_MASK_ALL is the (deprecated) "all bits set" cpumask, defined as so:

	#define CPU_MASK_ALL (cpumask_t) { { ... } }

Taking the address of such a temporary is questionable at best,
unfortunately 321a8e9d (cpumask: add CPU_MASK_ALL_PTR macro) added
CPU_MASK_ALL_PTR:

	#define CPU_MASK_ALL_PTR (&CPU_MASK_ALL)

Which formalizes this practice.  One day gcc could bite us over this
usage (though we seem to have gotten away with it so far).

So replace everywhere which used &CPU_MASK_ALL or CPU_MASK_ALL_PTR
with the modern "cpu_all_mask" (a real const struct cpumask *), and remove
CPU_MASK_ALL_PTR altogether.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Ingo Molnar <mingo@elte.hu>
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Mike Travis <travis@sgi.com>
2009-03-13 14:49:47 +10:30
..
apic.c Merge branch 'x86/core' into x86/mce2 2009-02-24 16:11:51 -08:00
apic_flat_64.c x86: apic: simplify secondary CPU wakeup methods 2009-02-26 13:58:26 +01:00
bigsmp_32.c x86_32: apic/bigsmp_32, de-inline functions 2009-03-02 11:20:32 +01:00
es7000_32.c cpumask: remove dangerous CPU_MASK_ALL_PTR, &CPU_MASK_ALL.: x86 2009-03-13 14:49:47 +10:30
io_apic.c
ipi.c
Makefile
nmi.c
numaq_32.c cpumask: remove dangerous CPU_MASK_ALL_PTR, &CPU_MASK_ALL.: x86 2009-03-13 14:49:47 +10:30
probe_32.c x86: apic: simplify secondary CPU wakeup methods 2009-02-26 13:58:26 +01:00
probe_64.c x86: remove update_apic from x86_quirks 2009-02-26 06:32:25 +01:00
summit_32.c x86_32: apic/summit_32, fix section mismatch 2009-03-02 12:00:25 +01:00
x2apic_cluster.c x86: apic: simplify secondary CPU wakeup methods 2009-02-26 13:58:26 +01:00
x2apic_phys.c x86: apic: simplify secondary CPU wakeup methods 2009-02-26 13:58:26 +01:00
x2apic_uv_x.c x86: apic: simplify secondary CPU wakeup methods, fix 2009-02-26 14:11:06 +01:00