From 9a924755bb98364835b77a748853c291f23fca54 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 19 Jan 2014 15:16:49 +0100 Subject: [PATCH] backports: fix unused hidp_get_raw_report() warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes the following warning: /net/bluetooth/hidp/core.c:271:12: warning: ‘hidp_get_raw_report’ defined but not used [-Wunused-function] static int hidp_get_raw_report(struct hid_device *hid, ^ Signed-off-by: Hauke Mehrtens --- .../net_bluetooth_hidp_core.patch | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/patches/collateral-evolutions/network/16-bluetooth/net_bluetooth_hidp_core.patch b/patches/collateral-evolutions/network/16-bluetooth/net_bluetooth_hidp_core.patch index 4e861f931878..29dca32cd227 100644 --- a/patches/collateral-evolutions/network/16-bluetooth/net_bluetooth_hidp_core.patch +++ b/patches/collateral-evolutions/network/16-bluetooth/net_bluetooth_hidp_core.patch @@ -1,14 +1,24 @@ --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c -@@ -353,6 +353,7 @@ err: +@@ -268,6 +268,7 @@ static int hidp_hidinput_event(struct in + return hidp_send_report(session, field->report); + } + ++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,38)) + static int hidp_get_raw_report(struct hid_device *hid, + unsigned char report_number, + unsigned char *data, size_t count, +@@ -352,7 +353,9 @@ err: + mutex_unlock(&session->report_mutex); return ret; } ++#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,38)) */ +#if defined(CPTCFG_BACKPORT_OPTION_BT_SOCK_CREATE_NEEDS_KERN) static int hidp_output_raw_report(struct hid_device *hid, unsigned char *data, size_t count, unsigned char report_type) { -@@ -410,6 +411,16 @@ err: +@@ -410,6 +413,16 @@ err: mutex_unlock(&session->report_mutex); return ret; } @@ -25,7 +35,7 @@ static void hidp_idle_timeout(unsigned long arg) { -@@ -698,6 +709,87 @@ static void hidp_close(struct hid_device +@@ -698,6 +711,87 @@ static void hidp_close(struct hid_device { } @@ -113,7 +123,7 @@ static int hidp_parse(struct hid_device *hid) { struct hidp_session *session = hid->driver_data; -@@ -775,7 +867,9 @@ static int hidp_setup_hid(struct hidp_se +@@ -775,7 +869,9 @@ static int hidp_setup_hid(struct hidp_se hid->dev.parent = &session->conn->hcon->dev; hid->ll_driver = &hidp_hid_driver; @@ -123,7 +133,7 @@ hid->hid_output_raw_report = hidp_output_raw_report; /* True if device is blacklisted in drivers/hid/hid-core.c */ -@@ -793,6 +887,7 @@ fault: +@@ -793,6 +889,7 @@ fault: return err; } @@ -131,7 +141,7 @@ /* initialize session devices */ static int hidp_session_dev_init(struct hidp_session *session, -@@ -855,10 +950,17 @@ static int hidp_session_dev_add(struct h +@@ -855,10 +952,17 @@ static int hidp_session_dev_add(struct h /* remove HID/input devices from their bus systems */ static void hidp_session_dev_del(struct hidp_session *session) { -- 2.30.2