public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] remove kdevname() before someone starts using it again
Date: Mon, 31 Mar 2003 16:26:34 +0200	[thread overview]
Message-ID: <20030331162634.A14319@lst.de> (raw)


--- 1.14/fs/libfs.c	Wed Jan  1 02:18:35 2003
+++ edited/fs/libfs.c	Wed Mar 26 21:32:02 2003
@@ -332,14 +332,3 @@
 	set_page_dirty(page);
 	return 0;
 }
-
-/*
- * Print device name (in decimal, hexadecimal or symbolic)
- * Note: returns pointer to static data!
- */
-const char * kdevname(kdev_t dev)
-{
-	static char buffer[32];
-	sprintf(buffer, "%02x:%02x", major(dev), minor(dev));
-	return buffer;
-}
--- 1.222/include/linux/fs.h	Sun Mar 23 07:14:19 2003
+++ edited/include/linux/fs.h	Wed Mar 26 21:32:08 2003
@@ -1074,7 +1074,6 @@
 extern void close_bdev_excl(struct block_device *, int);
 
 extern const char * cdevname(kdev_t);
-extern const char * kdevname(kdev_t);
 extern void init_special_inode(struct inode *, umode_t, dev_t);
 
 /* Invalid inode operations -- fs/bad_inode.c */
--- 1.7/include/linux/kdev_t.h	Fri Nov  1 13:28:19 2002
+++ edited/include/linux/kdev_t.h	Wed Mar 26 21:32:14 2003
@@ -101,8 +101,6 @@
 #define NODEV		(mk_kdev(0,0))
 #define B_FREE		(mk_kdev(0xff,0xff))
 
-extern const char * kdevname(kdev_t);	/* note: returns pointer to static data! */
-
 static inline int kdev_same(kdev_t dev1, kdev_t dev2)
 {
 	return dev1.value == dev2.value;
--- 1.186/kernel/ksyms.c	Sat Mar 22 05:05:21 2003
+++ edited/kernel/ksyms.c	Wed Mar 26 21:32:22 2003
@@ -511,7 +511,6 @@
 EXPORT_SYMBOL(vsprintf);
 EXPORT_SYMBOL(vsnprintf);
 EXPORT_SYMBOL(vsscanf);
-EXPORT_SYMBOL(kdevname);
 EXPORT_SYMBOL(__bdevname);
 EXPORT_SYMBOL(cdevname);
 EXPORT_SYMBOL(simple_strtoull);

             reply	other threads:[~2003-03-31 14:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31 14:26 Christoph Hellwig [this message]
2003-04-06 20:28 ` [PATCH] remove kdevname() before someone starts using it again Nicholas Wourms
2003-04-06 20:35   ` Christoph Hellwig
2003-04-07  7:43   ` Nikita Danilov
2003-04-07  8:19     ` Christoph Hellwig
2003-04-07  8:39       ` Andrew Morton
2003-04-07  8:43       ` Nikita Danilov
2003-04-07 14:08     ` Nicholas Wourms
2003-04-07 14:25       ` Nikita Danilov
2003-04-07 14:35         ` Nicholas Wourms
2003-04-07 14:56           ` Oleg Drokin
2003-04-07 14:54       ` Oleg Drokin

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=20030331162634.A14319@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