vc: Fix build errors
Subsystems (3)
PATCH 1/1 vc: Fix build errors
Build errors are seen on MIPS platforms because of vc state separation and the following build erros were reported.
../linux/drivers/video/console/newport_con.c: In function ‘newport_clear’:../linux/drivers/video/console/newport_con.c:365:15: error:
‘struct vc_data’ has no member named ‘vc_color’; did you mean ‘vc_cols’?
(vc->vc_color & 0xf0) >> 4);
^~~~~~~~
vc_cols
../linux/drivers/video/console/newport_con.c:368:15: error:
‘struct vc_data’ has no member named ‘vc_color’; did you mean ‘vc_cols’?
(vc->vc_color & 0xf0) >> 4);
^~~~~~~~
vc_cols
../linux/drivers/video/console/newport_con.c:370:15: error:
‘struct vc_data’ has no member named ‘vc_color’; did you mean ‘vc_cols’?
(vc->vc_color & 0xf0) >> 4);
^~~~~~~~
vc_cols
../linux/drivers/video/console/newport_con.c: In function ‘newport_scroll’:
../linux/drivers/video/console/newport_con.c:594:15: error:
‘struct vc_data’ has no member named ‘vc_color’; did you mean ‘vc_cols’?
(vc->vc_color & 0xf0) >> 4);
^~~~~~~~
vc_cols
../linux/drivers/video/console/newport_con.c:598:15: error:
‘struct vc_data’ has no member named ‘vc_color’; did you mean ‘vc_cols’?
(vc->vc_color & 0xf0) >> 4);
^~~~~~~~
vc_colsmake[4]: *** [/scratch/linux/scripts/Makefile.build:280: drivers/video/console/newport_con.o] Error 1 make[3]: *** [/scratch/linux/scripts/Makefile.build:497: drivers/video/console] Error 2 make[3]: *** Waiting for unfinished jobs....
--- drivers/video/console/newport_con.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/video/console/newport_con.c +5 -5
@@ -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.17.1
Quoted 3 lines · Ming Li
Build errors are seen on MIPS platforms because of vc state separation and the following build erros were reported.
Thanks, but already fixed:
https://lore.kernel.org/dri-devel/[email protected]/
Signature · 2 lines
js suse labs