[prev in list] [next in list] [prev in thread] [next in thread]
List: linuxppc-dev
Subject: [PATCH] Add __iomem qualifier to cfg_{addr,data} fields in stuct
From: tnt () 246tNt ! com (Sylvain Munaut)
Date: 2004-12-16 14:17:41
Message-ID: 41C19905.6070300 () 246tNt ! com
[Download RAW message or body]
Hello,
The patch below add the __iomem qualifier to the fields containing
addresses to access the PCI config space. It seems right to add them
since they're gonna be used with {in,out}_{le,be} that requires them
not to produce sparse warning.
Sylvain
ppc32: Add __iomem qualifier to cfg_{addr,data} fields in stuct
pci_controller
Signed-off-by: Sylvain Munaut <tnt at 246tNt.com>
===== include/asm-ppc/pci-bridge.h 1.13 vs edited =====
--- 1.13/include/asm-ppc/pci-bridge.h 2004-11-11 09:25:52 +01:00
+++ edited/include/asm-ppc/pci-bridge.h 2004-12-16 15:07:14 +01:00
@@ -57,8 +57,8 @@
unsigned long pci_mem_offset;
struct pci_ops *ops;
- volatile unsigned int *cfg_addr;
- volatile unsigned char *cfg_data;
+ volatile unsigned int __iomem *cfg_addr;
+ volatile unsigned char __iomem *cfg_data;
/*
* If set, indirect method will set the cfg_type bit as
* needed to generate type 1 configuration transactions.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic