From: Aditya Garg Date: Sun, 9 Feb 2025 07:26:45 +0000 (+0000) Subject: HID: hid-appletb-kbd: make struct attribute *appletb_kbd_attrs[] static X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cc9714a5227b242266c6d62007b99e3c4c7f1e4a;p=users%2Fjedix%2Flinux-maple.git HID: hid-appletb-kbd: make struct attribute *appletb_kbd_attrs[] static This commit addresses the sparse warning flagged by the kernel test robot. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202502091105.ZsLoBSIh-lkp@intel.com/ Signed-off-by: Aditya Garg Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-appletb-kbd.c b/drivers/hid/hid-appletb-kbd.c index fa28a691da6a..38fc0e58cb42 100644 --- a/drivers/hid/hid-appletb-kbd.c +++ b/drivers/hid/hid-appletb-kbd.c @@ -4,7 +4,7 @@ * * Copyright (c) 2017-2018 Ronald Tschalär * Copyright (c) 2022-2023 Kerem Karabay - * Copyright (c) 2024 Aditya Garg + * Copyright (c) 2024-2025 Aditya Garg */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt @@ -143,7 +143,7 @@ static ssize_t mode_store(struct device *dev, } static DEVICE_ATTR_RW(mode); -struct attribute *appletb_kbd_attrs[] = { +static struct attribute *appletb_kbd_attrs[] = { &dev_attr_mode.attr, NULL };