mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202502091105.ZsLoBSIh-lkp@intel.com/ Signed-off-by: Aditya Garg <gargaditya08@live.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
93a0fc4894
commit
cc9714a522
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* Copyright (c) 2017-2018 Ronald Tschalär
|
||||
* Copyright (c) 2022-2023 Kerem Karabay <kekrby@gmail.com>
|
||||
* Copyright (c) 2024 Aditya Garg <gargaditya08@live.com>
|
||||
* Copyright (c) 2024-2025 Aditya Garg <gargaditya08@live.com>
|
||||
*/
|
||||
|
||||
#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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user