diff options
author | Anton Blanchard <anton@samba.org> | 2004-08-07 00:57:38 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-07 00:57:38 -0700 |
commit | da12f2a1aeae24007412b6a4b2fa658177919241 (patch) | |
tree | 6625d23c948881db8679772cf9cef7cf8f55cc83 /arch | |
parent | 8c767e10aced34d1b4e7893376f1598f5ccbce85 (diff) | |
download | history-da12f2a1aeae24007412b6a4b2fa658177919241.tar.gz |
[PATCH] ppc64: suppress 'store_purr' unused warning
Some new sysfs macros declare a store_purr() function that never gets used,
which makes a compiler warning happen. Suppress the warning with the used
attribute.
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc64/kernel/sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/sysfs.c b/arch/ppc64/kernel/sysfs.c index 057c1382ed83c9..41b34932f14ab5 100644 --- a/arch/ppc64/kernel/sysfs.c +++ b/arch/ppc64/kernel/sysfs.c @@ -208,8 +208,8 @@ static ssize_t show_##NAME(struct sys_device *dev, char *buf) \ unsigned long val = run_on_cpu(cpu->sysdev.id, read_##NAME, 0); \ return sprintf(buf, "%lx\n", val); \ } \ -static ssize_t store_##NAME(struct sys_device *dev, const char *buf, \ - size_t count) \ +static ssize_t __attribute_used__ \ + store_##NAME(struct sys_device *dev, const char *buf, size_t count) \ { \ struct cpu *cpu = container_of(dev, struct cpu, sysdev); \ unsigned long val; \ |