1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 01:02:19 +02:00
Files
u-boot-megous/common
Heinrich Schuchardt a3a9e04657 common/console.c: discard volatile
Avoid errors of like

common/console.c: In function ‘console_record_reset’:
common/console.c:615:16: error: passing argument 1 of ‘membuff_purge’
discards ‘volatile’ qualifier from pointer target type
[-Werror=discarded-qualifiers]
  615 |  membuff_purge(&gd->console_out);
      |                ^~~~~~~~~~~~~~~~

by casting to non-volatile.

The volatile property stems from declarations like

arch/arm/include/asm/global_data.h:114:

But there is no need to treat gd->console_out and gd->console_in as
volatile in the context of common/console.c.

Fixes: b612312816 ("console: Add a function to read a line of the output / eof")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-02-13 10:10:50 -05:00
..
2020-02-05 19:33:46 -07:00
2019-11-07 18:01:13 -05:00
2020-02-13 10:10:50 -05:00
2020-01-07 14:37:50 +01:00
2020-02-05 19:33:46 -07:00
2020-01-24 23:06:47 +05:30
2019-08-11 16:43:41 -04:00
2020-02-10 22:14:18 -05:00
2020-01-24 23:06:47 +05:30