From: Lennert Buytenhek Date: Fri, 1 Dec 2006 15:02:40 +0000 (+0100) Subject: [ARM] 3965/1: ixp2000: fix handling of pci master aborts X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2024c39dbba4d036f0b16daf530ad5f4416fb344;p=mv-sheeva.git [ARM] 3965/1: ixp2000: fix handling of pci master aborts The master abort check in ixp2000_pci_read_config() recently started failing due to the compiler optimising out the read access following the clearing of pci_master_aborts. Mark pci_master_aborts volatile to force the compiler to reload it on every use. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King --- diff --git a/arch/arm/mach-ixp2000/pci.c b/arch/arm/mach-ixp2000/pci.c index d4bf1e1c003..5a09a90c08f 100644 --- a/arch/arm/mach-ixp2000/pci.c +++ b/arch/arm/mach-ixp2000/pci.c @@ -32,7 +32,7 @@ #include -static int pci_master_aborts = 0; +static volatile int pci_master_aborts = 0; static int clear_master_aborts(void);