From: Mikael Pettersson <mikpe@csd.uu.se>
To: viro@math.psu.edu
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.4-pre2 PROC_I() compile warnings
Date: Thu, 7 Feb 2002 13:36:30 +0100 (MET) [thread overview]
Message-ID: <200202071236.NAA23606@harpo.it.uu.se> (raw)
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;
}
reply other threads:[~2002-02-07 12:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200202071236.NAA23606@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@math.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®