]> git.ipfire.org Git - thirdparty/linux.git/commit
HID: remove duplicate hid_warn_ratelimited definition
authorLiu Kai <lukace97@outlook.com>
Thu, 7 May 2026 08:32:04 +0000 (16:32 +0800)
committerBenjamin Tissoires <bentiss@kernel.org>
Thu, 21 May 2026 14:14:33 +0000 (16:14 +0200)
commitdd2147375a8fe7c5bc3f1f1b1d3a9567c26faefa
tree24adc8bbae115bacd215764468c243a7aa715d80
parent2e78b21864dd6e21b76160753ea632b5e758fdbd
HID: remove duplicate hid_warn_ratelimited definition

The hid_warn_ratelimited macro is defined twice in include/linux/hid.h:
- first one added by commit 4051ead99888 ("HID: rate-limit hid_warn to
  prevent log flooding")
- second one added by commit 1d64624243af ("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: 1d64624243af ("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>
include/linux/hid.h