diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-09-11 08:17:52 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-09-13 09:12:48 -0400 |
commit | 1b4676330aa6782bd73ec24cb4896467475f29f5 (patch) | |
tree | 245fb28d8b02c2606fc63875acfcd9b507402b4e /arch/mips | |
parent | 670bac3a8c201fc1f5f92ac6b4a8b42dc8172937 (diff) |
MIPS: kernel: vpe: Make vpe_attrs an array of pointers.
Commit 567b21e973ccf5b0d13776e408d7c67099749eb8
"mips: convert vpe_class to use dev_groups"
broke the build on MIPS since vpe_attrs should be an array
of 'struct device_attribute' pointers.
Fixes the following build problem:
arch/mips/kernel/vpe.c:1372:2: error: missing braces around initializer
[-Werror=missing-braces]
arch/mips/kernel/vpe.c:1372:2: error: (near initialization for 'vpe_attrs[0]')
[-Werror=missing-braces]
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: John Crispin <blogic@openwrt.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5819/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/vpe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index faf84c5f2629..59b2b3cd7885 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c | |||
@@ -1368,7 +1368,7 @@ out_einval: | |||
1368 | } | 1368 | } |
1369 | static DEVICE_ATTR_RW(ntcs); | 1369 | static DEVICE_ATTR_RW(ntcs); |
1370 | 1370 | ||
1371 | static struct attribute vpe_attrs[] = { | 1371 | static struct attribute *vpe_attrs[] = { |
1372 | &dev_attr_kill.attr, | 1372 | &dev_attr_kill.attr, |
1373 | &dev_attr_ntcs.attr, | 1373 | &dev_attr_ntcs.attr, |
1374 | NULL, | 1374 | NULL, |