From: Christoph Hellwig <hch@lst.de>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] devfs (7/7) - make devfs_generate_path static
Date: Fri, 18 Apr 2003 18:13:11 +0200 [thread overview]
Message-ID: <20030418181310.G363@lst.de> (raw)
There's just one caller in fs/devfs/base.c left.
diff -Nru a/fs/devfs/base.c b/fs/devfs/base.c
--- a/fs/devfs/base.c Fri Apr 18 15:59:17 2003
+++ b/fs/devfs/base.c Fri Apr 18 15:59:17 2003
@@ -1747,7 +1747,7 @@
* else a negative error code.
*/
-int devfs_generate_path (devfs_handle_t de, char *path, int buflen)
+static int devfs_generate_path (devfs_handle_t de, char *path, int buflen)
{
int pos;
#define NAMEOF(de) ( (de)->mode ? (de)->name : (de)->u.name )
@@ -1867,7 +1867,6 @@
EXPORT_SYMBOL(devfs_mk_symlink);
EXPORT_SYMBOL(devfs_mk_dir);
EXPORT_SYMBOL(devfs_remove);
-EXPORT_SYMBOL(devfs_generate_path);
/**
diff -Nru a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
--- a/include/linux/devfs_fs_kernel.h Fri Apr 18 15:59:17 2003
+++ b/include/linux/devfs_fs_kernel.h Fri Apr 18 15:59:17 2003
@@ -31,7 +31,6 @@
__attribute__((format (printf, 1, 2)));
extern void devfs_remove(const char *fmt, ...)
__attribute__((format (printf, 1, 2)));
-extern int devfs_generate_path (devfs_handle_t de, char *path, int buflen);
extern int devfs_register_tape(const char *name);
extern void devfs_unregister_tape(int num);
extern void devfs_create_partitions(struct gendisk *dev);
@@ -65,11 +64,6 @@
}
static inline void devfs_remove(const char *fmt, ...)
{
-}
-static inline int devfs_generate_path (devfs_handle_t de, char *path,
- int buflen)
-{
- return -ENOSYS;
}
static inline int devfs_register_tape (devfs_handle_t de)
{
reply other threads:[~2003-04-18 16:02 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=20030418181310.G363@lst.de \
--to=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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