Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanup patches from Ingo Molnar: "Misc smaller cleanups" * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86: ptrace.c only needs export.h and not the full module.h x86, apb_timer: remove unused variable percpu_timer um: don't compare a pointer to 0 arch/x86/platform/uv: use ARRAY_SIZE where possible
Tento commit je obsažen v:
@@ -1467,7 +1467,7 @@ static ssize_t ptc_proc_write(struct file *file, const char __user *user,
|
||||
}
|
||||
|
||||
if (input_arg == 0) {
|
||||
elements = sizeof(stat_description)/sizeof(*stat_description);
|
||||
elements = ARRAY_SIZE(stat_description);
|
||||
printk(KERN_DEBUG "# cpu: cpu number\n");
|
||||
printk(KERN_DEBUG "Sender statistics:\n");
|
||||
for (i = 0; i < elements; i++)
|
||||
@@ -1508,7 +1508,7 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
|
||||
char *q;
|
||||
int cnt = 0;
|
||||
int val;
|
||||
int e = sizeof(tunables) / sizeof(*tunables);
|
||||
int e = ARRAY_SIZE(tunables);
|
||||
|
||||
p = instr + strspn(instr, WHITESPACE);
|
||||
q = p;
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele