Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c834cb05
Commit
c834cb05
authored
Oct 06, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc
parents
ec604eee
eff95566
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
46 additions
and
131 deletions
+46
-131
drivers/char/rocket.c
drivers/char/rocket.c
+1
-1
drivers/net/aironet4500_card.c
drivers/net/aironet4500_card.c
+13
-32
drivers/net/hp100.c
drivers/net/hp100.c
+2
-2
drivers/net/tulip/de4x5.c
drivers/net/tulip/de4x5.c
+2
-2
drivers/net/wan/lmc/lmc_main.c
drivers/net/wan/lmc/lmc_main.c
+2
-16
drivers/pci/compat.c
drivers/pci/compat.c
+0
-42
drivers/pci/probe.c
drivers/pci/probe.c
+2
-4
drivers/pci/syscall.c
drivers/pci/syscall.c
+1
-1
drivers/sbus/sbus.c
drivers/sbus/sbus.c
+1
-1
drivers/scsi/53c7,8xx.c
drivers/scsi/53c7,8xx.c
+5
-8
drivers/scsi/inia100.c
drivers/scsi/inia100.c
+1
-1
drivers/usb/storage/transport.c
drivers/usb/storage/transport.c
+1
-1
fs/nfs/nfs2xdr.c
fs/nfs/nfs2xdr.c
+1
-1
fs/nfs/nfs3xdr.c
fs/nfs/nfs3xdr.c
+1
-1
include/linux/pci.h
include/linux/pci.h
+10
-17
kernel/timer.c
kernel/timer.c
+3
-1
No files found.
drivers/char/rocket.c
View file @
c834cb05
...
@@ -1993,7 +1993,7 @@ int __init rp_init(void)
...
@@ -1993,7 +1993,7 @@ int __init rp_init(void)
isa_boards_found
++
;
isa_boards_found
++
;
}
}
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
if
(
pci
bios
_present
())
{
if
(
pci_present
())
{
if
(
isa_boards_found
<
NUM_BOARDS
)
if
(
isa_boards_found
<
NUM_BOARDS
)
pci_boards_found
=
init_PCI
(
isa_boards_found
);
pci_boards_found
=
init_PCI
(
isa_boards_found
);
}
else
{
}
else
{
...
...
drivers/net/aironet4500_card.c
View file @
c834cb05
...
@@ -70,9 +70,6 @@ MODULE_DEVICE_TABLE(pci, aironet4500_card_pci_tbl);
...
@@ -70,9 +70,6 @@ MODULE_DEVICE_TABLE(pci, aironet4500_card_pci_tbl);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
static
int
reverse_probe
;
static
int
awc_pci_init
(
struct
net_device
*
dev
,
struct
pci_dev
*
pdev
,
static
int
awc_pci_init
(
struct
net_device
*
dev
,
struct
pci_dev
*
pdev
,
int
ioaddr
,
int
cis_addr
,
int
mem_addr
,
u8
pci_irq_line
)
;
int
ioaddr
,
int
cis_addr
,
int
mem_addr
,
u8
pci_irq_line
)
;
...
@@ -80,38 +77,29 @@ static int awc_pci_init(struct net_device * dev, struct pci_dev *pdev,
...
@@ -80,38 +77,29 @@ static int awc_pci_init(struct net_device * dev, struct pci_dev *pdev,
int
awc4500_pci_probe
(
struct
net_device
*
dev
)
int
awc4500_pci_probe
(
struct
net_device
*
dev
)
{
{
int
cards_found
=
0
;
int
cards_found
=
0
;
static
int
pci_index
;
/* Static, for multiple probe calls. */
u8
pci_irq_line
=
0
;
u8
pci_irq_line
=
0
;
// int p;
// int p;
struct
pci_dev
*
pdev
=
NULL
;
unsigned
char
awc_pci_dev
,
awc_pci_bus
;
if
(
!
pci_present
())
if
(
!
pci_present
())
return
-
1
;
return
-
1
;
for
(;
pci_index
<
0xff
;
pci_index
++
)
{
while
((
pdev
=
pci_find_class
(
PCI_CLASS_NETWORK_OTHER
<<
8
,
pdev
))
)
{
u16
vendor
,
device
,
pci_command
,
new_command
;
u16
pci_command
,
new_command
;
u32
pci_memaddr
;
u32
pci_memaddr
;
u32
pci_ioaddr
;
u32
pci_ioaddr
;
u32
pci_cisaddr
;
u32
pci_cisaddr
;
struct
pci_dev
*
pdev
;
if
(
pdev
->
vendor
!=
PCI_VENDOR_ID_AIRONET
)
if
(
pcibios_find_class
(
PCI_CLASS_NETWORK_OTHER
<<
8
,
continue
;
reverse_probe
?
0xfe
-
pci_index
:
pci_index
,
if
((
pdev
->
device
!=
PCI_DEVICE_AIRONET_4800_1
)
&&
&
awc_pci_bus
,
&
awc_pci_dev
)
!=
PCIBIOS_SUCCESSFUL
){
(
pdev
->
device
!=
PCI_DEVICE_AIRONET_4800
)
&&
if
(
reverse_probe
){
(
pdev
->
device
!=
PCI_DEVICE_AIRONET_4500
))
continue
;
}
else
{
break
;
}
}
pdev
=
pci_find_slot
(
awc_pci_bus
,
awc_pci_dev
);
if
(
!
pdev
)
continue
;
continue
;
if
(
pci_enable_device
(
pdev
))
if
(
pci_enable_device
(
pdev
))
continue
;
continue
;
vendor
=
pdev
->
vendor
;
device
=
pdev
->
device
;
pci_irq_line
=
pdev
->
irq
;
pci_irq_line
=
pdev
->
irq
;
pci_memaddr
=
pci_resource_start
(
pdev
,
0
);
pci_memaddr
=
pci_resource_start
(
pdev
,
0
);
pci_cisaddr
=
pci_resource_start
(
pdev
,
1
);
pci_cisaddr
=
pci_resource_start
(
pdev
,
1
);
...
@@ -120,13 +108,6 @@ int awc4500_pci_probe(struct net_device *dev)
...
@@ -120,13 +108,6 @@ int awc4500_pci_probe(struct net_device *dev)
// printk("\n pci capabilities %x and ptr %x \n",pci_caps,pci_caps_ptr);
// printk("\n pci capabilities %x and ptr %x \n",pci_caps,pci_caps_ptr);
/* Remove I/O space marker in bit 0. */
/* Remove I/O space marker in bit 0. */
if
(
vendor
!=
PCI_VENDOR_ID_AIRONET
)
continue
;
if
(
device
!=
PCI_DEVICE_AIRONET_4800_1
&&
device
!=
PCI_DEVICE_AIRONET_4800
&&
device
!=
PCI_DEVICE_AIRONET_4500
)
continue
;
// if (check_region(pci_ioaddr, AIRONET4X00_IO_SIZE) ||
// if (check_region(pci_ioaddr, AIRONET4X00_IO_SIZE) ||
// check_region(pci_cisaddr, AIRONET4X00_CIS_SIZE) ||
// check_region(pci_cisaddr, AIRONET4X00_CIS_SIZE) ||
// check_region(pci_memaddr, AIRONET4X00_MEM_SIZE)) {
// check_region(pci_memaddr, AIRONET4X00_MEM_SIZE)) {
...
@@ -151,7 +132,7 @@ int awc4500_pci_probe(struct net_device *dev)
...
@@ -151,7 +132,7 @@ int awc4500_pci_probe(struct net_device *dev)
udelay(1000);
udelay(1000);
*/
*/
if
(
device
==
PCI_DEVICE_AIRONET_4800
)
if
(
pdev
->
device
==
PCI_DEVICE_AIRONET_4800
)
pci_write_config_dword
(
pdev
,
0x40
,
0x40000000
);
pci_write_config_dword
(
pdev
,
0x40
,
0x40000000
);
if
(
awc_pci_init
(
dev
,
pdev
,
pci_ioaddr
,
pci_cisaddr
,
pci_memaddr
,
pci_irq_line
)){
if
(
awc_pci_init
(
dev
,
pdev
,
pci_ioaddr
,
pci_cisaddr
,
pci_memaddr
,
pci_irq_line
)){
...
...
drivers/net/hp100.c
View file @
c834cb05
...
@@ -412,7 +412,7 @@ int __init hp100_probe(struct net_device *dev)
...
@@ -412,7 +412,7 @@ int __init hp100_probe(struct net_device *dev)
/* First: scan PCI bus(es) */
/* First: scan PCI bus(es) */
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
if
(
pci
bios
_present
())
{
if
(
pci_present
())
{
int
pci_index
;
int
pci_index
;
struct
pci_dev
*
pci_dev
=
NULL
;
struct
pci_dev
*
pci_dev
=
NULL
;
int
pci_id_index
;
int
pci_id_index
;
...
@@ -2960,7 +2960,7 @@ static int __init hp100_module_init(void)
...
@@ -2960,7 +2960,7 @@ static int __init hp100_module_init(void)
{
{
int
i
,
cards
;
int
i
,
cards
;
if
(
hp100_port
==
0
&&
!
EISA_bus
&&
!
pci
bios
_present
())
if
(
hp100_port
==
0
&&
!
EISA_bus
&&
!
pci_present
())
printk
(
"hp100: You should not use auto-probing with insmod!
\n
"
);
printk
(
"hp100: You should not use auto-probing with insmod!
\n
"
);
/* Loop on all possible base addresses */
/* Loop on all possible base addresses */
...
...
drivers/net/tulip/de4x5.c
View file @
c834cb05
...
@@ -2190,7 +2190,7 @@ pci_probe(struct net_device *dev, u_long ioaddr)
...
@@ -2190,7 +2190,7 @@ pci_probe(struct net_device *dev, u_long ioaddr)
if
(
lastPCI
==
NO_MORE_PCI
)
return
;
if
(
lastPCI
==
NO_MORE_PCI
)
return
;
if
(
!
pci
bios
_present
())
{
if
(
!
pci_present
())
{
lastPCI
=
NO_MORE_PCI
;
lastPCI
=
NO_MORE_PCI
;
return
;
/* No PCI bus in this machine! */
return
;
/* No PCI bus in this machine! */
}
}
...
@@ -5872,7 +5872,7 @@ count_adapters(void)
...
@@ -5872,7 +5872,7 @@ count_adapters(void)
if
(
EISA_signature
(
name
,
EISA_ID
))
j
++
;
if
(
EISA_signature
(
name
,
EISA_ID
))
j
++
;
}
}
#endif
#endif
if
(
!
pci
bios
_present
())
return
j
;
if
(
!
pci_present
())
return
j
;
for
(
i
=
0
;
(
pdev
=
pci_find_class
(
class
,
pdev
))
!=
NULL
;
i
++
)
{
for
(
i
=
0
;
(
pdev
=
pci_find_class
(
class
,
pdev
))
!=
NULL
;
i
++
)
{
vendor
=
pdev
->
vendor
;
vendor
=
pdev
->
vendor
;
...
...
drivers/net/wan/lmc/lmc_main.c
View file @
c834cb05
...
@@ -1045,8 +1045,8 @@ int lmc_probe (struct net_device *dev) /*fold00*/
...
@@ -1045,8 +1045,8 @@ int lmc_probe (struct net_device *dev) /*fold00*/
unsigned
int
pci_irq_line
;
unsigned
int
pci_irq_line
;
u16
vendor
,
subvendor
,
device
,
subdevice
;
u16
vendor
,
subvendor
,
device
,
subdevice
;
u32
foundaddr
=
0
;
u32
foundaddr
=
0
;
unsigned
char
pci_bus
,
pci_device_fn
;
u8
intcf
=
0
;
u8
intcf
=
0
;
struct
pci_dev
*
pdev
=
NULL
;
/* The card is only available on PCI, so if we don't have a
/* The card is only available on PCI, so if we don't have a
* PCI bus, we are in trouble.
* PCI bus, we are in trouble.
...
@@ -1057,21 +1057,7 @@ int lmc_probe (struct net_device *dev) /*fold00*/
...
@@ -1057,21 +1057,7 @@ int lmc_probe (struct net_device *dev) /*fold00*/
return
-
1
;
return
-
1
;
}
}
/* Loop basically until we don't find anymore. */
/* Loop basically until we don't find anymore. */
while
(
pci_index
<
0xff
){
while
((
pdev
=
pci_find_class
(
PCI_CLASS_NETWORK_ETHERNET
<<
8
,
pdev
)))
{
struct
pci_dev
*
pdev
;
/* The tulip is considered an ethernet class of card... */
if
(
pcibios_find_class
(
PCI_CLASS_NETWORK_ETHERNET
<<
8
,
pci_index
,
&
pci_bus
,
&
pci_device_fn
)
!=
PCIBIOS_SUCCESSFUL
)
{
/* No card found on this pass */
break
;
}
/* Read the info we need to determine if this is
* our card or not
*/
pdev
=
pci_find_slot
(
pci_bus
,
pci_device_fn
);
if
(
!
pdev
)
break
;
if
(
pci_enable_device
(
pdev
))
if
(
pci_enable_device
(
pdev
))
break
;
break
;
...
...
drivers/pci/compat.c
View file @
c834cb05
...
@@ -13,44 +13,6 @@
...
@@ -13,44 +13,6 @@
/* Obsolete functions, these will be going away... */
/* Obsolete functions, these will be going away... */
int
pcibios_present
(
void
)
{
return
!
list_empty
(
&
pci_devices
);
}
int
pcibios_find_class
(
unsigned
int
class
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
devfn
)
{
const
struct
pci_dev
*
dev
=
NULL
;
int
cnt
=
0
;
while
((
dev
=
pci_find_class
(
class
,
dev
)))
if
(
index
==
cnt
++
)
{
*
bus
=
dev
->
bus
->
number
;
*
devfn
=
dev
->
devfn
;
return
PCIBIOS_SUCCESSFUL
;
}
return
PCIBIOS_DEVICE_NOT_FOUND
;
}
int
pcibios_find_device
(
unsigned
short
vendor
,
unsigned
short
device
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
devfn
)
{
const
struct
pci_dev
*
dev
=
NULL
;
int
cnt
=
0
;
while
((
dev
=
pci_find_device
(
vendor
,
device
,
dev
)))
if
(
index
==
cnt
++
)
{
*
bus
=
dev
->
bus
->
number
;
*
devfn
=
dev
->
devfn
;
return
PCIBIOS_SUCCESSFUL
;
}
return
PCIBIOS_DEVICE_NOT_FOUND
;
}
#define PCI_OP(rw,size,type) \
#define PCI_OP(rw,size,type) \
int pcibios_##rw##_config_##size (unsigned char bus, unsigned char dev_fn, \
int pcibios_##rw##_config_##size (unsigned char bus, unsigned char dev_fn, \
unsigned char where, unsigned type val) \
unsigned char where, unsigned type val) \
...
@@ -67,13 +29,9 @@ PCI_OP(write, byte, char)
...
@@ -67,13 +29,9 @@ PCI_OP(write, byte, char)
PCI_OP
(
write
,
word
,
short
)
PCI_OP
(
write
,
word
,
short
)
PCI_OP
(
write
,
dword
,
int
)
PCI_OP
(
write
,
dword
,
int
)
EXPORT_SYMBOL
(
pcibios_present
);
EXPORT_SYMBOL
(
pcibios_read_config_byte
);
EXPORT_SYMBOL
(
pcibios_read_config_byte
);
EXPORT_SYMBOL
(
pcibios_read_config_word
);
EXPORT_SYMBOL
(
pcibios_read_config_word
);
EXPORT_SYMBOL
(
pcibios_read_config_dword
);
EXPORT_SYMBOL
(
pcibios_read_config_dword
);
EXPORT_SYMBOL
(
pcibios_write_config_byte
);
EXPORT_SYMBOL
(
pcibios_write_config_byte
);
EXPORT_SYMBOL
(
pcibios_write_config_word
);
EXPORT_SYMBOL
(
pcibios_write_config_word
);
EXPORT_SYMBOL
(
pcibios_write_config_dword
);
EXPORT_SYMBOL
(
pcibios_write_config_dword
);
EXPORT_SYMBOL
(
pcibios_find_class
);
EXPORT_SYMBOL
(
pcibios_find_device
);
drivers/pci/probe.c
View file @
c834cb05
...
@@ -46,7 +46,7 @@ static u32 pci_size(u32 base, unsigned long mask)
...
@@ -46,7 +46,7 @@ static u32 pci_size(u32 base, unsigned long mask)
static
void
pci_read_bases
(
struct
pci_dev
*
dev
,
unsigned
int
howmany
,
int
rom
)
static
void
pci_read_bases
(
struct
pci_dev
*
dev
,
unsigned
int
howmany
,
int
rom
)
{
{
unsigned
int
pos
,
reg
,
next
;
unsigned
int
pos
,
reg
,
next
;
u32
l
,
l0
,
sz
;
u32
l
,
sz
;
struct
resource
*
res
;
struct
resource
*
res
;
for
(
pos
=
0
;
pos
<
howmany
;
pos
=
next
)
{
for
(
pos
=
0
;
pos
<
howmany
;
pos
=
next
)
{
...
@@ -55,12 +55,10 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom)
...
@@ -55,12 +55,10 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom)
res
->
name
=
dev
->
name
;
res
->
name
=
dev
->
name
;
reg
=
PCI_BASE_ADDRESS_0
+
(
pos
<<
2
);
reg
=
PCI_BASE_ADDRESS_0
+
(
pos
<<
2
);
pci_read_config_dword
(
dev
,
reg
,
&
l
);
pci_read_config_dword
(
dev
,
reg
,
&
l
);
pci_write_config_dword
(
dev
,
reg
,
0
);
pci_read_config_dword
(
dev
,
reg
,
&
l0
);
pci_write_config_dword
(
dev
,
reg
,
~
0
);
pci_write_config_dword
(
dev
,
reg
,
~
0
);
pci_read_config_dword
(
dev
,
reg
,
&
sz
);
pci_read_config_dword
(
dev
,
reg
,
&
sz
);
pci_write_config_dword
(
dev
,
reg
,
l
);
pci_write_config_dword
(
dev
,
reg
,
l
);
if
(
!
sz
||
sz
==
0xffffffff
||
sz
==
l0
)
if
(
!
sz
||
sz
==
0xffffffff
)
continue
;
continue
;
if
(
l
==
0xffffffff
)
if
(
l
==
0xffffffff
)
l
=
0
;
l
=
0
;
...
...
drivers/pci/syscall.c
View file @
c834cb05
...
@@ -98,7 +98,7 @@ sys_pciconfig_write(unsigned long bus, unsigned long dfn,
...
@@ -98,7 +98,7 @@ sys_pciconfig_write(unsigned long bus, unsigned long dfn,
if
(
!
capable
(
CAP_SYS_ADMIN
))
if
(
!
capable
(
CAP_SYS_ADMIN
))
return
-
EPERM
;
return
-
EPERM
;
if
(
!
pci
bios
_present
())
if
(
!
pci_present
())
return
-
ENOSYS
;
return
-
ENOSYS
;
dev
=
pci_find_slot
(
bus
,
dfn
);
dev
=
pci_find_slot
(
bus
,
dfn
);
...
...
drivers/sbus/sbus.c
View file @
c834cb05
...
@@ -312,7 +312,7 @@ static int __init sbus_init(void)
...
@@ -312,7 +312,7 @@ static int __init sbus_init(void)
nd
=
prom_searchsiblings
(
topnd
,
"sbus"
);
nd
=
prom_searchsiblings
(
topnd
,
"sbus"
);
if
(
nd
==
0
)
{
if
(
nd
==
0
)
{
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
if
(
!
pci
bios_present
())
{
if
(
!
pci
_present
())
{
prom_printf
(
"Neither SBUS nor PCI found.
\n
"
);
prom_printf
(
"Neither SBUS nor PCI found.
\n
"
);
prom_halt
();
prom_halt
();
}
else
{
}
else
{
...
...
drivers/scsi/53c7,8xx.c
View file @
c834cb05
...
@@ -1533,8 +1533,7 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
...
@@ -1533,8 +1533,7 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
int
i
;
int
i
;
int
current_override
;
int
current_override
;
int
count
;
/* Number of boards detected */
int
count
;
/* Number of boards detected */
unsigned
char
pci_bus
,
pci_device_fn
;
struct
pci_dev
*
pdev
=
NULL
;
static
short
pci_index
=
0
;
/* Device index to PCI BIOS calls */
tpnt
->
proc_name
=
"ncr53c7xx"
;
tpnt
->
proc_name
=
"ncr53c7xx"
;
...
@@ -1563,13 +1562,11 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
...
@@ -1563,13 +1562,11 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
if
(
pci_present
())
{
if
(
pci_present
())
{
for
(
i
=
0
;
i
<
NPCI_CHIP_IDS
;
++
i
)
for
(
i
=
0
;
i
<
NPCI_CHIP_IDS
;
++
i
)
for
(
pci_index
=
0
;
while
((
pdev
=
pci_find_device
(
PCI_VENDOR_ID_NCR
,
!
pcibios_find_device
(
PCI_VENDOR_ID_NCR
,
pci_chip_ids
[
i
].
pci_device_id
,
pci_chip_ids
[
i
].
pci_device_id
,
pci_index
,
&
pci_bus
,
pdev
)))
&
pci_device_fn
);
++
pci_index
)
if
(
!
ncr_pci_init
(
tpnt
,
BOARD_GENERIC
,
pci_chip_ids
[
i
].
chip
,
if
(
!
ncr_pci_init
(
tpnt
,
BOARD_GENERIC
,
pci_chip_ids
[
i
].
chip
,
p
ci_bus
,
pci_device_
fn
,
/* no options */
0
))
p
dev
->
bus
->
number
,
pdev
->
dev
fn
,
/* no options */
0
))
++
count
;
++
count
;
}
}
return
count
;
return
count
;
...
...
drivers/scsi/inia100.c
View file @
c834cb05
...
@@ -208,7 +208,7 @@ int orc_ReturnNumberOfAdapters(void)
...
@@ -208,7 +208,7 @@ int orc_ReturnNumberOfAdapters(void)
/*
/*
* PCI-bus probe.
* PCI-bus probe.
*/
*/
if
(
pci
bios
_present
())
{
if
(
pci_present
())
{
/*
/*
* Note: I removed the struct pci_device_list stuff since this
* Note: I removed the struct pci_device_list stuff since this
* driver only cares about one device ID. If that changes in
* driver only cares about one device ID. If that changes in
...
...
drivers/usb/storage/transport.c
View file @
c834cb05
...
@@ -350,7 +350,7 @@ unsigned int usb_stor_transfer_length(Scsi_Cmnd *srb)
...
@@ -350,7 +350,7 @@ unsigned int usb_stor_transfer_length(Scsi_Cmnd *srb)
*/
*/
if
(
len
!=
srb
->
request_bufflen
)
{
if
(
len
!=
srb
->
request_bufflen
)
{
printk
(
KERN_ERR
"USB len=%d, request_bufflen=%d
\n
"
,
len
,
srb
->
request_bufflen
);
printk
(
KERN_ERR
"USB len=%d, request_bufflen=%d
\n
"
,
len
,
srb
->
request_bufflen
);
printk
(
KERN_ERR
"Fix this -- future 2.5 kernels will not work if this is not fixed!
\n
"
);
dump_stack
(
);
}
}
return
len
;
return
len
;
...
...
fs/nfs/nfs2xdr.c
View file @
c834cb05
...
@@ -434,7 +434,7 @@ nfs_xdr_readdirres(struct rpc_rqst *req, u32 *p, void *dummy)
...
@@ -434,7 +434,7 @@ nfs_xdr_readdirres(struct rpc_rqst *req, u32 *p, void *dummy)
goto
short_pkt
;
goto
short_pkt
;
entry
=
p
;
entry
=
p
;
}
}
if
(
!
nr
&&
(
entry
[
0
]
!=
0
||
entry
[
1
]
!=
1
))
if
(
!
nr
&&
(
entry
[
0
]
!=
0
||
entry
[
1
]
==
0
))
goto
short_pkt
;
goto
short_pkt
;
out:
out:
kunmap
(
*
page
);
kunmap
(
*
page
);
...
...
fs/nfs/nfs3xdr.c
View file @
c834cb05
...
@@ -579,7 +579,7 @@ nfs3_xdr_readdirres(struct rpc_rqst *req, u32 *p, struct nfs3_readdirres *res)
...
@@ -579,7 +579,7 @@ nfs3_xdr_readdirres(struct rpc_rqst *req, u32 *p, struct nfs3_readdirres *res)
goto
short_pkt
;
goto
short_pkt
;
entry
=
p
;
entry
=
p
;
}
}
if
(
!
nr
&&
(
entry
[
0
]
!=
0
||
entry
[
1
]
!=
1
))
if
(
!
nr
&&
(
entry
[
0
]
!=
0
||
entry
[
1
]
==
0
))
goto
short_pkt
;
goto
short_pkt
;
out:
out:
kunmap
(
*
page
);
kunmap
(
*
page
);
...
...
include/linux/pci.h
View file @
c834cb05
...
@@ -322,15 +322,6 @@ enum pci_mmap_state {
...
@@ -322,15 +322,6 @@ enum pci_mmap_state {
#define PCI_ANY_ID (~0)
#define PCI_ANY_ID (~0)
#define pci_present pcibios_present
#define pci_for_each_dev_reverse(dev) \
for(dev = pci_dev_g(pci_devices.prev); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.prev))
#define pci_for_each_bus(bus) \
for(bus = pci_bus_b(pci_root_buses.next); bus != pci_bus_b(&pci_root_buses); bus = pci_bus_b(bus->node.next))
/*
/*
* The pci_dev structure is used to describe both PCI and ISAPnP devices.
* The pci_dev structure is used to describe both PCI and ISAPnP devices.
*/
*/
...
@@ -503,8 +494,17 @@ struct pci_driver {
...
@@ -503,8 +494,17 @@ struct pci_driver {
/* these external functions are only available when PCI support is enabled */
/* these external functions are only available when PCI support is enabled */
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
static
inline
int
pci_present
(
void
)
{
return
!
list_empty
(
&
pci_devices
);
}
#define pci_for_each_dev(dev) \
#define pci_for_each_dev(dev) \
for(dev = pci_dev_g(pci_devices.next); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.next))
for(dev = pci_dev_g(pci_devices.next); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.next))
#define pci_for_each_dev_reverse(dev) \
for(dev = pci_dev_g(pci_devices.prev); dev != pci_dev_g(&pci_devices); dev = pci_dev_g(dev->global_list.prev))
#define pci_for_each_bus(bus) \
for(bus = pci_bus_b(pci_root_buses.next); bus != pci_bus_b(&pci_root_buses); bus = pci_bus_b(bus->node.next))
void
pcibios_fixup_bus
(
struct
pci_bus
*
);
void
pcibios_fixup_bus
(
struct
pci_bus
*
);
int
pcibios_enable_device
(
struct
pci_dev
*
,
int
mask
);
int
pcibios_enable_device
(
struct
pci_dev
*
,
int
mask
);
...
@@ -520,7 +520,6 @@ void pcibios_fixup_pbus_ranges(struct pci_bus *, struct pbus_set_ranges_data *);
...
@@ -520,7 +520,6 @@ void pcibios_fixup_pbus_ranges(struct pci_bus *, struct pbus_set_ranges_data *);
/* Backward compatibility, don't use in new code! */
/* Backward compatibility, don't use in new code! */
int
pcibios_present
(
void
);
int
pcibios_read_config_byte
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
int
pcibios_read_config_byte
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
unsigned
char
where
,
unsigned
char
*
val
);
unsigned
char
where
,
unsigned
char
*
val
);
int
pcibios_read_config_word
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
int
pcibios_read_config_word
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
...
@@ -533,10 +532,6 @@ int pcibios_write_config_word (unsigned char bus, unsigned char dev_fn,
...
@@ -533,10 +532,6 @@ int pcibios_write_config_word (unsigned char bus, unsigned char dev_fn,
unsigned
char
where
,
unsigned
short
val
);
unsigned
char
where
,
unsigned
short
val
);
int
pcibios_write_config_dword
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
int
pcibios_write_config_dword
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
unsigned
char
where
,
unsigned
int
val
);
unsigned
char
where
,
unsigned
int
val
);
int
pcibios_find_class
(
unsigned
int
class_code
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
dev_fn
);
int
pcibios_find_device
(
unsigned
short
vendor
,
unsigned
short
dev_id
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
dev_fn
);
/* Generic PCI functions used internally */
/* Generic PCI functions used internally */
...
@@ -660,9 +655,7 @@ void pci_pool_free (struct pci_pool *pool, void *vaddr, dma_addr_t addr);
...
@@ -660,9 +655,7 @@ void pci_pool_free (struct pci_pool *pool, void *vaddr, dma_addr_t addr);
*/
*/
#ifndef CONFIG_PCI
#ifndef CONFIG_PCI
static
inline
int
pcibios_present
(
void
)
{
return
0
;
}
static
inline
int
pci_present
(
void
)
{
return
0
;
}
static
inline
int
pcibios_find_class
(
unsigned
int
class_code
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
dev_fn
)
{
return
PCIBIOS_DEVICE_NOT_FOUND
;
}
#define _PCI_NOP(o,s,t) \
#define _PCI_NOP(o,s,t) \
static inline int pcibios_##o##_config_##s (u8 bus, u8 dfn, u8 where, t val) \
static inline int pcibios_##o##_config_##s (u8 bus, u8 dfn, u8 where, t val) \
...
...
kernel/timer.c
View file @
c834cb05
...
@@ -94,9 +94,11 @@ static inline void internal_add_timer(tvec_base_t *base, timer_t *timer)
...
@@ -94,9 +94,11 @@ static inline void internal_add_timer(tvec_base_t *base, timer_t *timer)
}
else
if
(
idx
<=
0xffffffffUL
)
{
}
else
if
(
idx
<=
0xffffffffUL
)
{
int
i
=
(
expires
>>
(
TVR_BITS
+
3
*
TVN_BITS
))
&
TVN_MASK
;
int
i
=
(
expires
>>
(
TVR_BITS
+
3
*
TVN_BITS
))
&
TVN_MASK
;
vec
=
base
->
tv5
.
vec
+
i
;
vec
=
base
->
tv5
.
vec
+
i
;
}
else
}
else
{
/* Can only get here on architectures with 64-bit jiffies */
/* Can only get here on architectures with 64-bit jiffies */
INIT_LIST_HEAD
(
&
timer
->
entry
);
return
;
return
;
}
/*
/*
* Timers are FIFO:
* Timers are FIFO:
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment