replace logical by bitand in pci_process_ISA_OF_ranges(), arch/powerpc/kernel/isa-bridge.c
PATCH RESEND 1/1 replace logical by bitand in pci_process_ISA_OF_ranges(), arch/powerpc/kernel/isa-bridge.c
in arch/powerpc/kernel/isa-bridge.c:
41:#define ISA_SPACE_MASK 0x1
42:#define ISA_SPACE_IO 0x1
...
83: if ((range->isa_addr.a_hi && ISA_SPACE_MASK) != ISA_SPACE_IO) {
...
89: if ((range->isa_addr.a_hi && ISA_SPACE_MASK) != ISA_SPACE_IO)
I think these should be single &'s, I can't test it (no hardware) please consider the patch below.
--
replace logical by bit and for ISA_SPACE_MASK
---
arch/powerpc/kernel/isa-bridge.c +2 -2
@@ -80,13 +80,13 @@ static void __devinit pci_process_ISA_OF_ranges(struct device_node *isa_node,* (size depending on dev->n_addr_cells) * cell 5: the size of the range */ -if ((range->isa_addr.a_hi &&ISA_SPACE_MASK ) !=ISA_SPACE_IO ) { +if ((range->isa_addr.a_hi &ISA_SPACE_MASK ) !=ISA_SPACE_IO ) { range++; rlen -=sizeof (struct isa_range );if (rlen <sizeof (struct isa_range )) goto inval_range; } -if ((range->isa_addr.a_hi &&ISA_SPACE_MASK ) !=ISA_SPACE_IO ) +if ((range->isa_addr.a_hi &ISA_SPACE_MASK ) !=ISA_SPACE_IO ) goto inval_range; isa_addr = range->isa_addr.a_lo;
Quoted 1 line · Roel Kluin
replace logical by bit and for
ISA_SPACE_MASK
I think Paul has picked this up now:
http://ozlabs.org/pipermail/linuxppc-dev/2008-April/054103.html
Quoted 9 lines · Roel Kluin
in
arch/powerpc/kernel/isa-bridge.c:
41:#defineISA_SPACE_MASK0x1
42:#defineISA_SPACE_IO0x1
...83: if ((
range->isa_addr.a_hi&&ISA_SPACE_MASK) !=ISA_SPACE_IO) {
...
89: if ((range->isa_addr.a_hi&&ISA_SPACE_MASK) !=ISA_SPACE_IO)
Quoted 6 lines
I think these should be single &'s, I can't test it (no hardware) please consider the patch below.
--
replace logical by bit and forISA_SPACE_MASKSigned-off-by Roel Kluin <[email protected]>
Quoted 26 lines
---
arch/powerpc/kernel/isa-bridge.c +2
-2@@ -80,13 +80,13 @@ static void __devinit pci_process_ISA_OF_ranges(struct device_node *isa_node,* (size depending on dev->n_addr_cells) * cell 5: the size of the range */ -if ((range->isa_addr.a_hi &&ISA_SPACE_MASK ) !=ISA_SPACE_IO ) { +if ((range->isa_addr.a_hi &ISA_SPACE_MASK ) !=ISA_SPACE_IO ) { range++; rlen -=sizeof (struct isa_range );if (rlen <sizeof (struct isa_range )) goto inval_range; } -if ((range->isa_addr.a_hi &&ISA_SPACE_MASK ) !=ISA_SPACE_IO ) +if ((range->isa_addr.a_hi &ISA_SPACE_MASK ) !=ISA_SPACE_IO ) goto inval_range; isa_addr = range->isa_addr.a_lo;_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev