From 948f32c8563568a76153f61ee4094c5aafe21eaf Mon Sep 17 00:00:00 2001 From: Ramon Fried Date: Wed, 6 Jun 2018 00:38:59 +0300 Subject: 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 [trini: Drop the musb and dwc3 compat versions] Signed-off-by: Tom Rini --- drivers/usb/musb-new/linux-compat.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/usb/musb-new/linux-compat.h') diff --git a/drivers/usb/musb-new/linux-compat.h b/drivers/usb/musb-new/linux-compat.h index 7bb53d2b19..f366ae58e8 100644 --- a/drivers/usb/musb-new/linux-compat.h +++ b/drivers/usb/musb-new/linux-compat.h @@ -5,12 +5,6 @@ #include #include -#define WARN(condition, fmt, args...) ({ \ - int ret_warn = !!condition; \ - if (ret_warn) \ - printf(fmt, ##args); \ - ret_warn; }) - #define device_init_wakeup(dev, a) do {} while (0) #define platform_data device_data -- cgit