Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2012 22:30:08 +0200
From:      Bernhard Schmidt <bschmidt@freebsd.org>
To:        hopto <artem20041991@yandex.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support
Message-ID:  <201205112230.08633.bschmidt@freebsd.org>
In-Reply-To: <1336751823791-5703401.post@n5.nabble.com>
References:  <201205031853.53102.bschmidt@freebsd.org> <CAAgh0_Zk0bAmpROREH%2B1Dz1vVudEgj-N3zGMyvfWXVd0i3bFFA@mail.gmail.com> <1336751823791-5703401.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_QbXrPgU7xlAtFRa
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

On Friday 11 May 2012 17:57:03 hopto wrote:
> FreeBSD 9 amd64
> 
> cc1: warnings being treated as errors
> /usr/src/sys/modules/ral/../../dev/ral/rt2860.c: In function
> 'rt2860_attach':
> /usr/src/sys/modules/ral/../../dev/ral/rt2860.c:349: warning: assignment
> from incompatible pointer type
> *** Error code 1
> 
> Stop in /usr/src/sys/modules/ral.
> 
> what?

9.0? Try attached patch

Though, you are better of updating to stable/9, the patches should
apply/build cleanly there.

-- 
Bernhard

--Boundary-00=_QbXrPgU7xlAtFRa
Content-Type: text/x-patch;
  charset="UTF-8";
  name="1.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="1.diff"

Index: sys/dev/ral/rt2860.c
===================================================================
--- sys/dev/ral/rt2860.c	(revision 235233)
+++ sys/dev/ral/rt2860.c	(working copy)
@@ -76,7 +76,7 @@
 #endif
 
 static struct ieee80211vap *rt2860_vap_create(struct ieee80211com *,
-			    const char [IFNAMSIZ], int, enum ieee80211_opmode,
+			    const char [IFNAMSIZ], int, int,
 			    int, const uint8_t [IEEE80211_ADDR_LEN],
 			    const uint8_t [IEEE80211_ADDR_LEN]);
 static void	rt2860_vap_delete(struct ieee80211vap *);
@@ -428,7 +428,7 @@
 
 static struct ieee80211vap *
 rt2860_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit,
-    enum ieee80211_opmode opmode, int flags,
+    int opmode, int flags,
     const uint8_t bssid[IEEE80211_ADDR_LEN],
     const uint8_t mac[IEEE80211_ADDR_LEN])
 {

--Boundary-00=_QbXrPgU7xlAtFRa--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205112230.08633.bschmidt>