Skip to contentSkip to conversation

drivers/video/console/newport_con.c:362:15: error: 'struct vc_data' has no member named 'vc_color'; did you mean

PATCH In review kernel test robot 4 participants 7 messages Jul 24, 2020

Subsystems (4)
lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4f5baedd579d5499876eadb1de12ddfdadcaa3ab
commit: 28bc24fc46f9c9f39ddefb424d6072041805b563 [2417/10784] vc: separate state
config: mips-randconfig-r004-20200724 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0

reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
git checkout 28bc24fc46f9c9f39ddefb424d6072041805b563
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag as appropriate

All errors (new ones prefixed by >>):

drivers/video/console/newport_con.c: In function 'newport_show_logo':
drivers/video/console/newport_con.c:132:1: warning: no return statement in function returning non-void [-Wreturn-type]

     132 | }
         | ^
   drivers/video/console/newport_con.c: In function 'newport_clear':
>> drivers/video/console/newport_con.c:362:15: error: 'struct vc_data' has no member named 'vc_color'; did you mean 'vc_cols'?
     362 |          (vc->vc_color & 0xf0) >> 4);
         |               ^~~~~~~~
         |               vc_cols
   drivers/video/console/newport_con.c:365:15: error: 'struct vc_data' has no member named 'vc_color'; did you mean 'vc_cols'?
     365 |          (vc->vc_color & 0xf0) >> 4);
         |               ^~~~~~~~
         |               vc_cols
   drivers/video/console/newport_con.c:367:15: error: 'struct vc_data' has no member named 'vc_color'; did you mean 'vc_cols'?
     367 |          (vc->vc_color & 0xf0) >> 4);
         |               ^~~~~~~~
         |               vc_cols
   drivers/video/console/newport_con.c: In function 'newport_scroll':
   drivers/video/console/newport_con.c:591:15: error: 'struct vc_data' has no member named 'vc_color'; did you mean 'vc_cols'?
     591 |          (vc->vc_color & 0xf0) >> 4);
         |               ^~~~~~~~
         |               vc_cols
   drivers/video/console/newport_con.c:595:15: error: 'struct vc_data' has no member named 'vc_color'; did you mean 'vc_cols'?
     595 |          (vc->vc_color & 0xf0) >> 4);
         |               ^~~~~~~~
         |               vc_cols

drivers/video/console/newport_con.c: At top level:
drivers/video/console/newport_con.c:745:12: warning: no previous prototype for 'newport_console_init' [-Wmissing-prototypes]
745 | int __init newport_console_init(void)
| ^~~~~~~~~~~~~~~~~~~~
drivers/video/console/newport_con.c:750:13: warning: no previous prototype for 'newport_console_exit' [-Wmissing-prototypes]
750 | void __exit newport_console_exit(void)
| ^~~~~~~~~~~~~~~~~~~~

vim +362 drivers/video/console/newport_con.c

^1da177e4c3f415 Linus Torvalds 2005-04-16  349  
^1da177e4c3f415 Linus Torvalds 2005-04-16  350  static void newport_clear(struct vc_data *vc, int sy, int sx, int height,
^1da177e4c3f415 Linus Torvalds 2005-04-16  351  			  int width)
^1da177e4c3f415 Linus Torvalds 2005-04-16  352  {
^1da177e4c3f415 Linus Torvalds 2005-04-16  353  	int xend = ((sx + width) << 3) - 1;
^1da177e4c3f415 Linus Torvalds 2005-04-16  354  	int ystart = ((sy << 4) + topscan) & 0x3ff;
^1da177e4c3f415 Linus Torvalds 2005-04-16  355  	int yend = (((sy + height) << 4) + topscan - 1) & 0x3ff;
^1da177e4c3f415 Linus Torvalds 2005-04-16  356  
^1da177e4c3f415 Linus Torvalds 2005-04-16  357  	if (logo_active)
^1da177e4c3f415 Linus Torvalds 2005-04-16  358  		return;
^1da177e4c3f415 Linus Torvalds 2005-04-16  359  
^1da177e4c3f415 Linus Torvalds 2005-04-16  360  	if (ystart < yend) {
^1da177e4c3f415 Linus Torvalds 2005-04-16  361  		newport_clear_screen(sx << 3, ystart, xend, yend,
^1da177e4c3f415 Linus Torvalds 2005-04-16 @362  				     (vc->vc_color & 0xf0) >> 4);
^1da177e4c3f415 Linus Torvalds 2005-04-16  363  	} else {
^1da177e4c3f415 Linus Torvalds 2005-04-16  364  		newport_clear_screen(sx << 3, ystart, xend, 1023,
^1da177e4c3f415 Linus Torvalds 2005-04-16  365  				     (vc->vc_color & 0xf0) >> 4);
^1da177e4c3f415 Linus Torvalds 2005-04-16  366  		newport_clear_screen(sx << 3, 0, xend, yend,
^1da177e4c3f415 Linus Torvalds 2005-04-16  367  				     (vc->vc_color & 0xf0) >> 4);
^1da177e4c3f415 Linus Torvalds 2005-04-16  368  	}
^1da177e4c3f415 Linus Torvalds 2005-04-16  369  }

