Skip to content

Commit a2e7aa0

Browse files
Lee Jonesbentiss
authored andcommitted
HID: ishtp-hid-client: Move variable to where it's actually used
Fixes the following W=1 kernel build warning(s): In file included from drivers/hid/intel-ish-hid/ishtp-hid.c:11: drivers/hid/intel-ish-hid/ishtp-hid.h:24:21: warning: ‘hid_ishtp_guid’ defined but not used [-Wunused-const-variable=] Cc: Srinivas Pandruvada <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: Benjamin Tissoires <[email protected]> Cc: Daniel Drubin <[email protected]> Cc: [email protected] Signed-off-by: Lee Jones <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 4ce3ba5 commit a2e7aa0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/hid/intel-ish-hid/ishtp-hid-client.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
#include <linux/sched.h>
1212
#include "ishtp-hid.h"
1313

14+
/* ISH Transport protocol (ISHTP in short) GUID */
15+
static const guid_t hid_ishtp_guid =
16+
GUID_INIT(0x33AECD58, 0xB679, 0x4E54,
17+
0x9B, 0xD9, 0xA0, 0x4D, 0x34, 0xF0, 0xC2, 0x26);
18+
1419
/* Rx ring buffer pool size */
1520
#define HID_CL_RX_RING_SIZE 32
1621
#define HID_CL_TX_RING_SIZE 16

drivers/hid/intel-ish-hid/ishtp-hid.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ extern void (*hid_print_trace)(void *unused, const char *format, ...);
2020
#define hid_ishtp_trace(client, ...) \
2121
(hid_print_trace)(NULL, __VA_ARGS__)
2222

23-
/* ISH Transport protocol (ISHTP in short) GUID */
24-
static const guid_t hid_ishtp_guid =
25-
GUID_INIT(0x33AECD58, 0xB679, 0x4E54,
26-
0x9B, 0xD9, 0xA0, 0x4D, 0x34, 0xF0, 0xC2, 0x26);
27-
2823
/* ISH HID message structure */
2924
struct hostif_msg_hdr {
3025
uint8_t command; /* Bit 7: is_response */

0 commit comments

Comments
 (0)