x86: cpuid.c fix style problems

Impact: cleanup

Fixes style problems:

WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
ERROR: "foo * bar" should be "foo *bar"
ERROR: trailing whitespace
WARNING: usage of NR_CPUS is often wrong - consider using cpu_possible(), num_possible_cpus(), for_each_possible_cpu(), etc

total: 2 errors, 2 warnings

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Jaswinder Singh Rajput and committed by
Ingo Molnar
f634fa94 a9067d53

+3 -3
+3 -3
arch/x86/kernel/cpuid.c
··· 39 39 #include <linux/device.h> 40 40 #include <linux/cpu.h> 41 41 #include <linux/notifier.h> 42 + #include <linux/uaccess.h> 42 43 43 44 #include <asm/processor.h> 44 45 #include <asm/msr.h> 45 - #include <asm/uaccess.h> 46 46 #include <asm/system.h> 47 47 48 48 static struct class *cpuid_class; ··· 82 82 } 83 83 84 84 static ssize_t cpuid_read(struct file *file, char __user *buf, 85 - size_t count, loff_t * ppos) 85 + size_t count, loff_t *ppos) 86 86 { 87 87 char __user *tmp = buf; 88 88 struct cpuid_regs cmd; ··· 117 117 unsigned int cpu; 118 118 struct cpuinfo_x86 *c; 119 119 int ret = 0; 120 - 120 + 121 121 lock_kernel(); 122 122 123 123 cpu = iminor(file->f_path.dentry->d_inode);