bug.h: introduce WARN_ONCE
authorRamon Fried <ramon.fried@gmail.com>
Tue, 5 Jun 2018 21:38:59 +0000 (00:38 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 7 Jun 2018 21:08:06 +0000 (17:08 -0400)
commit948f32c8563568a76153f61ee4094c5aafe21eaf
tree2f3102dd6f8799333ac7877da30165985ad07476
parent46960ad6d09b948b5df5236029bc072f9800aeb3
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>
drivers/usb/dwc3/linux-compat.h
drivers/usb/musb-new/linux-compat.h
include/linux/bug.h