[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52F12A10.3020600@lwfinger.net>
Date: Tue, 04 Feb 2014 11:57:36 -0600
From: Larry Finger <Larry.Finger@...inger.net>
To: andrea.merello@...il.com, Dan Carpenter <dan.carpenter@...cle.com>
CC: Linus Torvalds <torvalds@...ux-foundation.org>,
Stefan Lippers-Hollmann <s.L-H@....de>,
Dave Jones <davej@...hat.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linux Wireless List <linux-wireless@...r.kernel.org>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Linux Driver Project <devel@...uxdriverproject.org>
Subject: Re: rtl8821ae.
Andrea,
After applying the latest patch, I get the following warning and errors when
building the USB driver rtl8187:
CC drivers/video/fbmon.o
drivers/net/wireless/rtl818x/rtl8187/dev.c: In function ‘rtl8187_set_anaparam’:
drivers/net/wireless/rtl818x/rtl8187/dev.c:595:3: warning: passing argument 2 of
‘rtl818x_iowrite8’ from incompatible pointer type [enabled by default]
rtl818x_iowrite8(priv, &priv->map->ANAPARAM3, anaparam3);
^
In file included from drivers/net/wireless/rtl818x/rtl8187/dev.c:31:0:
drivers/net/wireless/rtl818x/rtl8187/rtl8187.h:237:20: note: expected ‘u8 *’ but
argument is of type ‘__le16 *’
static inline void rtl818x_iowrite8(struct rtl8187_priv *priv, u8 *addr, u8 val)
^
drivers/net/wireless/rtl818x/rtl8187/dev.c: In function ‘rtl8187b_init_hw’:
drivers/net/wireless/rtl818x/rtl8187/dev.c:788:9: error:
‘RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT’ undeclared (first use in this function)
reg |= RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT;
^
drivers/net/wireless/rtl818x/rtl8187/dev.c:788:9: note: each undeclared
identifier is reported only once for each function it appears in
drivers/net/wireless/rtl818x/rtl8187/dev.c: In function ‘rtl8187_start’:
drivers/net/wireless/rtl818x/rtl8187/dev.c:946:11: error:
‘RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT’ undeclared (first use in this
function)
reg &= ~RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT;
^
drivers/net/wireless/rtl818x/rtl8187/dev.c:947:11: error:
‘RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT’ undeclared (first use in this function)
reg &= ~RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT;
^
drivers/net/wireless/rtl818x/rtl8187/dev.c:952:7: error:
‘RTL818X_TX_CONF_HW_SEQNUM’ undeclared (first use in this function)
RTL818X_TX_CONF_HW_SEQNUM |
^
drivers/net/wireless/rtl818x/rtl8187/dev.c:989:10: error:
‘RTL818X_CW_CONF_PERPACKET_CW_SHIFT’ undeclared (first use in this function)
reg &= ~RTL818X_CW_CONF_PERPACKET_CW_SHIFT;
^
drivers/net/wireless/rtl818x/rtl8187/dev.c:990:9: error:
‘RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT’ undeclared (first use in this function)
reg |= RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT;
The warning is fixed by
Index: wireless-testing/drivers/net/wireless/rtl818x/rtl8187/dev.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/rtl818x/rtl8187/dev.c
+++ wireless-testing/drivers/net/wireless/rtl818x/rtl8187/dev.c
@@ -593,7 +593,7 @@ static void rtl8187_set_anaparam(struct
rtl818x_iowrite32(priv, &priv->map->ANAPARAM, anaparam);
rtl818x_iowrite32(priv, &priv->map->ANAPARAM2, anaparam2);
if (priv->is_rtl8187b)
- rtl818x_iowrite8(priv, &priv->map->ANAPARAM3, anaparam3);
+ rtl818x_iowrite16(priv, &priv->map->ANAPARAM3, anaparam3);
reg &= ~RTL818X_CONFIG3_ANAPARAM_WRITE;
rtl818x_iowrite8(priv, &priv->map->CONFIG3, reg);
rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD,
For testing purposes, I have turned on the build for rtl8187.
Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists