linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the staging tree
@ 2008-12-08  9:34 Stephen Rothwell
  2008-12-08 15:17 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2008-12-08  9:34 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-next, Wang Chen, David S. Miller

Hi Greg,

Today's linux-next merge of the staging tree got a conflicts in
drivers/staging/wlan-ng/p80211netdev.c and
drivers/staging/wlan-ng/p80211wext.c between commit
979123d5343b4fdcd4c682745b8a0be9b8fac248 ("staging-p80211: Kill directly
reference of netdev->priv") from the net tree and various commits from
the staging tree.

I fixed it up (see below) and can carry the fixes as necessary. (In the
case of the second file, the latter removed the code that the former
modified.)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc drivers/staging/wlan-ng/p80211netdev.c
index 2b705ea,0668471..0000000
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@@ -696,8 -617,8 +617,8 @@@ static int p80211knetdev_do_ioctl(netde
  {
  	int			result = 0;
  	p80211ioctl_req_t	*req = (p80211ioctl_req_t*)ifr;
 -	wlandevice_t		*wlandev = (wlandevice_t*)dev->priv;
 +	wlandevice_t		*wlandev = dev->ml_priv;
- 	UINT8			*msgbuf;
+ 	u8			*msgbuf;
  	DBFENTER;
  
  	WLAN_LOG_DEBUG(2, "rx'd ioctl, cmd=%d, len=%d\n", cmd, req->len);
@@@ -833,7 -738,7 +738,7 @@@ static int p80211knetdev_set_mac_addres
  	resultcode->data = 0;
  
  	/* now fire the request */
- 	result = p80211req_dorequest(dev->ml_priv, (UINT8 *)&dot11req);
 -	result = p80211req_dorequest(dev->priv, (u8*)&dot11req);
++	result = p80211req_dorequest(dev->ml_priv, (u8*)&dot11req);
  
  	/* If the request wasn't successful, report an error and don't
  	 * change the netdev address
@@@ -914,10 -819,8 +819,8 @@@ int wlan_setup(wlandevice_t *wlandev
  		WLAN_LOG_ERROR("Failed to alloc netdev.\n");
  		result = 1;
  	} else {
- 		memset( dev, 0, sizeof(netdevice_t));
- 		ether_setup(dev);
  		wlandev->netdev = dev;
 -		dev->priv = wlandev;
 +		dev->ml_priv = wlandev;
  		dev->hard_start_xmit =	p80211knetdev_hard_start_xmit;
  		dev->get_stats =	p80211knetdev_get_stats;
  #ifdef HAVE_PRIVATE_IOCTL
@@@ -1416,78 -1192,9 +1192,9 @@@ static int p80211_rx_typedrop( wlandevi
  	return drop;
  }
  
- #ifdef CONFIG_HOTPLUG
- /* Notify userspace when a netdevice event occurs,
-  * by running '/sbin/hotplug net' with certain
-  * environment variables set.
-  */
- int p80211_run_sbin_hotplug(wlandevice_t *wlandev, char *action)
- {
-         char *argv[3], *envp[7], ifname[12 + IFNAMSIZ], action_str[32];
- 	char nsdname[32], wlan_wext[32];
-         int i;
- 
- 	if (wlandev) {
- 		sprintf(ifname, "INTERFACE=%s", wlandev->name);
- 		sprintf(nsdname, "NSDNAME=%s", wlandev->nsdname);
- 	} else {
- 		sprintf(ifname, "INTERFACE=null");
- 		sprintf(nsdname, "NSDNAME=null");
- 	}
- 
- 	sprintf(wlan_wext, "WLAN_WEXT=%s", wlan_wext_write ? "y" : "");
-         sprintf(action_str, "ACTION=%s", action);
- 
-         i = 0;
-         argv[i++] = hotplug_path;
-         argv[i++] = "wlan";
-         argv[i] = NULL;
- 
-         i = 0;
-         /* minimal command environment */
-         envp [i++] = "HOME=/";
-         envp [i++] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin";
-         envp [i++] = ifname;
-         envp [i++] = action_str;
-         envp [i++] = nsdname;
-         envp [i++] = wlan_wext;
-         envp [i] = NULL;
- 
- #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,62))
-         return call_usermodehelper(argv [0], argv, envp);
- #else
-         return call_usermodehelper(argv [0], argv, envp, 0);
- #endif
- }
- 
- #endif
- 
- 
- void    p80211_suspend(wlandevice_t *wlandev)
- {
- 	DBFENTER;
- 
- #ifdef CONFIG_HOTPLUG
- 	p80211_run_sbin_hotplug(wlandev, WLAN_HOTPLUG_SUSPEND);
- #endif
- 
- 	DBFEXIT;
- }
- 
- void    p80211_resume(wlandevice_t *wlandev)
- {
- 	DBFENTER;
- 
- #ifdef CONFIG_HOTPLUG
- 	p80211_run_sbin_hotplug(wlandev, WLAN_HOTPLUG_RESUME);
- #endif
- 
- 	DBFEXIT;
- }
- 
  static void p80211knetdev_tx_timeout( netdevice_t *netdev)
  {
 -	wlandevice_t	*wlandev = (wlandevice_t*)netdev->priv;
 +	wlandevice_t	*wlandev = netdev->ml_priv;
  	DBFENTER;
  
  	if (wlandev->tx_timeout) {
diff --cc drivers/staging/wlan-ng/p80211wext.c
index b2c9ea2,44d43e3..0000000
--- a/drivers/staging/wlan-ng/p80211wext.c
+++ b/drivers/staging/wlan-ng/p80211wext.c

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

* Re: linux-next: manual merge of the staging tree
  2008-12-08  9:34 linux-next: manual merge of the staging tree Stephen Rothwell
@ 2008-12-08 15:17 ` Greg KH
  2008-12-08 20:35   ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2008-12-08 15:17 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, Wang Chen, David S. Miller

On Mon, Dec 08, 2008 at 08:34:03PM +1100, Stephen Rothwell wrote:
> Hi Greg,
> 
> Today's linux-next merge of the staging tree got a conflicts in
> drivers/staging/wlan-ng/p80211netdev.c and
> drivers/staging/wlan-ng/p80211wext.c between commit
> 979123d5343b4fdcd4c682745b8a0be9b8fac248 ("staging-p80211: Kill directly
> reference of netdev->priv") from the net tree and various commits from
> the staging tree.
> 
> I fixed it up (see below) and can carry the fixes as necessary. (In the
> case of the second file, the latter removed the code that the former
> modified.)

Dave, can you just drop the patch from your queue?  This should already
be fixed up in the -next tree to not use the field you are wanting to
remove, right?  So you shouldn't get any build errors from what I can
tell.

thanks,

greg k-h

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

* Re: linux-next: manual merge of the staging tree
  2008-12-08 15:17 ` Greg KH
@ 2008-12-08 20:35   ` David Miller
  2008-12-09  3:53     ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2008-12-08 20:35 UTC (permalink / raw)
  To: greg; +Cc: sfr, linux-next, wangchen

From: Greg KH <greg@kroah.com>
Date: Mon, 8 Dec 2008 07:17:50 -0800

> On Mon, Dec 08, 2008 at 08:34:03PM +1100, Stephen Rothwell wrote:
> > Hi Greg,
> > 
> > Today's linux-next merge of the staging tree got a conflicts in
> > drivers/staging/wlan-ng/p80211netdev.c and
> > drivers/staging/wlan-ng/p80211wext.c between commit
> > 979123d5343b4fdcd4c682745b8a0be9b8fac248 ("staging-p80211: Kill directly
> > reference of netdev->priv") from the net tree and various commits from
> > the staging tree.
> > 
> > I fixed it up (see below) and can carry the fixes as necessary. (In the
> > case of the second file, the latter removed the code that the former
> > modified.)
> 
> Dave, can you just drop the patch from your queue?  This should already
> be fixed up in the -next tree to not use the field you are wanting to
> remove, right?  So you shouldn't get any build errors from what I can
> tell.

I'd have to revert, which is ugly, because I tend to never
rebase my tree as too many people depend upon it.

Do you _really_ want me to do that?

Because I have to do allmodconfig test builds _too_, and the build
will fail for me if I do these reverts which really would suck.

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

* Re: linux-next: manual merge of the staging tree
  2008-12-08 20:35   ` David Miller
@ 2008-12-09  3:53     ` Greg KH
  2008-12-09  7:59       ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2008-12-09  3:53 UTC (permalink / raw)
  To: David Miller; +Cc: sfr, linux-next, wangchen

On Mon, Dec 08, 2008 at 12:35:57PM -0800, David Miller wrote:
> From: Greg KH <greg@kroah.com>
> Date: Mon, 8 Dec 2008 07:17:50 -0800
> 
> > On Mon, Dec 08, 2008 at 08:34:03PM +1100, Stephen Rothwell wrote:
> > > Hi Greg,
> > > 
> > > Today's linux-next merge of the staging tree got a conflicts in
> > > drivers/staging/wlan-ng/p80211netdev.c and
> > > drivers/staging/wlan-ng/p80211wext.c between commit
> > > 979123d5343b4fdcd4c682745b8a0be9b8fac248 ("staging-p80211: Kill directly
> > > reference of netdev->priv") from the net tree and various commits from
> > > the staging tree.
> > > 
> > > I fixed it up (see below) and can carry the fixes as necessary. (In the
> > > case of the second file, the latter removed the code that the former
> > > modified.)
> > 
> > Dave, can you just drop the patch from your queue?  This should already
> > be fixed up in the -next tree to not use the field you are wanting to
> > remove, right?  So you shouldn't get any build errors from what I can
> > tell.
> 
> I'd have to revert, which is ugly, because I tend to never
> rebase my tree as too many people depend upon it.
> 
> Do you _really_ want me to do that?

Ick, no, that's ok.

You should use quilt, make it much easier to revert :)

> Because I have to do allmodconfig test builds _too_, and the build
> will fail for me if I do these reverts which really would suck.

Ok, that's fine, as long as stephen can keep this patch in his tree,
I'll apply it to mine when you merge with Linus, as the staging tree
will probably be one of the last things before the next -rc1 window
closes.

thanks,

greg k-h

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

* Re: linux-next: manual merge of the staging tree
  2008-12-09  3:53     ` Greg KH
@ 2008-12-09  7:59       ` David Miller
  2008-12-09 15:40         ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2008-12-09  7:59 UTC (permalink / raw)
  To: greg; +Cc: sfr, linux-next, wangchen

From: Greg KH <greg@kroah.com>
Date: Mon, 8 Dec 2008 19:53:18 -0800

> On Mon, Dec 08, 2008 at 12:35:57PM -0800, David Miller wrote:
> > Because I have to do allmodconfig test builds _too_, and the build
> > will fail for me if I do these reverts which really would suck.
> 
> Ok, that's fine, as long as stephen can keep this patch in his tree,
> I'll apply it to mine when you merge with Linus, as the staging tree
> will probably be one of the last things before the next -rc1 window
> closes.

BTW, there is something else we can do.

I can pull staging net driver changes into net-next-2.6

We can either do it as a one-time thing to alleviate this
merge hassle, or we can try and make it a more ongoing
merge mechanism.

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

* Re: linux-next: manual merge of the staging tree
  2008-12-09  7:59       ` David Miller
@ 2008-12-09 15:40         ` Greg KH
  2008-12-09 21:42           ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2008-12-09 15:40 UTC (permalink / raw)
  To: David Miller; +Cc: sfr, linux-next, wangchen

On Mon, Dec 08, 2008 at 11:59:14PM -0800, David Miller wrote:
> From: Greg KH <greg@kroah.com>
> Date: Mon, 8 Dec 2008 19:53:18 -0800
> 
> > On Mon, Dec 08, 2008 at 12:35:57PM -0800, David Miller wrote:
> > > Because I have to do allmodconfig test builds _too_, and the build
> > > will fail for me if I do these reverts which really would suck.
> > 
> > Ok, that's fine, as long as stephen can keep this patch in his tree,
> > I'll apply it to mine when you merge with Linus, as the staging tree
> > will probably be one of the last things before the next -rc1 window
> > closes.
> 
> BTW, there is something else we can do.
> 
> I can pull staging net driver changes into net-next-2.6
> 
> We can either do it as a one-time thing to alleviate this
> merge hassle, or we can try and make it a more ongoing
> merge mechanism.

I doubt you really want to do this, as there are some pretty big
wireless driver additions in the staging tree right now, some under very
heavy development.

I have no problem with this kind of merge issues, I'll fix it up on my
end, don't worry about it.

thanks,

greg k-h

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

* Re: linux-next: manual merge of the staging tree
  2008-12-09 15:40         ` Greg KH
@ 2008-12-09 21:42           ` David Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2008-12-09 21:42 UTC (permalink / raw)
  To: greg; +Cc: sfr, linux-next, wangchen

From: Greg KH <greg@kroah.com>
Date: Tue, 9 Dec 2008 07:40:53 -0800

> On Mon, Dec 08, 2008 at 11:59:14PM -0800, David Miller wrote:
> > BTW, there is something else we can do.
> > 
> > I can pull staging net driver changes into net-next-2.6
> > 
> > We can either do it as a one-time thing to alleviate this
> > merge hassle, or we can try and make it a more ongoing
> > merge mechanism.
> 
> I doubt you really want to do this, as there are some pretty big
> wireless driver additions in the staging tree right now, some under very
> heavy development.
> 
> I have no problem with this kind of merge issues, I'll fix it up on my
> end, don't worry about it.

Ok, I just thought I'd offer :-)

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

end of thread, other threads:[~2008-12-09 21:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08  9:34 linux-next: manual merge of the staging tree Stephen Rothwell
2008-12-08 15:17 ` Greg KH
2008-12-08 20:35   ` David Miller
2008-12-09  3:53     ` Greg KH
2008-12-09  7:59       ` David Miller
2008-12-09 15:40         ` Greg KH
2008-12-09 21:42           ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).