diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 14:07:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 14:07:31 -0400 |
commit | 58ae9c0d54ae3916614fa1f3756dadb954f16e6c (patch) | |
tree | ce777b21cbc273ee13752831a48aa1767720d856 /arch/x86/kernel | |
parent | 4a553e1450827acb1b4bcaa5a0ae079209d16038 (diff) | |
parent | 924e101a7ab6f884047f4344e5f1154a4bcd63a6 (diff) |
Merge branch 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 debug update from Ingo Molnar:
"Various small enhancements"
* 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/debug: Dump family, model, stepping of the boot CPU
x86/iommu: Use NULL instead of plain 0 for __IOMMU_INIT
x86/iommu: Drop duplicate const in __IOMMU_INIT
x86/fpu/xsave: Keep __user annotation in casts
x86/pci/probe_roms: Add missing __iomem annotation to pci_map_biosrom()
x86/signals: ia32_signal.c: add __user casts to fix sparse warnings
x86/vdso: Add __user annotation to VDSO32_SYMBOL
x86: Fix __user annotations in asm/sys_ia32.h
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/probe_roms.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/xsave.c | 6 |
3 files changed, 9 insertions, 7 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 9961e2e23709..134505e07b09 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -1023,14 +1023,16 @@ void __cpuinit print_cpu_info(struct cpuinfo_x86 *c) | |||
1023 | printk(KERN_CONT "%s ", vendor); | 1023 | printk(KERN_CONT "%s ", vendor); |
1024 | 1024 | ||
1025 | if (c->x86_model_id[0]) | 1025 | if (c->x86_model_id[0]) |
1026 | printk(KERN_CONT "%s", c->x86_model_id); | 1026 | printk(KERN_CONT "%s", strim(c->x86_model_id)); |
1027 | else | 1027 | else |
1028 | printk(KERN_CONT "%d86", c->x86); | 1028 | printk(KERN_CONT "%d86", c->x86); |
1029 | 1029 | ||
1030 | printk(KERN_CONT " (fam: %02x, model: %02x", c->x86, c->x86_model); | ||
1031 | |||
1030 | if (c->x86_mask || c->cpuid_level >= 0) | 1032 | if (c->x86_mask || c->cpuid_level >= 0) |
1031 | printk(KERN_CONT " stepping %02x\n", c->x86_mask); | 1033 | printk(KERN_CONT ", stepping: %02x)\n", c->x86_mask); |
1032 | else | 1034 | else |
1033 | printk(KERN_CONT "\n"); | 1035 | printk(KERN_CONT ")\n"); |
1034 | 1036 | ||
1035 | print_cpu_msr(c); | 1037 | print_cpu_msr(c); |
1036 | } | 1038 | } |
diff --git a/arch/x86/kernel/probe_roms.c b/arch/x86/kernel/probe_roms.c index 0bc72e2069e3..d5f15c3f7b25 100644 --- a/arch/x86/kernel/probe_roms.c +++ b/arch/x86/kernel/probe_roms.c | |||
@@ -150,7 +150,7 @@ static struct resource *find_oprom(struct pci_dev *pdev) | |||
150 | return oprom; | 150 | return oprom; |
151 | } | 151 | } |
152 | 152 | ||
153 | void *pci_map_biosrom(struct pci_dev *pdev) | 153 | void __iomem *pci_map_biosrom(struct pci_dev *pdev) |
154 | { | 154 | { |
155 | struct resource *oprom = find_oprom(pdev); | 155 | struct resource *oprom = find_oprom(pdev); |
156 | 156 | ||
diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c index 3d3e20709119..9e1a8a7ba6e6 100644 --- a/arch/x86/kernel/xsave.c +++ b/arch/x86/kernel/xsave.c | |||
@@ -132,9 +132,9 @@ int check_for_xstate(struct i387_fxsave_struct __user *buf, | |||
132 | fx_sw_user->xstate_size > fx_sw_user->extended_size) | 132 | fx_sw_user->xstate_size > fx_sw_user->extended_size) |
133 | return -EINVAL; | 133 | return -EINVAL; |
134 | 134 | ||
135 | err = __get_user(magic2, (__u32 *) (((void *)fpstate) + | 135 | err = __get_user(magic2, (__u32 __user *) (fpstate + |
136 | fx_sw_user->extended_size - | 136 | fx_sw_user->extended_size - |
137 | FP_XSTATE_MAGIC2_SIZE)); | 137 | FP_XSTATE_MAGIC2_SIZE)); |
138 | if (err) | 138 | if (err) |
139 | return err; | 139 | return err; |
140 | /* | 140 | /* |