diff options
author | Ramon Fried <ramon.fried@gmail.com> | 2018-06-06 00:38:59 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-06-07 17:08:06 -0400 |
commit | 948f32c8563568a76153f61ee4094c5aafe21eaf (patch) | |
tree | 2f3102dd6f8799333ac7877da30165985ad07476 /drivers/usb/dwc3 | |
parent | 46960ad6d09b948b5df5236029bc072f9800aeb3 (diff) | |
download | u-boot-948f32c8563568a76153f61ee4094c5aafe21eaf.tar.gz |
bug.h: introduce WARN_ONCE
Add WARN_ONCE definition to allow single time notification
of warnings to the user.
Taken from Linux kernel (4.17) with slight changes
(Removed __section(.data.once))
Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
[trini: Drop the musb and dwc3 compat versions]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/linux-compat.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/linux-compat.h b/drivers/usb/dwc3/linux-compat.h index 35850f91a3..82793765be 100644 --- a/drivers/usb/dwc3/linux-compat.h +++ b/drivers/usb/dwc3/linux-compat.h @@ -11,7 +11,6 @@ #ifndef __DWC3_LINUX_COMPAT__ #define __DWC3_LINUX_COMPAT__ -#define WARN(val, format, arg...) debug(format, ##arg) #define dev_WARN(dev, format, arg...) debug(format, ##arg) static inline size_t strlcat(char *dest, const char *src, size_t n) |