linux-next: manual merge of the staging tree
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.)
Signature · 125 lines
Cheers, Stephen Rothwell [email protected] 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
Quoted 9 lines · Stephen Rothwell
Hi Greg,
Today's linux-next merge of the staging tree got a conflicts in
drivers/staging/wlan-ng/p80211netdev.canddrivers/staging/wlan-ng/p80211wext.cbetween commit979123d5343b4fdcd4c682745b8a0be9b8fac248("staging-p80211: Kill directly reference ofnetdev->priv") from the net tree and various commits from the staging tree.
Quoted 3 lines
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
From: Greg KH <[email protected]>
Date: Mon, 8 Dec 2008 07:17:50 -0800
Quoted 10 lines · Stephen Rothwell
Quoted 9 lines
Hi Greg,
Today's linux-next merge of the staging tree got a conflicts in
drivers/staging/wlan-ng/p80211netdev.canddrivers/staging/wlan-ng/p80211wext.cbetween commit979123d5343b4fdcd4c682745b8a0be9b8fac248("staging-p80211: Kill directly reference ofnetdev->priv") from the net tree and various commits from the staging tree.
Quoted 8 lines
Quoted 3 lines
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.
Quoted 22 lines · David Miller
From: Greg KH <[email protected]>
Date: Mon, 8 Dec 2008 07:17:50 -0800Quoted 10 lines · Stephen Rothwell
Quoted 9 lines
Hi Greg,
Today's linux-next merge of the staging tree got a conflicts in
drivers/staging/wlan-ng/p80211netdev.canddrivers/staging/wlan-ng/p80211wext.cbetween commit979123d5343b4fdcd4c682745b8a0be9b8fac248("staging-p80211: Kill directly reference ofnetdev->priv") from the net tree and various commits from the staging tree.Quoted 8 lines
Quoted 3 lines
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.
Quoted 4 lines
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 :)
Quoted 2 lines
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
From: Greg KH <[email protected]>
Date: Mon, 8 Dec 2008 19:53:18 -0800
Quoted 8 lines · David Miller
Quoted 2 lines
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.
Quoted 12 lines · David Miller
From: Greg KH <[email protected]>
Date: Mon, 8 Dec 2008 19:53:18 -0800Quoted 8 lines · David Miller
Quoted 2 lines
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.
Quoted 7 lines
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
From: Greg KH <[email protected]>
Date: Tue, 9 Dec 2008 07:40:53 -0800
Quoted 9 lines · David Miller
Quoted 7 lines
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.
Quoted 6 lines
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 :-)