MIPS: kernel: vpe: Make vpe_attrs an array of pointers.
PATCH 1/1 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]
--- arch/mips/kernel/vpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/kernel/vpe.c +1 -1
@@ -1368,7 +1368,7 @@ out_einval: }static DEVICE_ATTR_RW (ntcs); -static struct attribute vpe_attrs[] = { +static struct attribute *vpe_attrs[] = { &dev_attr_kill.attr, &dev_attr_ntcs.attr,NULL ,
Signature · 1 line
1.8.3.2
Quoted 12 lines · Markos Chandras
Commit
567b21e973ccf5b0d13776e408d7c67099749eb8
"mips: convertvpe_classto usedev_groups"broke the build on MIPS since
vpe_attrsshould be an array of 'structdevice_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]
Quoted 7 lines
Cc Ralf Baechle <[email protected]>Cc John Crispin <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Markos Chandras <[email protected]>--- arch/mips/kernel/vpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Ugh, sorry about that, I thought I cross-built this, testing it out, but it looks like I didn't. I'll queue this up after 3.12-rc1 is out, thanks for sending it.
greg k-h