diff options
author | 2009-04-08 12:31:18 +0200 | |
---|---|---|
committer | 2009-05-28 09:24:16 -0700 | |
commit | 34fa1967aa0827776e37feb5666df0327575a0f2 (patch) | |
tree | 0f2751aad92cb88eca21f70a7eca1be0fabc7c54 /lib/dma-debug.c | |
parent | x86, mce: trivial clean up for mce.c (diff) | |
download | linux-rng-34fa1967aa0827776e37feb5666df0327575a0f2.tar.xz linux-rng-34fa1967aa0827776e37feb5666df0327575a0f2.zip |
x86, mce: trivial clean up for mce_amd_64.c
Fix for followings:
WARNING: Use #include <linux/percpu.h> instead of <asm/percpu.h>
+#include <asm/percpu.h>
ERROR: Macros with multiple statements should be enclosed in a do - while
loop
+#define THRESHOLD_ATTR(_name, _mode, _show, _store) \
+{ \
+ .attr = {.name = __stringify(_name), .mode = _mode }, \
+ .show = _show, \
+ .store = _store, \
+};
WARNING: usage of NR_CPUS is often wrong - consider using cpu_possible(),
num_possible_cpus(), for_each_possible_cpu(), etc
+ if (cpu >= NR_CPUS)
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions