Rid W=1 warnings from HID
Subsystems (11)
cover Rid W=1 warnings from HID
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
Lee Jones (25):
HID: intel-ish-hid: Remove unused variable 'err'
HID: ishtp-hid-client: Move variable to where it's actually used
HID: intel-ish-hid: pci-ish: Remove unused variable 'ret'
HID: intel-ish: Supply some missing param descriptions
HID: intel-ish: Fix a naming disparity and a formatting error
HID: usbhid: Repair a formatting issue in a struct description
HID: intel-ish-hid: Fix a little doc-rot
HID: usbhid: hid-pidff: Demote a couple kernel-doc abuses
HID: hid-alps: Correct struct misnaming
HID: intel-ish-hid: Fix potential copy/paste error
HID: hid-core: Fix incorrect function name in header
HID: intel-ish-hid: ipc: Correct fw_reset_work_fn() function name in
header
HID: ishtp-hid-client: Fix incorrect function name report_bad_packet()
HID: hid-kye: Fix incorrect function name for kye_tablet_enable()
HID: hid-picolcd_core: Remove unused variable 'ret'
HID: hid-logitech-hidpp: Fix conformant kernel-doc header and demote
abuses
HID: hid-uclogic-rdesc: Kernel-doc is for functions and structs
HID: hid-thrustmaster: Demote a bunch of kernel-doc abuses
HID: hid-uclogic-params: Ensure function names are present and correct
in kernel-doc headers
HID: hid-sensor-custom: Remove unused variable 'ret'
HID: wacom_sys: Demote kernel-doc abuse
HID: hid-sensor-hub: Remove unused struct member 'quirks'
HID: hid-sensor-hub: Move 'hsdev' description to correct struct
definition
HID: intel-ish-hid: ishtp-fw-loader: Fix a bunch of formatting issues
HID: ishtp-hid-client: Fix 'suggest-attribute=format' compiler warning
drivers/hid/hid-alps.c | 2 +- drivers/hid/hid-core.c | 2 +- drivers/hid/hid-kye.c | 2 +- drivers/hid/hid-logitech-hidpp.c | 7 +-- drivers/hid/hid-picolcd_core.c | 5 +-- drivers/hid/hid-sensor-custom.c | 5 +-- drivers/hid/hid-sensor-hub.c | 4 +- drivers/hid/hid-thrustmaster.c | 24 +++++------ drivers/hid/hid-uclogic-params.c | 8 ++-- drivers/hid/hid-uclogic-rdesc.c | 2 +- drivers/hid/intel-ish-hid/ipc/ipc.c | 2 +- drivers/hid/intel-ish-hid/ipc/pci-ish.c | 3 +- drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 45 ++++++++++---------- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 11 +++-- drivers/hid/intel-ish-hid/ishtp-hid.c | 2 +- drivers/hid/intel-ish-hid/ishtp-hid.h | 9 +--- drivers/hid/intel-ish-hid/ishtp/bus.c | 9 +++- drivers/hid/intel-ish-hid/ishtp/client.c | 5 +-- drivers/hid/intel-ish-hid/ishtp/hbm.c | 4 +- drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 4 +- drivers/hid/usbhid/hid-pidff.c | 4 +- drivers/hid/usbhid/usbkbd.c | 2 +- drivers/hid/wacom_sys.c | 2 +- include/linux/intel-ish-client-if.h | 8 +++- 24 files changed, 90 insertions(+), 81 deletions(-)
Signature · 6 lines
2.27.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/25 HID: intel-ish-hid: Remove unused variable 'err'
Fixes the following W=1 kernel build warning(s):
drivers/hid/intel-ish-hid/ishtp/client.c: In function ‘ishtp_cl_disconnect’:
drivers/hid/intel-ish-hid/ishtp/client.c:266:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
--- drivers/hid/intel-ish-hid/ishtp/client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/hid/intel-ish-hid/ishtp/client.c +1 -2
@@ -263,7 +263,6 @@ EXPORT_SYMBOL(ishtp_cl_unlink);int ishtp_cl_disconnect (struct ishtp_cl *cl) {struct ishtp_device *dev; -int err;if (WARN_ON (!cl || !cl->dev))return -ENODEV ;
@@ -283,7 +282,7 @@ int ishtp_cl_disconnect(struct ishtp_cl *cl)return -ENODEV ; } - err =wait_event_interruptible_timeout (cl->wait_ctrl_res, +wait_event_interruptible_timeout (cl->wait_ctrl_res, (dev->dev_state !=ISHTP_DEV_ENABLED || cl->state ==ISHTP_CL_DISCONNECTED ),ishtp_secs_to_jiffies (ISHTP_CL_CONNECT_TIMEOUT ));
Signature · 1 line
2.27.0
PATCH 2/25 HID: ishtp-hid-client: Move variable to where it's actually used
In reply to Lee JonesFixes 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=]
--- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 5 +++++ drivers/hid/intel-ish-hid/ishtp-hid.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/hid/intel-ish-hid/ishtp-hid-client.c +5 -0
@@ -11,6 +11,11 @@#include <linux/sched.h> #include "ishtp-hid.h" +/* ISH Transport protocol (ISHTP in short) GUID */ +static const guid_t hid_ishtp_guid = +GUID_INIT (0x33AECD58 ,0xB679 ,0x4E54 , +0x9B ,0xD9 ,0xA0 ,0x4D ,0x34 ,0xF0 ,0xC2 ,0x26 ); +/* Rx ring buffer pool size */ #define HID_CL_RX_RING_SIZE 32#define HID_CL_TX_RING_SIZE 16
drivers/hid/intel-ish-hid/ishtp-hid.h +0 -5
@@ -20,11 +20,6 @@ extern void (*hid_print_trace)(void *unused, const char *format, ...);#define hid_ishtp_trace (client, ...) \ (hid_print_trace)(NULL, __VA_ARGS__) -/* ISH Transport protocol (ISHTP in short) GUID */ -static const guid_t hid_ishtp_guid = -GUID_INIT (0x33AECD58 ,0xB679 ,0x4E54 , -0x9B ,0xD9 ,0xA0 ,0x4D ,0x34 ,0xF0 ,0xC2 ,0x26 ); -/* ISH HID message structure */ struct hostif_msg_hdr {uint8_t command;/* Bit 7: is_response */
Signature · 1 line
2.27.0
PATCH 3/25 HID: intel-ish-hid: pci-ish: Remove unused variable 'ret'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/intel-ish-hid/ipc/pci-ish.c: In function ‘ish_resume_handler’:
drivers/hid/intel-ish-hid/ipc/pci-ish.c:264:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
--- drivers/hid/intel-ish-hid/ipc/pci-ish.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/hid/intel-ish-hid/ipc/pci-ish.c +1 -2
@@ -261,7 +261,6 @@ static void __maybe_unused ish_resume_handler(struct work_struct *work)struct pci_dev *pdev =to_pci_dev (ish_resume_device);struct ishtp_device *dev =pci_get_drvdata (pdev);uint32_t fwsts = dev->ops->get_fw_status (dev); -int ret;if (ish_should_leave_d0i3 (pdev) && !dev->suspend_flag &&IPC_IS_ISH_ILUP (fwsts)) {
@@ -273,7 +272,7 @@ static void __maybe_unused ish_resume_handler(struct work_struct *work)/* Waiting to get resume response */ if (dev->resume_flag) - ret =wait_event_interruptible_timeout (dev->resume_wait, +wait_event_interruptible_timeout (dev->resume_wait, !dev->resume_flag,msecs_to_jiffies (WAIT_FOR_RESUME_ACK_MS ));
Signature · 1 line
2.27.0
PATCH 4/25 HID: intel-ish: Supply some missing param descriptions
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/intel-ish-hid/ishtp/bus.c:173: warning: Function parameter or member 'fw_client' not described in 'ishtp_get_fw_client_id' drivers/hid/intel-ish-hid/ishtp/bus.c:845: warning: Function parameter or member 'device' not described in 'ishtp_device' drivers/hid/intel-ish-hid/ishtp/bus.c:858: warning: Function parameter or member 'device' not described in 'ishtp_get_pci_device' drivers/hid/intel-ish-hid/ishtp/bus.c:871: warning: Function parameter or member 'cl_device' not described in 'ishtp_trace_callback' drivers/hid/intel-ish-hid/ishtp/bus.c:884: warning: Function parameter or member 'dev' not described in 'ish_hw_reset'
--- drivers/hid/intel-ish-hid/ishtp/bus.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/hid/intel-ish-hid/ishtp/bus.c +5 -0
@@ -164,6 +164,7 @@ EXPORT_SYMBOL(ishtp_fw_cl_get_client);/** * ishtp_get_fw_client_id() - Get fw client id +* @fw_client: firmware client used to fetch the ID * * This interface is used to reset HW get FW client id. *
@@ -835,6 +836,7 @@ int ishtp_use_dma_transfer(void)/** * ishtp_device() - Return device pointer +* @device: ISH-TP client device instance * * This interface is used to return device pointer from ishtp_cl_device * instance.
@@ -851,6 +853,7 @@ EXPORT_SYMBOL(ishtp_device);* ishtp_get_pci_device() - Return PCI device dev pointer * This interface is used to return PCI device pointer * from ishtp_cl_device instance. +* @device: ISH-TP client device instance * * Return: device *. */
@@ -862,6 +865,7 @@ EXPORT_SYMBOL(ishtp_get_pci_device);/** * ishtp_trace_callback() - Return trace callback +* @cl_device: ISH-TP client device instance * * This interface is used to return trace callback function pointer. *
@@ -875,6 +879,7 @@ EXPORT_SYMBOL(ishtp_trace_callback);/** * ish_hw_reset() - Call HW reset IPC callback +* @dev: ISHTP device instance * * This interface is used to reset HW in case of error. *
Signature · 1 line
2.27.0
PATCH 5/25 HID: intel-ish: Fix a naming disparity and a formatting error
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/intel-ish-hid/ishtp/hbm.c:409: warning: expecting prototype for ishtp_client_disconnect_request(). Prototype was for ishtp_hbm_fw_disconnect_req() instead drivers/hid/intel-ish-hid/ishtp/hbm.c:433: warning: wrong kernel-doc identifier on line:
--- drivers/hid/intel-ish-hid/ishtp/hbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hid/intel-ish-hid/ishtp/hbm.c +2 -2
@@ -398,7 +398,7 @@ static void ishtp_hbm_cl_connect_res(struct ishtp_device *dev, }/** -* ishtp_client_disconnect_request() - Receive disconnect request +* ishtp_hbm_fw_disconnect_req() - Receive disconnect request * @dev: ISHTP device instance * @disconnect_req: disconnect request structure *
@@ -430,7 +430,7 @@ static void ishtp_hbm_fw_disconnect_req(struct ishtp_device *dev, }/** -* ishtp_hbm_dma_xfer_ack(() - Receive transfer ACK +* ishtp_hbm_dma_xfer_ack() - Receive transfer ACK * @dev: ISHTP device instance * @dma_xfer: HBM transfer message *
Signature · 1 line
2.27.0
PATCH 6/25 HID: usbhid: Repair a formatting issue in a struct description
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/usbhid/usbkbd.c:66: warning: bad line: should be on
--- drivers/hid/usbhid/usbkbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/usbhid/usbkbd.c +1 -1
@@ -63,7 +63,7 @@ static const unsigned char usb_kbd_keycode[256] = {* new key is pressed or a key that was pressed is released. * @led: URB for sending LEDs (e.g. numlock, ...) * @newleds: data that will be sent with the @led URB representing which LEDs -should be on +* should be on * @name: Name of the keyboard. @dev's name field points to this buffer * @phys: Physical path of the keyboard. @dev's phys field points to this * buffer
Signature · 1 line
2.27.0
PATCH 7/25 HID: intel-ish-hid: Fix a little doc-rot
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/intel-ish-hid/ishtp/client.c:121: warning: Function parameter or member 'cl_device' not described in 'ishtp_cl_allocate' drivers/hid/intel-ish-hid/ishtp/client.c:121: warning: Excess function parameter 'dev' description in 'ishtp_cl_allocate'
--- drivers/hid/intel-ish-hid/ishtp/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ishtp/client.c +1 -1
@@ -111,7 +111,7 @@ static void ishtp_cl_init(struct ishtp_cl *cl, struct ishtp_device *dev)/** * ishtp_cl_allocate() - allocates client structure and sets it up. -* @dev: ishtp device +* @cl_device: ishtp client device * * Allocate memory for new client device and call to initialize each field. *
Signature · 1 line
2.27.0
PATCH 8/25 HID: usbhid: hid-pidff: Demote a couple kernel-doc abuses
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/usbhid/hid-pidff.c:512: warning: Function parameter or member 'dev' not described in 'pidff_playback' drivers/hid/usbhid/hid-pidff.c:512: warning: Function parameter or member 'effect_id' not described in 'pidff_playback' drivers/hid/usbhid/hid-pidff.c:512: warning: Function parameter or member 'value' not described in 'pidff_playback' drivers/hid/usbhid/hid-pidff.c:512: warning: expecting prototype for value times(). Prototype was for pidff_playback() instead drivers/hid/usbhid/hid-pidff.c:1005: warning: Function parameter or member 'pidff' not described in 'pidff_find_effects' drivers/hid/usbhid/hid-pidff.c:1005: warning: Function parameter or member 'dev' not described in 'pidff_find_effects' drivers/hid/usbhid/hid-pidff.c:1005: warning: expecting prototype for Find the implemented effect types(). Prototype was for pidff_find_effects() instead
--- drivers/hid/usbhid/hid-pidff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hid/usbhid/hid-pidff.c +2 -2
@@ -505,7 +505,7 @@ static void pidff_playback_pid(struct pidff_device *pidff, int pid_id, int n) HID_REQ_SET_REPORT); } -/** +/* * Play the effect with effect id @effect_id for @value times */ static int pidff_playback (struct input_dev *dev,int effect_id,int value)
@@ -997,7 +997,7 @@ static int pidff_find_special_fields(struct pidff_device *pidff)return 0 ; } -/** +/* * Find the implemented effect types */ static int pidff_find_effects(struct pidff_device *pidff,
Signature · 1 line
2.27.0
PATCH 9/25 HID: hid-alps: Correct struct misnaming
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/hid-alps.c:113: warning: expecting prototype for struct u1_data. Prototype was for struct alps_dev instead
--- drivers/hid/hid-alps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-alps.c +1 -1
@@ -74,7 +74,7 @@ enum dev_num { UNKNOWN, };/** -* struct u1_data +* struct alps_dev * * @input: pointer to the kernel input device * @input2: pointer to the kernel input2 device
Signature · 1 line
2.27.0
PATCH 10/25 HID: intel-ish-hid: Fix potential copy/paste error
In reply to Lee JonesFixes 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.c:263: warning: expecting prototype for ishtp_hid_probe(). Prototype was for ishtp_hid_remove() instead
--- drivers/hid/intel-ish-hid/ishtp-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ishtp-hid.c +1 -1
@@ -254,7 +254,7 @@ int ishtp_hid_probe(unsigned int cur_hid_dev, }/** -* ishtp_hid_probe() - Remove registered hid device +* ishtp_hid_remove() - Remove registered hid device * @client_data: client data pointer * * This function is used to destroy allocatd HID device.
Signature · 1 line
2.27.0
PATCH 11/25 HID: hid-core: Fix incorrect function name in header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/hid-core.c:2142: warning: expecting prototype for store_new_id(). Prototype was for new_id_store() instead
--- drivers/hid/hid-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-core.c +1 -1
@@ -2129,7 +2129,7 @@ struct hid_dynid { };/** -* store_new_id - add a new HID device ID to this driver and re-probe devices +* new_id_store - add a new HID device ID to this driver and re-probe devices * @drv: target device driver * @buf: buffer for scanning device ID data * @count: input size
Signature · 1 line
2.27.0
PATCH 12/25 HID: intel-ish-hid: ipc: Correct fw_reset_work_fn() function name in header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/intel-ish-hid/ipc/ipc.c:553: warning: expecting prototype for ish_fw_reset_work_fn(). Prototype was for fw_reset_work_fn() instead
--- drivers/hid/intel-ish-hid/ipc/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ipc/ipc.c +1 -1
@@ -544,7 +544,7 @@ static int ish_fw_reset_handler(struct ishtp_device *dev)#define TIMEOUT_FOR_HW_RDY_MS 300/** -* ish_fw_reset_work_fn() - FW reset worker function +* fw_reset_work_fn() - FW reset worker function * @unused: not used * * Call ish_fw_reset_handler to complete FW reset
Signature · 1 line
2.27.0
PATCH 13/25 HID: ishtp-hid-client: Fix incorrect function name report_bad_packet()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/intel-ish-hid/ishtp-hid-client.c:36: warning: expecting prototype for report_bad_packets(). Prototype was for report_bad_packet() instead
--- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ishtp-hid-client.c +1 -1
@@ -23,7 +23,7 @@ static const guid_t hid_ishtp_guid =#define cl_data_to_dev (client_data) ishtp_device(client_data->cl_device)/** -* report_bad_packets() - Report bad packets +* report_bad_packet() - Report bad packets * @hid_ishtp_cl: Client instance to get stats * @recv_buf: Raw received host interface message * @cur_pos: Current position index in payload
Signature · 1 line
2.27.0
PATCH 14/25 HID: hid-kye: Fix incorrect function name for kye_tablet_enable()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/hid-kye.c:666: warning: expecting prototype for Enable fully(). Prototype was for kye_tablet_enable() instead
--- drivers/hid/hid-kye.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-kye.c +1 -1
@@ -655,7 +655,7 @@ static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, }/** -* Enable fully-functional tablet mode by setting a special feature report. +* kye_tablet_enable() - Enable fully-functional tablet mode by setting a special feature report. * * @hdev: HID device *
Signature · 1 line
2.27.0
PATCH 15/25 HID: hid-picolcd_core: Remove unused variable 'ret'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/hid-picolcd_core.c: In function ‘picolcd_raw_event’:
drivers/hid/hid-picolcd_core.c:332:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
--- drivers/hid/hid-picolcd_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/hid/hid-picolcd_core.c +2 -3
@@ -329,7 +329,6 @@ static int picolcd_raw_event(struct hid_device *hdev, {struct picolcd_data *data =hid_get_drvdata (hdev);unsigned long flags; -int ret =0 ;if (!data)return 1 ;
@@ -342,9 +341,9 @@ static int picolcd_raw_event(struct hid_device *hdev,if (report->id ==REPORT_KEY_STATE ) {if (data->input_keys) - ret =picolcd_raw_keypad (data, report, raw_data+1 , size-1 ); +picolcd_raw_keypad (data, report, raw_data+1 , size-1 ); }else if (report->id ==REPORT_IR_DATA ) { - ret =picolcd_raw_cir (data, report, raw_data+1 , size-1 ); +picolcd_raw_cir (data, report, raw_data+1 , size-1 ); }else {spin_lock_irqsave (&data->lock, flags);/*
Signature · 1 line
2.27.0
PATCH 16/25 HID: hid-logitech-hidpp: Fix conformant kernel-doc header and demote abuses
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/hid-logitech-hidpp.c:275: warning: Function parameter or member 'hidpp' not described in 'hidpp_send_message_sync'
drivers/hid/hid-logitech-hidpp.c:275: warning: Function parameter or member 'message' not described in 'hidpp_send_message_sync' drivers/hid/hid-logitech-hidpp.c:275: warning: Function parameter or member 'response' not described in 'hidpp_send_message_sync' drivers/hid/hid-logitech-hidpp.c:275: warning: expecting prototype for and something else(). Prototype was for hidpp_send_message_sync() instead drivers/hid/hid-logitech-hidpp.c:427: warning: wrong kernel-doc identifier on line:
drivers/hid/hid-logitech-hidpp.c:470: warning: Function parameter or member 'input_dev' not described in 'hidpp_scroll_counter_handle_scroll' drivers/hid/hid-logitech-hidpp.c:1894: warning: Function parameter or member 'hidpp' not described in 'hidpp_touchpad_fw_items_set' drivers/hid/hid-logitech-hidpp.c:1894: warning: Function parameter or member 'feature_index' not described in 'hidpp_touchpad_fw_items_set' drivers/hid/hid-logitech-hidpp.c:1894: warning: Function parameter or member 'items' not described in 'hidpp_touchpad_fw_items_set' drivers/hid/hid-logitech-hidpp.c:1894: warning: expecting prototype for send a set state command to the device by reading the current items(). Prototype was for hidpp_touchpad_fw_items_set() instead
--- drivers/hid/hid-logitech-hidpp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/hid/hid-logitech-hidpp.c +4 -3
@@ -261,7 +261,7 @@ static int __hidpp_send_report(struct hid_device *hdev,return ret == fields_count ?0 :-1 ; } -/** +/* * hidpp_send_message_sync() returns 0 in case of success, and something else * in case of a failure. * - If ' something else' is positive, that means that an error has been raised
@@ -423,7 +423,7 @@ static inline bool hidpp_report_is_connect_event(struct hidpp_device *hidpp, (report->rap.sub_id == 0x41)); } -/** +/* * hidpp_prefix_name() prefixes the current given name with "Logitech ". */ static void hidpp_prefix_name (char **name,int name_length)
@@ -454,6 +454,7 @@ static void hidpp_prefix_name(char **name, int name_length)* hidpp_scroll_counter_handle_scroll() - Send high- and low-resolution scroll * events given a high-resolution wheel * movement. +* @input_dev: Pointer to the input device * @counter: a hid_scroll_counter struct describing the wheel. * @hi_res_value: the movement of the wheel, in the mouse's high-resolution * units.
@@ -1884,7 +1885,7 @@ struct hidpp_touchpad_fw_items {uint8_t persistent; }; -/** +/* * send a set state command to the device by reading the current items->state * field. items is then filled with the current state. */
Signature · 1 line
2.27.0
PATCH 17/25 HID: hid-uclogic-rdesc: Kernel-doc is for functions and structs
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/hid-uclogic-rdesc.c:645: warning: wrong kernel-doc identifier on line:
--- drivers/hid/hid-uclogic-rdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-uclogic-rdesc.c +1 -1
@@ -641,7 +641,7 @@ const __u8 uclogic_rdesc_pen_v2_template_arr[] = {const size_t uclogic_rdesc_pen_v2_template_size =sizeof (uclogic_rdesc_pen_v2_template_arr); -/** +/* * Expand to the contents of a generic buttonpad report descriptor. * * @_padding: Padding from the end of button bits at bit 44, until
Signature · 1 line
2.27.0
PATCH 18/25 HID: hid-thrustmaster: Demote a bunch of kernel-doc abuses
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/hid/hid-thrustmaster.c:23: warning: Incorrect use of kernel-doc format: * These interrupts are used to prevent a nasty crash when initializing the drivers/hid/hid-thrustmaster.c:26: warning: cannot understand function prototype: 'const u8 setup_0[] = '
drivers/hid/hid-thrustmaster.c:49: warning: cannot understand function prototype: 'struct tm_wheel_info '
drivers/hid/hid-thrustmaster.c:62: warning: wrong kernel-doc identifier on line:
drivers/hid/hid-thrustmaster.c:84: warning: cannot understand function prototype: 'struct __packed tm_wheel_response '
drivers/hid/hid-thrustmaster.c:143: warning: wrong kernel-doc identifier on line:
drivers/hid/hid-thrustmaster.c:202: warning: Function parameter or member 'urb' not described in 'thrustmaster_model_handler'
drivers/hid/hid-thrustmaster.c:202: warning: expecting prototype for Called by the USB subsystem when the wheel responses to our request(). Prototype was for thrustmaster_model_handler() instead drivers/hid/hid-thrustmaster.c:265: warning: wrong kernel-doc identifier on line:
--- drivers/hid/hid-thrustmaster.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/hid/hid-thrustmaster.c +12 -12
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/** +/* * When connected to the machine, the Thrustmaster wheels appear as * a «generic» hid gamepad called "Thrustmaster FFB Wheel". *
@@ -19,7 +19,7 @@#include <linux/slab.h> #include <linux/module.h> -/** +/* * These interrupts are used to prevent a nasty crash when initializing the * T300RS. Used in thrustmaster_interrupts(). */
@@ -36,7 +36,7 @@ static const unsigned int setup_arr_sizes[] = {ARRAY_SIZE (setup_3), ARRAY_SIZE(setup_4) }; -/** +/* * This struct contains for each type of * Thrustmaster wheel *
@@ -49,7 +49,7 @@ static const unsigned int setup_arr_sizes[] = {struct tm_wheel_info {uint16_t wheel_type; -/** +/* * See when the USB control out packet is prepared... * @TODO The TMX seems to require multiple control codes to switch. */
@@ -58,7 +58,7 @@ struct tm_wheel_info {char const *const wheel_name; }; -/** +/* * Known wheels. * Note: TMX does not work as it requires 2 control packets */
@@ -72,7 +72,7 @@ static const struct tm_wheel_info tm_wheels_infos[] = {static const uint8_t tm_wheels_infos_length =4 ; -/** +/* * This structs contains (in little endian) the response data * of the wheel to the request 73 *
@@ -82,7 +82,7 @@ static const uint8_t tm_wheels_infos_length = 4;*/ struct __packed tm_wheel_response { -/** +/* * Seems to be the type of packet * - 0x0049 if is data.a (15 bytes) * - 0x0047 if is data.b (7 bytes)
@@ -93,7 +93,7 @@ struct __packed tm_wheel_responsestruct __packed {uint16_t field0;uint16_t field1; -/** +/* * Seems to be the model code of the wheel * Read table thrustmaster_wheels to values */
@@ -122,7 +122,7 @@ struct tm_wheel {struct usb_ctrlrequest *change_request; }; -/** The control packet to send to wheel */ +/* The control packet to send to wheel */ static const struct usb_ctrlrequest model_request = { .bRequestType =0xc1 , .bRequest =73 ,
@@ -139,7 +139,7 @@ static const struct usb_ctrlrequest change_request = { .wLength = 0 }; -/** +/* * On some setups initializing the T300RS crashes the kernel, * these interrupts fix that particular issue. So far they haven't caused any * adverse effects in other wheels.
@@ -191,7 +191,7 @@ static void thrustmaster_change_handler(struct urb *urb)hid_warn (hdev,"URB to change wheel mode seems to have failed with error %d\n" , urb->status); } -/** +/* * Called by the USB subsystem when the wheel responses to our request * to get [what it seems to be] the wheel's model. *
@@ -261,7 +261,7 @@ static void thrustmaster_remove(struct hid_device *hdev)hid_hw_stop (hdev); } -/** +/* * Function called by HID when a hid Thrustmaster FFB wheel is connected to the host. * This function starts the hid dev, tries to allocate the tm_wheel data structure and * finally send an USB CONTROL REQUEST to the wheel to get [what it seems to be] its
Signature · 1 line
2.27.0
Quoted 4 lines · Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
For changes in drivers/hid/intel-ish-hid folder
Quoted 98 lines
Lee Jones (25):
HID: intel-ish-hid: Remove unused variable 'err'
HID: ishtp-hid-client: Move variable to where it's actually used
HID: intel-ish-hid: pci-ish: Remove unused variable 'ret'
HID: intel-ish: Supply some missing param descriptions
HID: intel-ish: Fix a naming disparity and a formatting error
HID: usbhid: Repair a formatting issue in a struct description
HID: intel-ish-hid: Fix a little doc-rot
HID: usbhid: hid-pidff: Demote a couple kernel-doc abuses
HID: hid-alps: Correct struct misnaming
HID: intel-ish-hid: Fix potential copy/paste error
HID: hid-core: Fix incorrect function name in header
HID: intel-ish-hid: ipc: Correctfw_reset_work_fn()function name
in
header
HID: ishtp-hid-client: Fix incorrect function namereport_bad_packet()
HID: hid-kye: Fix incorrect function name forkye_tablet_enable()
HID: hid-picolcd_core: Remove unused variable 'ret'
HID: hid-logitech-hidpp: Fix conformant kernel-doc header and
demote
abuses
HID: hid-uclogic-rdesc: Kernel-doc is for functions and structs
HID: hid-thrustmaster: Demote a bunch of kernel-doc abuses
HID: hid-uclogic-params: Ensure function names are present and
correct
in kernel-doc headers
HID: hid-sensor-custom: Remove unused variable 'ret'
HID:wacom_sys: Demote kernel-doc abuse
HID: hid-sensor-hub: Remove unused struct member 'quirks'
HID: hid-sensor-hub: Move 'hsdev' description to correct struct
definition
HID: intel-ish-hid: ishtp-fw-loader: Fix a bunch of formatting
issues
HID: ishtp-hid-client: Fix 'suggest-attribute=format' compiler
warningdrivers/hid/hid-alps.c | 2 +- drivers/hid/hid-core.c | 2 +- drivers/hid/hid-kye.c | 2 +- drivers/hid/hid-logitech-hidpp.c | 7 +-- drivers/hid/hid-picolcd_core.c | 5 +-- drivers/hid/hid-sensor-custom.c | 5 +-- drivers/hid/hid-sensor-hub.c | 4 +- drivers/hid/hid-thrustmaster.c | 24 +++++------ drivers/hid/hid-uclogic-params.c | 8 ++-- drivers/hid/hid-uclogic-rdesc.c | 2 +- drivers/hid/intel-ish-hid/ipc/ipc.c | 2 +- drivers/hid/intel-ish-hid/ipc/pci-ish.c | 3 +- drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 45 ++++++++++------ ---- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 11 +++-- drivers/hid/intel-ish-hid/ishtp-hid.c | 2 +- drivers/hid/intel-ish-hid/ishtp-hid.h | 9 +--- drivers/hid/intel-ish-hid/ishtp/bus.c | 9 +++- drivers/hid/intel-ish-hid/ishtp/client.c | 5 +-- drivers/hid/intel-ish-hid/ishtp/hbm.c | 4 +- drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 4 +- drivers/hid/usbhid/hid-pidff.c | 4 +- drivers/hid/usbhid/usbkbd.c | 2 +- drivers/hid/wacom_sys.c | 2 +- include/linux/intel-ish-client-if.h | 8 +++- 24 files changed, 90 insertions(+), 81 deletions(-)Cc Alexandre Torgue <[email protected]>Cc Anssi Hannula <[email protected]>Cc Benjamin Tissoires <[email protected]>Cc "Bruno Prémont" <[email protected]>Cc "Christian König" <[email protected]>Cc Daniel Drubin <[email protected]>Cc Dario Pagani <[email protected]>Cc Henrik Rydberg <[email protected]>Cc Jiri Kosina <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Kai-Heng Feng <[email protected]>Cc Kim Kuparinen <[email protected]>Cc "Krzysztof Wilczyński" <[email protected]>Cc Lee Jones <[email protected]>Cc Lopez Casado <[email protected]>Cc "L. Vinyard, Jr" <[email protected]>Cc Masaki Ota <[email protected]>Cc Maxime Coquelin <[email protected]>Cc message to <[email protected]>Cc Michael Haboustak <[email protected]>Cc Rushikesh S Kadam <[email protected]>Cc Srinivas Pandruvada <[email protected]>Cc Sumit Semwal <[email protected]>Cc "Uwe Kleine-König" <[email protected]>Cc Vojtech Pavlik <[email protected]>Cc Zhang Lixu <[email protected]>
Jonathan Cameron
maintainerQuoted 3 lines · On Wed, 24 Mar 2021 17:33:39 +0000 Lee Jones <[email protected]> wrote:
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
Lee, it's a bit novel to cc linux-iio on the cover letter but none of the actual patches.. Or least none of them reached me or lore.kernel.org
I'm sure they are great :)
Jonathan
Quoted 84 lines
Lee Jones (25):
HID: intel-ish-hid: Remove unused variable 'err'
HID: ishtp-hid-client: Move variable to where it's actually used
HID: intel-ish-hid: pci-ish: Remove unused variable 'ret'
HID: intel-ish: Supply some missing param descriptions
HID: intel-ish: Fix a naming disparity and a formatting error
HID: usbhid: Repair a formatting issue in a struct description
HID: intel-ish-hid: Fix a little doc-rot
HID: usbhid: hid-pidff: Demote a couple kernel-doc abuses
HID: hid-alps: Correct struct misnaming
HID: intel-ish-hid: Fix potential copy/paste error
HID: hid-core: Fix incorrect function name in header
HID: intel-ish-hid: ipc: Correctfw_reset_work_fn()function name in
header
HID: ishtp-hid-client: Fix incorrect function namereport_bad_packet()
HID: hid-kye: Fix incorrect function name forkye_tablet_enable()
HID: hid-picolcd_core: Remove unused variable 'ret'
HID: hid-logitech-hidpp: Fix conformant kernel-doc header and demote
abuses
HID: hid-uclogic-rdesc: Kernel-doc is for functions and structs
HID: hid-thrustmaster: Demote a bunch of kernel-doc abuses
HID: hid-uclogic-params: Ensure function names are present and correct
in kernel-doc headers
HID: hid-sensor-custom: Remove unused variable 'ret'
HID:wacom_sys: Demote kernel-doc abuse
HID: hid-sensor-hub: Remove unused struct member 'quirks'
HID: hid-sensor-hub: Move 'hsdev' description to correct struct
definition
HID: intel-ish-hid: ishtp-fw-loader: Fix a bunch of formatting issues
HID: ishtp-hid-client: Fix 'suggest-attribute=format' compiler warningdrivers/hid/hid-alps.c | 2 +- drivers/hid/hid-core.c | 2 +- drivers/hid/hid-kye.c | 2 +- drivers/hid/hid-logitech-hidpp.c | 7 +-- drivers/hid/hid-picolcd_core.c | 5 +-- drivers/hid/hid-sensor-custom.c | 5 +-- drivers/hid/hid-sensor-hub.c | 4 +- drivers/hid/hid-thrustmaster.c | 24 +++++------ drivers/hid/hid-uclogic-params.c | 8 ++-- drivers/hid/hid-uclogic-rdesc.c | 2 +- drivers/hid/intel-ish-hid/ipc/ipc.c | 2 +- drivers/hid/intel-ish-hid/ipc/pci-ish.c | 3 +- drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 45 ++++++++++---------- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 11 +++-- drivers/hid/intel-ish-hid/ishtp-hid.c | 2 +- drivers/hid/intel-ish-hid/ishtp-hid.h | 9 +--- drivers/hid/intel-ish-hid/ishtp/bus.c | 9 +++- drivers/hid/intel-ish-hid/ishtp/client.c | 5 +-- drivers/hid/intel-ish-hid/ishtp/hbm.c | 4 +- drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 4 +- drivers/hid/usbhid/hid-pidff.c | 4 +- drivers/hid/usbhid/usbkbd.c | 2 +- drivers/hid/wacom_sys.c | 2 +- include/linux/intel-ish-client-if.h | 8 +++- 24 files changed, 90 insertions(+), 81 deletions(-)Cc Alexandre Torgue <[email protected]>Cc Anssi Hannula <[email protected]>Cc Benjamin Tissoires <[email protected]>Cc "Bruno Prémont" <[email protected]>Cc "Christian König" <[email protected]>Cc Daniel Drubin <[email protected]>Cc Dario Pagani <[email protected]>Cc Henrik Rydberg <[email protected]>Cc Jiri Kosina <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Kai-Heng Feng <[email protected]>Cc Kim Kuparinen <[email protected]>Cc "Krzysztof Wilczyński" <[email protected]>Cc Lee Jones <[email protected]>Cc Lopez Casado <[email protected]>Cc "L. Vinyard, Jr" <[email protected]>Cc Masaki Ota <[email protected]>Cc Maxime Coquelin <[email protected]>
Quoted 8 lines
Cc message to <[email protected]>Cc Michael Haboustak <[email protected]>Cc Rushikesh S Kadam <[email protected]>Cc Srinivas Pandruvada <[email protected]>Cc Sumit Semwal <[email protected]>Cc "Uwe Kleine-König" <[email protected]>Cc Vojtech Pavlik <[email protected]>Cc Zhang Lixu <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Jonathan Cameron
Quoted 3 lines · On Wed, 24 Mar 2021 17:33:39 +0000 Lee Jones <[email protected]> wrote:
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
Lee, it's a bit novel to cc linux-iio on the cover letter but none of the actual patches.. Or least none of them reached me or lore.kernel.org
Looks like only 18 of the 25 actually made it onto the list.
How odd!
Hold on, I'll submit a [RESEND].
Quoted 1 line
I'm sure they are great :)
Naturally!
Signature · 8 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Lee Jones
Quoted 7 lines · Jonathan Cameron
Quoted 3 lines · On Wed, 24 Mar 2021 17:33:39 +0000 Lee Jones <[email protected]> wrote:
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
Quoted 7 lines
Quoted 3 lines
Lee, it's a bit novel to cc linux-iio on the cover letter but none of the actual patches.. Or least none of them reached me or lore.kernel.org
Looks like only 18 of the 25 actually made it onto the list.
How odd!
Ouch! That's why then:
4.3.0 Temporary System Problem. Try again later (10). p19sm1466367edr.57 - gsmtp
Quoted 6 lines
Hold on, I'll submit a [RESEND].
Quoted 1 line
I'm sure they are great :)
Naturally!
Signature · 8 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel