Skip to content

console: remove #ifdef CONFIG when it is possible

Patrick Delaunay u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4console: remove #ifdef CONFIG when it is possiblecommon/console.c+61 -881 reply
2/4console: add function console_devices_setcommon/console.c+13 -71 reply
3/4console: remove #ifdef CONFIG_CONSOLE_RECORDcommon/console.c+66 -202 replies
4/4console: add console_tstc_check helper function for CONSOLE_MUXcommon/console.c+24 -121 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] console: remove #ifdef CONFIG when it is possible

Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible

This patchset can applied on master branch after the serie [1] (for the new order of test in function putc() and puts()
done in "console: allow to record console output before ready"
)

I will push a separate serie to remove the remaining #ifdef CONFIG_VIDCONSOLE_AS_LCD

And I remove the sandox code in [2] (with the associated tests #ifdef CONFIG_SANDBOX)

[1] http://patchwork.ozlabs.org/project/uboot/list/?series=217079
"log: don't build the trace buffer when log is not ready"

[2] http://patchwork.ozlabs.org/project/uboot/patch/20201127114927.2.Ida70f4fb1524187703e9240d63e436f8ae5adaab at changeid/ "[2/2] console: sandbox: remove unnecessary sandbox code"

Patrick Delaunay (4):
console: remove #ifdef CONFIG when it is possible
console: add function console_devices_set
console: remove #ifdef CONFIG_CONSOLE_RECORD
console: add console_tstc_check helper function for CONSOLE_MUX

 common/console.c | 291 ++++++++++++++++++++++++++---------------------
 1 file changed, 164 insertions(+), 127 deletions(-)
Signature · 1 line
2.17.1