2.6.x misc updates
PATCH 1/1 2.6.x misc updates
Linus, please do a
bk pull bk://kernel.bkbits.net/jgarzik/misc-2.5
This will update the following files:
drivers/block/cciss.c | 2 ++ drivers/block/ps2esdi.c | 2 +- drivers/char/agp/amd64-agp.c | 6 +++--- drivers/ide/legacy/pdc4030.c | 12 +++--------- drivers/mca/mca-legacy.c | 2 +- drivers/mca/mca-proc.c | 11 ++++++++--- drivers/net/3c523.c | 2 +- drivers/net/3c527.c | 2 +- drivers/net/at1700.c | 2 +- drivers/net/eexpress.c | 1 - drivers/net/ibmlana.c | 2 +- drivers/net/ne2.c | 2 +- drivers/net/sk_mca.c | 2 +- drivers/net/tokenring/madgemc.c | 2 +- drivers/net/tokenring/smctr.c | 2 +- drivers/net/wireless/arlan-main.c | 2 ++ include/linux/mca-legacy.h | 2 ++ include/linux/mca.h | 4 ---- 18 files changed, 30 insertions(+), 30 deletions(-)
through these ChangeSets:
<[email protected]> (03/09/28 1.1381)
[BK] "bk ignore" aic7xxx auto-generated files
<[email protected]> (03/09/28 1.1380)
Misc warning fixes:
* block/cciss: eliminate "comparison always false" warning
* char/agp/amd64-agp: properly suffix 64-bit constants
* ide/legacy/pdc4030: fix incomplete conversion to new IDE module API
<[email protected]> (03/09/28 1.1379)
[wireless arlan] fix modular build
'probe' module parameter is only used when arlan is built as a module.
<[email protected]> (03/09/28 1.1378)
[MCA] don't include linux/mca-legacy.h from linux/mca.h.
As the functions and definitions in linux/mca-legacy.h are deprecated, require that users explicitly include linux/mca-legacy.h as needed.
Prior to this change, _all_ users of linux/mca.h (i.e. proper users) issued a warning at compile time, when the MCA legacy API was enabled. Now only actual users of the legacy API cause warnings, not all MCA drivers.
<[email protected]> (03/09/28 1.1377)
[MCA] convert mca-proc to use not-deprecated functions
<[email protected]> (03/09/28 1.1376)
[MCA] include linux/mca-legacy.h directly, to access deprecated MCA API
drivers/block/cciss.c +2 -0
@@ -636,9 +636,11 @@ {return -EINVAL ; } +#if 0 /* 'buf_size' member is 16-bits, and always smaller than kmalloc limit */ /* Check kmalloc limits */ if (iocommand.buf_size >128000 )return -EINVAL ; +#endif if (iocommand.buf_size >0 ) { buff =kmalloc (iocommand.buf_size,GFP_KERNEL );
drivers/block/ps2esdi.c +1 -1
@@ -39,7 +39,7 @@#include <linux/genhd.h> #include <linux/ps2esdi.h> #include <linux/blkdev.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/init.h> #include <linux/ioport.h> #include <linux/module.h>
drivers/char/agp/amd64-agp.c +3 -3
@@ -91,9 +91,9 @@for (i =0 , j = pg_start; i < mem->page_count; i++, j++) { tmp = agp_bridge->driver->mask_memory (mem->memory[i], mem->type); -BUG_ON (tmp &0xffffff0000000ffc ); - pte = (tmp &0x000000ff00000000 ) >>28 ; - pte |=(tmp &0x00000000fffff000 ); +BUG_ON (tmp &0xffffff0000000ffcULL ); + pte = (tmp &0x000000ff00000000ULL ) >>28 ; + pte |=(tmp &0x00000000fffff000ULL ); pte |=GPTE_VALID |GPTE_COHERENT ; agp_bridge->gatt_table[j] = pte;
drivers/ide/legacy/pdc4030.c +3 -9
@@ -304,22 +304,16 @@#ifndef MODULE if (enable_promise_support ==0 ) -return ; +return 0 ;#endif for (index =0 ; index <MAX_HWIFS ; index++) { hwif = &ide_hwifs[index]; -if (hwif->chipset == ide_unknown &&detect_pdc4030 (hwif)) { -#ifndef MODULE -setup_pdc4030 (hwif); -#else +if (hwif->chipset == ide_unknown &&detect_pdc4030 (hwif))return setup_pdc4030 (hwif); -#endif - } } -#ifdef MODULE +return 0 ; -#endif } static void __exit release_pdc4030(ide_hwif_t *hwif, ide_hwif_t *mate)
drivers/mca/mca-legacy.c +1 -1
@@ -28,7 +28,7 @@#include <linux/module.h> #include <linux/device.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <asm/io.h> /* NOTE: This structure is stack allocated */
drivers/mca/mca-proc.c +8 -3
@@ -120,12 +120,13 @@ len +=sprintf (buf+len,"Id: %02x%02x\n" , mca_dev->pos[1 ], mca_dev->pos[0 ]); len +=sprintf (buf+len,"Enabled: %s\nPOS: " , -mca_isenabled (slot) ?"Yes" :"No" ); +mca_device_status (mca_dev) ==MCA_ADAPTER_NORMAL ? +"Yes" :"No" );for (i=0 ; i<8 ; i++) { len +=sprintf (buf+len,"%02x " , mca_dev->pos[i]); } len +=sprintf (buf+len,"\nDriver Installed: %s" , -mca_is_adapter_used (slot) ?"Yes" :"No" ); +mca_device_claimed (mca_dev) ?"Yes" :"No" ); buf[len++] ='\n' ; buf[len] =0 ;
@@ -189,6 +190,7 @@/* Initialize /proc/mca entries for existing adapters */ for (i =0 ; i <MCA_NUMADAPTERS ; i++) { +enum MCA_AdapterStatus status; mca_dev =mca_find_device_by_slot (i);if (!mca_dev)continue ;
@@ -200,7 +202,10 @@else if (i ==MCA_INTEGSCSI )sprintf (mca_dev->procname,"scsi" );else if (i ==MCA_MOTHERBOARD )sprintf (mca_dev->procname,"planar" ); -if (!mca_isadapter (i))continue ; + status =mca_device_status (mca_dev); +if (status !=MCA_ADAPTER_NORMAL && + status !=MCA_ADAPTER_DISABLED ) +continue ; node =create_proc_read_entry (mca_dev->procname,0 , proc_mca, mca_read_proc, (void *)mca_dev);
drivers/net/3c523.c +1 -1
@@ -102,7 +102,7 @@#include <linux/slab.h> #include <linux/interrupt.h> #include <linux/delay.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/ethtool.h> #include <asm/uaccess.h>
drivers/net/3c527.c +1 -1
@@ -92,7 +92,7 @@#include <linux/types.h> #include <linux/fcntl.h> #include <linux/interrupt.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/ioport.h> #include <linux/in.h> #include <linux/skbuff.h>
drivers/net/at1700.c +1 -1
@@ -43,7 +43,7 @@#include <linux/errno.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/types.h>
drivers/net/eexpress.c +0 -1
@@ -113,7 +113,6 @@#include <linux/etherdevice.h> #include <linux/skbuff.h> #include <linux/slab.h> -#include <linux/mca.h> #include <linux/mca-legacy.h> #include <linux/spinlock.h>
drivers/net/ibmlana.c +1 -1
@@ -82,7 +82,7 @@#include <linux/interrupt.h> #include <linux/delay.h> #include <linux/time.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/module.h> #include <linux/netdevice.h> #include <linux/etherdevice.h>
drivers/net/ne2.c +1 -1
@@ -70,7 +70,7 @@#include <linux/string.h> #include <linux/errno.h> #include <linux/init.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/skbuff.h>
drivers/net/sk_mca.c +1 -1
@@ -89,7 +89,7 @@#include <linux/interrupt.h> #include <linux/delay.h> #include <linux/time.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/init.h> #include <linux/module.h> #include <linux/version.h>
drivers/net/tokenring/madgemc.c +1 -1
@@ -20,7 +20,7 @@static const char version[] ="madgemc.c: v0.91 23/01/2000 by Adam Fritzler\n" ;#include <linux/module.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/pci.h>
drivers/net/tokenring/smctr.c +1 -1
@@ -43,7 +43,7 @@#include <linux/errno.h> #include <linux/init.h> #include <linux/pci.h> -#include <linux/mca.h> +#include <linux/mca-legacy.h> #include <linux/delay.h> #include <linux/netdevice.h> #include <linux/etherdevice.h>
drivers/net/wireless/arlan-main.c +2 -0
@@ -1881,6 +1881,8 @@#ifdef MODULE +static int probe = probeUNKNOWN; +static int __init arlan_find_devices (void ) {int m;
include/linux/mca-legacy.h +2 -0
@@ -7,6 +7,8 @@#ifndef _LINUX_MCA_LEGACY_H#define _LINUX_MCA_LEGACY_H +#include <linux/mca.h> +#warning "MCA legacy - please move your driver to the new sysfs api"/* MCA_NOTFOUND is an error condition. The other two indicate
include/linux/mca.h +0 -4
@@ -136,10 +136,6 @@/* WARNING: only called by the boot time device setup */ extern int mca_register_device (int bus,struct mca_device *mca_dev); -#ifdef CONFIG_MCA_LEGACY -#include <linux/mca-legacy.h> -#endif -#ifdef CONFIG_MCA_PROC_FS extern void mca_do_proc_init (void );extern void mca_set_adapter_procfn (int slot,MCA_ProcFn ,void * dev);
Quoted 8 lines · Jeff Garzik
Linus, please do a
bk pull bk://kernel.bkbits.net/jgarzik/misc-2.5
This will update the following files:
* char/agp/amd64-agp: properly suffix 64-bit constants
Please don't touch this. It needs fixing in a different way for 32bit.
I'll dig out the specs and fix it up properly later.
Dave
Signature · 1 line
Dave Jones http://www.codemonkey.org.uk
Quoted 4 lines · Dave Jones
Quoted 3 lines · Jeff Garzik
Linus, please do a
Quoted 8 lines
Quoted 5 lines
bk pull bk://kernel.bkbits.net/jgarzik/misc-2.5
This will update the following files:
* char/agp/amd64-agp: properly suffix 64-bit constants
Please don't touch this. It needs fixing in a different way for 32bit.
I don't see how the patch could break anything. It's obviously correct, even if the overall code isn't great for IA32.
Jeff
Quoted 9 lines · Jeff Garzik
Quoted 6 lines
Quoted 4 lines
Linus, please do a
bk pull bk://kernel.bkbits.net/jgarzik/misc-2.5
This will update the following files:
* char/agp/amd64-agp: properly suffix 64-bit constantsPlease don't touch this. It needs fixing in a different way for 32bit.
I don't see how the patch could break anything. It's obviously correct, even if the overall code isn't great for IA32.
Actually looking at the spec, the PTEs don't change in 32bit or 64bit mode, so it should do the right thing. I take back my objection to your change. Go ahead and apply.
Dave
Signature · 1 line
Dave Jones http://www.codemonkey.org.uk