^1da177e4c3f415 Linus Torvalds 2005-04-16 370

:::::: The code at line 362 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <[email protected]> :::::: CC: Linus Torvalds <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

#1 lore raw

PATCH 1/1 newport_con: vc_color is now in state

Since commit 28bc24fc46f9 (vc: separate state), vc->vc_color is known as vc->state.color. Somehow both me and 0-day bot missed this driver during the conversion.

So fix the driver now.

---
 drivers/video/console/newport_con.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/video/console/newport_con.c +5 -5
index df3c52d72159..72f146d047d9 100644
@@ -362,12 +362,12 @@ static void newport_clear(struct vc_data *vc, int sy, int sx, int height,
 
 	if (ystart < yend) {
 		newport_clear_screen(sx << 3, ystart, xend, yend,
-				     (vc->vc_color & 0xf0) >> 4);
+				     (vc->state.color & 0xf0) >> 4);
 	} else {
 		newport_clear_screen(sx << 3, ystart, xend, 1023,
-				     (vc->vc_color & 0xf0) >> 4);
+				     (vc->state.color & 0xf0) >> 4);
 		newport_clear_screen(sx << 3, 0, xend, yend,
-				     (vc->vc_color & 0xf0) >> 4);
+				     (vc->state.color & 0xf0) >> 4);
 	}
 }
 
@@ -591,11 +591,11 @@ static bool newport_scroll(struct vc_data *vc, unsigned int t, unsigned int b,
 			topscan = (topscan + (lines << 4)) & 0x3ff;
 			newport_clear_lines(vc->vc_rows - lines,
 					    vc->vc_rows - 1,
-					    (vc->vc_color & 0xf0) >> 4);
+					    (vc->state.color & 0xf0) >> 4);
 		} else {
 			topscan = (topscan + (-lines << 4)) & 0x3ff;
 			newport_clear_lines(0, lines - 1,
-					    (vc->vc_color & 0xf0) >> 4);
+					    (vc->state.color & 0xf0) >> 4);
 		}
 		npregs->cset.topscan = (topscan - 1) & 0x3ff;
 		return false;
Signature · 1 line
2.27.0
maintainer
#2 lore raw

Re: [PATCH] newport_con: vc_color is now in state

Quoted 6 lines · Jiri Slaby

Since commit 28bc24fc46f9 (vc: separate state), vc->vc_color is known as vc->state.color. Somehow both me and 0-day bot missed this driver during the conversion.

So fix the driver now.

Quoted 8 lines
---
 drivers/video/console/newport_con.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

You forgot the "Reported-by:" line :(

I'll go add it, thanks for the fix.

greg k-h

#3 lore raw

Re: [PATCH] newport_con: vc_color is now in state

Quoted 16 lines · Greg KH
Quoted 6 lines · Jiri Slaby

Since commit 28bc24fc46f9 (vc: separate state), vc->vc_color is known as vc->state.color. Somehow both me and 0-day bot missed this driver during the conversion.

So fix the driver now.

Quoted 8 lines
---
 drivers/video/console/newport_con.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Quoted 1 line

You forgot the "Reported-by:" line :(

Ah, I didn't know/notice. Will do next time. Thanks.

Signature · 2 lines
js
suse labs
#4 lore raw

Re: [PATCH] newport_con: vc_color is now in state

In reply to Jiri Slaby
Quoted 1 line · Jiri Slaby

Since commit 28bc24fc46f9 (vc: separate state), vc->vc_color is known as

Cgit says "Bad object id: 28bc24fc46f9" (in Linus' repo). Also, you should
enclose the commit summary in (""), not just ()...

Quoted 10 lines

vc->state.color. Somehow both me and 0-day bot missed this driver during the conversion.

So fix the driver now.

[...]

MBR, Sergei

maintainer
#5 lore raw

Re: [PATCH] newport_con: vc_color is now in state

Quoted 6 lines · Sergei Shtylyov
Quoted 1 line · Jiri Slaby

Since commit 28bc24fc46f9 (vc: separate state), vc->vc_color is known as

Cgit says "Bad object id: 28bc24fc46f9" (in Linus' repo). Also, you should
enclose the commit summary in (""), not just ()...

I've added the proper "Fixes:" tag when committing this, no worries.

greg k-h

#6 lore raw

Re: [PATCH] newport_con: vc_color is now in state

In reply to Sergei Shtylyov
Quoted 5 lines · Sergei Shtylyov
Quoted 1 line · Jiri Slaby

Since commit 28bc24fc46f9 (vc: separate state), vc->vc_color is known as

   Cgit says "Bad object id: 28bc24fc46f9" (in Linus' repo).

That's because it's not in Linus' repo yet.

Signature · 2 lines
js
suse labs