diff options
| author | Andy Shevchenko <[email protected]> | 2020-11-19 21:26:20 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-12-02 16:21:58 -0500 |
| commit | 3cbb026f17332b70d352ae3659179ca2b51f418c (patch) | |
| tree | 5e4ce20626f7bf2495402e5882684ee782e463df /scripts | |
| parent | c2ba01c082b4ab21e43bb15e1c3a7e19573d1133 (diff) | |
linux/compat.h: Remove debug() from spin_lock_irqsave()
It seems nobody tested the debug() option in spin_lock_irqsave().
Currently, when #define DEBUG, it spoils the compiler with
In file included from drivers/usb/dwc3/gadget.c:18:
drivers/usb/dwc3/gadget.c: In function ‘dwc3_gadget_set_selfpowered’:
include/log.h:235:4: warning: ‘flags’ is used uninitialized in this function [-Wuninitialized]
235 | printf(pr_fmt(fmt), ##args); \
| ^~~~~~
drivers/usb/dwc3/gadget.c:1347:17: note: ‘flags’ was declared here
1347 | unsigned long flags;
| ^~~~~
and so on...
Drop useless debug() call to make compiler happy.
Fixes: 0c06db598367 ("lib, linux: move linux specific defines to linux/compat.h")
Cc: Heiko Schocher <[email protected]>
Cc: Tom Rini <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Oleksandr Andrushchenko <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
