mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
HID: remove duplicate hid_warn_ratelimited definition
The hid_warn_ratelimited macro is defined twice in include/linux/hid.h: - first one added by commit4051ead998("HID: rate-limit hid_warn to prevent log flooding") - second one added by commit1d64624243("HID: core: Add printk_ratelimited variants to hid_warn() etc")). The second definition is correctly grouped with other ratelimited macros. Remove the duplicate definition. Fixes:1d64624243("HID: core: Add printk_ratelimited variants to hid_warn() etc") Signed-off-by: Liu Kai <lukace97@outlook.com> [bentiss: edited commit message] Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
This commit is contained in:
committed by
Benjamin Tissoires
parent
2e78b21864
commit
dd2147375a
@@ -1316,8 +1316,6 @@ void hid_quirks_exit(__u16 bus);
|
||||
dev_notice(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_warn(hid, fmt, ...) \
|
||||
dev_warn(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_warn_ratelimited(hid, fmt, ...) \
|
||||
dev_warn_ratelimited(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_info(hid, fmt, ...) \
|
||||
dev_info(&(hid)->dev, fmt, ##__VA_ARGS__)
|
||||
#define hid_dbg(hid, fmt, ...) \
|
||||
|
||||
Reference in New Issue
Block a user