[POWERPC] Pointers marked as __iomem do not need to be volatile

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, January 30, 2008 - 8:02 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=70fbb9...
Commit:     70fbb9388365c3f6f9f17e6501a67f8636e4af08
Parent:     b91bdd15174ca7104905d74aaf89a6815c3f9d8c
Author:     Stephen Rothwell <sfr@canb.auug.org.au>
AuthorDate: Fri Dec 21 15:23:48 2007 +1100
Committer:  Paul Mackerras <paulus@samba.org>
CommitDate: Fri Dec 21 22:14:07 2007 +1100

    [POWERPC] Pointers marked as __iomem do not need to be volatile
    
    Fixes this warning:
    
    arch/powerpc/platforms/powermac/pci.c: In function 'u3_ht_cfg_access':
    arch/powerpc/platforms/powermac/pci.c:354: warning: return discards qualifiers from pointer target type
    arch/powerpc/platforms/powermac/pci.c:358: warning: return discards qualifiers from pointer target type
    
    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Paul Mackerras <paulus@samba.org>
---
 include/asm-powerpc/pci-bridge.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h
index 4aeef7f..9b16d3b 100644
--- a/include/asm-powerpc/pci-bridge.h
+++ b/include/asm-powerpc/pci-bridge.h
@@ -75,8 +75,8 @@ struct pci_controller {
 #endif
 
 	struct pci_ops *ops;
-	volatile unsigned int __iomem *cfg_addr;
-	volatile void __iomem *cfg_data;
+	unsigned int __iomem *cfg_addr;
+	void __iomem *cfg_data;
 
 #ifndef CONFIG_PPC64
 	/*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[POWERPC] Pointers marked as __iomem do not need to be vol ..., Linux Kernel Mailing ..., (Wed Jan 30, 8:02 pm)