Skip to contentSkip to conversation

fbdev: mbx: fix a misspelled variable name

PATCH In review Arnd Bergmann 2 participants 2 messages Mar 4, 2019 – Mar 5, 2019 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: mbx: fix a misspelled variable name

A recent cleanup introduced a build failure when a variable was spelled incorrectly:

In file included from drivers/video/fbdev/mbx/mbxfb.c:881:
drivers/video/fbdev/mbx/mbxdebugfs.c: In function 'mbxfb_debugfs_init':
drivers/video/fbdev/mbx/mbxdebugfs.c:217:2: error: 'mbfi' undeclared (first use in this function); did you mean 'mfbi'?
mbfi->debugfs_dir = dir;
^~~~
mfbi
drivers/video/fbdev/mbx/mbxdebugfs.c:217:2: note: each undeclared identifier is reported only once for each function it appears in drivers/video/fbdev/mbx/mbxdebugfs.c:213:21: error: unused variable 'mfbi' [-Werror=unused-variable]

  struct mbxfb_info *mfbi = fbi->par;
                     ^~~~
Fixes 72aed9e31344 ("fbdev: mbx: fix up debugfs file creation")
---
 drivers/video/fbdev/mbx/mbxdebugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/mbx/mbxdebugfs.c +1 -1
index 52cfe0132b25..09af721638fb 100644
@@ -214,7 +214,7 @@ static void mbxfb_debugfs_init(struct fb_info *fbi)
 	struct dentry *dir;
 
 	dir = debugfs_create_dir("mbxfb", NULL);
-	mbfi->debugfs_dir = dir;
+	mfbi->debugfs_dir = dir;
 
 	debugfs_create_file("sysconf", 0444, dir, fbi, &sysconf_fops);
 	debugfs_create_file("clock", 0444, dir, fbi, &clock_fops);
Signature · 1 line
2.20.0
#1 lore raw
Quoted 11 lines · Arnd Bergmann

A recent cleanup introduced a build failure when a variable was spelled incorrectly:

In file included from drivers/video/fbdev/mbx/mbxfb.c:881:
drivers/video/fbdev/mbx/mbxdebugfs.c: In function 'mbxfb_debugfs_init':
drivers/video/fbdev/mbx/mbxdebugfs.c:217:2: error: 'mbfi' undeclared (first use in this function); did you mean 'mfbi'?
mbfi->debugfs_dir = dir;
^~~~
mfbi
drivers/video/fbdev/mbx/mbxdebugfs.c:217:2: note: each undeclared identifier is reported only once for each function it appears in drivers/video/fbdev/mbx/mbxdebugfs.c:213:21: error: unused variable 'mfbi' [-Werror=unused-variable]

Quoted 5 lines
  struct mbxfb_info *mfbi = fbi->par;
                     ^~~~
Fixes 72aed9e31344 ("fbdev: mbx: fix up debugfs file creation")

Patch queued for v5.1, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics