All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 0/5] rtl8192su build fixes and warning cleanups
@ 2009-08-04 14:26 Jeff Mahoney
  2009-08-04 14:26 ` [patch 1/5] rtl8192su: compile fixes Jeff Mahoney
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jeff Mahoney @ 2009-08-04 14:26 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

 Hi Greg -

 Here are several patches to fix compilation and eliminate warnings for
 the rtl8192su driver.

 Please apply.

 Thanks.

 -Jeff
-- 
Jeff Mahoney
SUSE Labs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch 1/5] rtl8192su: compile fixes
  2009-08-04 14:26 [patch 0/5] rtl8192su build fixes and warning cleanups Jeff Mahoney
@ 2009-08-04 14:26 ` Jeff Mahoney
  2009-08-04 14:26 ` [patch 2/5] rtl8192su: fix up printk warnings Jeff Mahoney
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jeff Mahoney @ 2009-08-04 14:26 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

[-- Attachment #1: patches.rpmify/rtl8192su-kill-fp --]
[-- Type: text/plain, Size: 1169 bytes --]

 This patch removes -fhard-float and the software float helpers. In-kernel
 floating point is not allowed.

Acked-by: Jeff Mahoney <jeffm@suse.com>
---
 drivers/staging/rtl8192su/Makefile      |    1 -
 drivers/staging/rtl8192su/r8192U_core.c |   22 ++++++++--------------
 2 files changed, 8 insertions(+), 15 deletions(-)

--- a/drivers/staging/rtl8192su/Makefile
+++ b/drivers/staging/rtl8192su/Makefile
@@ -2,7 +2,6 @@ NIC_SELECT = RTL8192SU
 
 EXTRA_CFLAGS += -std=gnu89
 EXTRA_CFLAGS += -O2
-EXTRA_CFLAGS += -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y
 
 EXTRA_CFLAGS += -DJACKSON_NEW_RX
 EXTRA_CFLAGS += -DTHOMAS_BEACON -DTHOMAS_TURBO
--- a/drivers/staging/rtl8192su/r8192U_core.c
+++ b/drivers/staging/rtl8192su/r8192U_core.c
@@ -24,14 +24,6 @@
  * Jerry chuang <wlanfae@realtek.com>
  */
 
-#ifndef CONFIG_FORCE_HARD_FLOAT
-double __floatsidf (int i) { return i; }
-unsigned int __fixunsdfsi (double d) { return d; }
-double __adddf3(double a, double b) { return a+b; }
-double __addsf3(float a, float b) { return a+b; }
-double __subdf3(double a, double b) { return a-b; }
-double __extendsfdf2(float a) {return a;}
-#endif
 
 #undef LOOP_TEST
 #undef DUMP_RX



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch 2/5] rtl8192su: fix up printk warnings
  2009-08-04 14:26 [patch 0/5] rtl8192su build fixes and warning cleanups Jeff Mahoney
  2009-08-04 14:26 ` [patch 1/5] rtl8192su: compile fixes Jeff Mahoney
@ 2009-08-04 14:26 ` Jeff Mahoney
  2009-08-04 14:26 ` [patch 3/5] rtl8192su: fixup size comparison warning Jeff Mahoney
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jeff Mahoney @ 2009-08-04 14:26 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

[-- Attachment #1: patches.rpmify/rtl8192su-printfs --]
[-- Type: text/plain, Size: 2025 bytes --]

 This patch addresses printk warnings.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---

 drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c   |    2 +-
 drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c
+++ b/drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c
@@ -987,7 +987,7 @@ int ieee80211_wx_set_gen_ie(struct ieee8
 	{
 		if (len != ie[1]+2)
 		{
-			printk("len:%d, ie:%d\n", len, ie[1]);
+			printk("len: %Zd, ie:%d\n", len, ie[1]);
 			return -EINVAL;
 		}
 		buf = kmalloc(len, GFP_KERNEL);
--- a/drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c
+++ b/drivers/staging/rtl8192su/ieee80211/rtl819x_BAProc.c
@@ -382,7 +382,7 @@ int ieee80211_rx_ADDBAReq( struct ieee80
 
 	if (skb->len < sizeof( struct ieee80211_hdr_3addr) + 9)
 	{
-		IEEE80211_DEBUG(IEEE80211_DL_ERR, " Invalid skb len in BAREQ(%d / %d)\n", skb->len, 	(sizeof( struct ieee80211_hdr_3addr) + 9));
+		IEEE80211_DEBUG(IEEE80211_DL_ERR, " Invalid skb len in BAREQ(%d / %ld)\n", skb->len, 	(sizeof( struct ieee80211_hdr_3addr) + 9));
 		return -1;
 	}
 
@@ -483,7 +483,7 @@ int ieee80211_rx_ADDBARsp( struct ieee80
 
 	if (skb->len < sizeof( struct ieee80211_hdr_3addr) + 9)
 	{
-		IEEE80211_DEBUG(IEEE80211_DL_ERR, " Invalid skb len in BARSP(%d / %d)\n", skb->len, 	(sizeof( struct ieee80211_hdr_3addr) + 9));
+		IEEE80211_DEBUG(IEEE80211_DL_ERR, " Invalid skb len in BARSP(%d / %ld)\n", skb->len, 	(sizeof( struct ieee80211_hdr_3addr) + 9));
 		return -1;
 	}
 	rsp = ( struct ieee80211_hdr_3addr*)skb->data;
@@ -613,7 +613,7 @@ int ieee80211_rx_DELBA(struct ieee80211_
 
 	if (skb->len < sizeof( struct ieee80211_hdr_3addr) + 6)
 	{
-		IEEE80211_DEBUG(IEEE80211_DL_ERR, " Invalid skb len in DELBA(%d / %d)\n", skb->len, 	(sizeof( struct ieee80211_hdr_3addr) + 6));
+		IEEE80211_DEBUG(IEEE80211_DL_ERR, " Invalid skb len in DELBA(%d / %ld)\n", skb->len, 	(sizeof( struct ieee80211_hdr_3addr) + 6));
 		return -1;
 	}
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch 3/5] rtl8192su: fixup size comparison warning
  2009-08-04 14:26 [patch 0/5] rtl8192su build fixes and warning cleanups Jeff Mahoney
  2009-08-04 14:26 ` [patch 1/5] rtl8192su: compile fixes Jeff Mahoney
  2009-08-04 14:26 ` [patch 2/5] rtl8192su: fix up printk warnings Jeff Mahoney
@ 2009-08-04 14:26 ` Jeff Mahoney
  2009-08-04 14:26 ` [patch 4/5] rtl8192su: stop using skb->tail Jeff Mahoney
  2009-08-04 14:26 ` [patch 5/5] rtl8192su: add linux/vmalloc.h Jeff Mahoney
  4 siblings, 0 replies; 6+ messages in thread
From: Jeff Mahoney @ 2009-08-04 14:26 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

[-- Attachment #1: patches.rpmify/rtl8192su-size-warning --]
[-- Type: text/plain, Size: 701 bytes --]

 sizeof(val) returns type unsigned long. count is already unsigned long, so
 just use that. This fixes a compile warning.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---

 drivers/staging/rtl8192su/ieee80211/ieee80211_module.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c
+++ b/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c
@@ -304,7 +304,7 @@ static int store_debug_level(struct file
 			     unsigned long count, void *data)
 {
 	char buf[] = "0x00000000";
-	unsigned long len = min(sizeof(buf) - 1, (u32)count);
+	unsigned long len = min(sizeof(buf) - 1, count);
 	char *p = (char *)buf;
 	unsigned long val;
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch 4/5] rtl8192su: stop using skb->tail
  2009-08-04 14:26 [patch 0/5] rtl8192su build fixes and warning cleanups Jeff Mahoney
                   ` (2 preceding siblings ...)
  2009-08-04 14:26 ` [patch 3/5] rtl8192su: fixup size comparison warning Jeff Mahoney
@ 2009-08-04 14:26 ` Jeff Mahoney
  2009-08-04 14:26 ` [patch 5/5] rtl8192su: add linux/vmalloc.h Jeff Mahoney
  4 siblings, 0 replies; 6+ messages in thread
From: Jeff Mahoney @ 2009-08-04 14:26 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

[-- Attachment #1: patches.rpmify/rtl8192su-skb-fixes --]
[-- Type: text/plain, Size: 2646 bytes --]

 This patch replaces uses of skb->tail with skb_tail_pointer(skb).

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---

 drivers/staging/rtl8192su/r8192U_core.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

--- a/drivers/staging/rtl8192su/r8192U_core.c
+++ b/drivers/staging/rtl8192su/r8192U_core.c
@@ -1715,7 +1708,7 @@ static int rtl8192_rx_initiate(struct ne
                 }
 //		printk("nomal packet IN request!\n");
                 usb_fill_bulk_urb(entry, priv->udev,
-                                  usb_rcvbulkpipe(priv->udev, 3), skb->tail,
+                                  usb_rcvbulkpipe(priv->udev, 3), skb_tail_pointer(skb),
                                   RX_URB_SIZE, rtl8192_rx_isr, skb);
                 info = (struct rtl8192_rx_info *) skb->cb;
                 info->urb = entry;
@@ -1745,7 +1738,7 @@ static int rtl8192_rx_initiate(struct ne
                         break;
                 }
                 usb_fill_bulk_urb(entry, priv->udev,
-                                  usb_rcvbulkpipe(priv->udev, 9), skb->tail,
+                                  usb_rcvbulkpipe(priv->udev, 9), skb_tail_pointer(skb),
                                   RX_URB_SIZE, rtl8192_rx_isr, skb);
                 info = (struct rtl8192_rx_info *) skb->cb;
                 info->urb = entry;
@@ -2135,7 +2128,8 @@ static void rtl8192_rx_isr(struct urb *u
         }
 
 	usb_fill_bulk_urb(urb, priv->udev,
-			usb_rcvbulkpipe(priv->udev, out_pipe), skb->tail,
+			usb_rcvbulkpipe(priv->udev, out_pipe),
+			skb_tail_pointer(skb),
 			RX_URB_SIZE, rtl8192_rx_isr, skb);
 
         info = (struct rtl8192_rx_info *) skb->cb;
@@ -2143,7 +2137,7 @@ static void rtl8192_rx_isr(struct urb *u
         info->dev = dev;
 	info->out_pipe = out_pipe;
 
-        urb->transfer_buffer = skb->tail;
+        urb->transfer_buffer = skb_tail_pointer(skb);
         urb->context = skb;
         skb_queue_tail(&priv->rx_queue, skb);
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
@@ -2356,8 +2350,8 @@ struct sk_buff *DrvAggr_Aggregation(stru
 		/* Subframe drv Tx descriptor and firmware info setting */
 		skb = pSendList->tx_agg_frames[i];
 		tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
-		tx_agg_desc = (tx_desc_819x_usb_aggr_subframe *)agg_skb->tail;
-		tx_fwinfo = (tx_fwinfo_819x_usb *)(agg_skb->tail + sizeof(tx_desc_819x_usb_aggr_subframe));
+		tx_agg_desc = (tx_desc_819x_usb_aggr_subframe *)agg_skb_tail_pointer(skb);
+		tx_fwinfo = (tx_fwinfo_819x_usb *)(agg_skb_tail_pointer(skb) + sizeof(tx_desc_819x_usb_aggr_subframe));
 
 		memset(tx_fwinfo,0,sizeof(tx_fwinfo_819x_usb));
 		/* DWORD 0 */



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch 5/5] rtl8192su: add linux/vmalloc.h
  2009-08-04 14:26 [patch 0/5] rtl8192su build fixes and warning cleanups Jeff Mahoney
                   ` (3 preceding siblings ...)
  2009-08-04 14:26 ` [patch 4/5] rtl8192su: stop using skb->tail Jeff Mahoney
@ 2009-08-04 14:26 ` Jeff Mahoney
  4 siblings, 0 replies; 6+ messages in thread
From: Jeff Mahoney @ 2009-08-04 14:26 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

[-- Attachment #1: patches.rpmify/rtl8192su-vmalloc --]
[-- Type: text/plain, Size: 466 bytes --]

 Some arches don't provide vmalloc.h through the includes already included
 in rtl8192su. This patch adds it.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---

 drivers/staging/rtl8192su/r8192U_core.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/staging/rtl8192su/r8192U_core.c
+++ b/drivers/staging/rtl8192su/r8192U_core.c
@@ -24,6 +24,7 @@
  * Jerry chuang <wlanfae@realtek.com>
  */
 
+#include <linux/vmalloc.h>
 
 #undef LOOP_TEST
 #undef DUMP_RX



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-04 14:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 14:26 [patch 0/5] rtl8192su build fixes and warning cleanups Jeff Mahoney
2009-08-04 14:26 ` [patch 1/5] rtl8192su: compile fixes Jeff Mahoney
2009-08-04 14:26 ` [patch 2/5] rtl8192su: fix up printk warnings Jeff Mahoney
2009-08-04 14:26 ` [patch 3/5] rtl8192su: fixup size comparison warning Jeff Mahoney
2009-08-04 14:26 ` [patch 4/5] rtl8192su: stop using skb->tail Jeff Mahoney
2009-08-04 14:26 ` [patch 5/5] rtl8192su: add linux/vmalloc.h Jeff Mahoney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.