Skip to content

Commit cc9714a

Browse files
AdityaGarg8Jiri Kosina
authored andcommitted
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Aditya Garg <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 93a0fc4 commit cc9714a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/hid-appletb-kbd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (c) 2017-2018 Ronald Tschalär
66
* Copyright (c) 2022-2023 Kerem Karabay <[email protected]>
7-
* Copyright (c) 2024 Aditya Garg <[email protected]>
7+
* Copyright (c) 2024-2025 Aditya Garg <[email protected]>
88
*/
99

1010
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
@@ -143,7 +143,7 @@ static ssize_t mode_store(struct device *dev,
143143
}
144144
static DEVICE_ATTR_RW(mode);
145145

146-
struct attribute *appletb_kbd_attrs[] = {
146+
static struct attribute *appletb_kbd_attrs[] = {
147147
&dev_attr_mode.attr,
148148
NULL
149149
};

0 commit comments

Comments
 (0)