Skip to content

Commit ed94a8f

Browse files
Jiri Slaby (SUSE)Jiri Kosina
authored andcommitted
HID: protect hid_device::bpf by CONFIG_HID_BPF
And not by CONFIG_BPF. BPF can be selected while HID_BPF does not have to. It actually cannot be on some platforms due to Kconfig dependences. This saves quite some bytes on those setups. Found by https://github.com/jirislaby/clang-struct. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent dcd5231 commit ed94a8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/hid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,9 @@ struct hid_device { /* device report descriptor */
683683

684684
unsigned int id; /* system unique id */
685685

686-
#ifdef CONFIG_BPF
686+
#ifdef CONFIG_HID_BPF
687687
struct hid_bpf bpf; /* hid-bpf data */
688-
#endif /* CONFIG_BPF */
688+
#endif /* CONFIG_HID_BPF */
689689
};
690690

691691
void hiddev_free(struct kref *ref);

0 commit comments

Comments
 (0)