2.5.4-pre2 PROC_I() compile warnings
PATCH 1/1 2.5.4-pre2 PROC_I() compile warnings
The new PROC_I() and PDE() access functions for /proc inodes need to have their formal parameters declared "const", to avoid some compile warnings (in drivers/pci/ and possibly elsewhere).
/Mikael
include/linux/proc_fs.h renamed from include/linux/proc_fs.h.~1~ +2 -2
@@ -217,12 +217,12 @@struct inode vfs_inode; }; -static inline struct proc_inode *PROC_I (struct inode *inode) +static inline struct proc_inode *PROC_I (const struct inode *inode) { return list_entry(inode, struct proc_inode, vfs_inode); } -static inline struct proc_dir_entry *PDE (struct inode *inode) +static inline struct proc_dir_entry *PDE (const struct inode *inode) {return PROC_I (inode)->pde; }