mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.4-pre2 PROC_I() compile warnings
@ 2002-02-07 12:36 Mikael Pettersson
  0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2002-02-07 12:36 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel

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

--- linux-2.5.4-pre2/include/linux/proc_fs.h.~1~	Thu Feb  7 12:51:22 2002
+++ linux-2.5.4-pre2/include/linux/proc_fs.h	Thu Feb  7 12:53:00 2002
@@ -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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-07 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-07 12:36 [PATCH] 2.5.4-pre2 PROC_I() compile warnings Mikael Pettersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®