Skip to content

Commit 1b46763

Browse files
Markos Chandrasralfbaechle
authored andcommitted
MIPS: kernel: vpe: Make vpe_attrs an array of pointers.
Commit 567b21e "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>
1 parent 670bac3 commit 1b46763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/kernel/vpe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ static ssize_t ntcs_store(struct device *dev, struct device_attribute *attr,
13681368
}
13691369
static DEVICE_ATTR_RW(ntcs);
13701370

1371-
static struct attribute vpe_attrs[] = {
1371+
static struct attribute *vpe_attrs[] = {
13721372
&dev_attr_kill.attr,
13731373
&dev_attr_ntcs.attr,
13741374
NULL,

0 commit comments

Comments
 (0)