All of lore.kernel.org
 help / color / mirror / Atom feed
From: yaman <yamanc@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH] Marking obsolete-deprecated stuff
Date: Wed, 14 Feb 2007 17:32:00 +0000	[thread overview]
Message-ID: <45D34790.4070306@gmail.com> (raw)
In-Reply-To: <d1264e020702140722x511bc01ajc6ccbd4eb2816f05@mail.gmail.com>

Sorry about the re-send, non-attached version :)
For marking obsolete-deprecated stuff, compiles fine for arm. If
that's the way to go i can complete the rest.

Signed-off-by: Yaman Cakmakci <yamanc@gmail.com <mailto:yamanc@gmail.com>>

--------------------------------------------------------------------------------------------

diff -uprN -X linux-2.6.20-vanilla/Documentation/dontdiff 
linux-2.6.20-vanilla/arch/arm/kernel/compat.c 
linux-2.6.20/arch/arm/kernel/compat.c
--- linux-2.6.20-vanilla/arch/arm/kernel/compat.c    2006-09-20 
06:42:06.000000000 +0300
+++ linux-2.6.20/arch/arm/kernel/compat.c    2007-02-14 
15:43:03.000000000 +0200
@@ -38,8 +38,9 @@
  *    guaranteed to contain useful data in setup_arch()
  *
  * This is the old deprecated way to pass parameters to the kernel
+ * Should've been obsoleted by now, as it's 2007 now
  */
-struct param_struct {
+struct __deprecated param_struct {
     union {
     struct {
         unsigned long page_size;        /*  0 */
diff -uprN -X linux-2.6.20-vanilla/Documentation/dontdiff 
linux-2.6.20-vanilla/arch/arm/mm/mmu.c linux-2.6.20/arch/arm/mm/mmu.c
--- linux-2.6.20-vanilla/arch/arm/mm/mmu.c    2007-02-14 
15:12:18.000000000 +0200
+++ linux-2.6.20/arch/arm/mm/mmu.c    2007-02-14 15:49:33.000000000 +0200
@@ -117,18 +117,16 @@ static void __init early_cachepolicy(cha
 }
 __early_param("cachepolicy=", early_cachepolicy);
 
-static void __init early_nocache(char **__unused)
+__deprecated static void __init early_nocache(char **__unused)
 {
     char *p = "buffered";
-    printk(KERN_WARNING "nocache is deprecated; use cachepolicy=%s\n", p);
     early_cachepolicy(&p);
 }
 __early_param("nocache", early_nocache);
 
-static void __init early_nowrite(char **__unused)
+__deprecated static void __init early_nowrite(char **__unused)
 {
     char *p = "uncached";
-    printk(KERN_WARNING "nowb is deprecated; use cachepolicy=%s\n", p);
     early_cachepolicy(&p);
 }
 __early_param("nowb", early_nowrite);
diff -uprN -X linux-2.6.20-vanilla/Documentation/dontdiff 
linux-2.6.20-vanilla/arch/arm26/kernel/compat.c 
linux-2.6.20/arch/arm26/kernel/compat.c
--- linux-2.6.20-vanilla/arch/arm26/kernel/compat.c    2006-09-20 
06:42:06.000000000 +0300
+++ linux-2.6.20/arch/arm26/kernel/compat.c    2007-02-14 
15:52:30.000000000 +0200
@@ -38,8 +38,9 @@
  *    guaranteed to contain useful data in setup_arch()
  *
  * This is the old deprecated way to pass parameters to the kernel
+ * Should've been obsoleted by now, as it's 2007 now
  */
-struct param_struct {
+struct __deprecated param_struct {
     union {
     struct {
         unsigned long page_size;        /*  0 */
diff -uprN -X linux-2.6.20-vanilla/Documentation/dontdiff 
linux-2.6.20-vanilla/arch/arm26/kernel/setup.c 
linux-2.6.20/arch/arm26/kernel/setup.c
--- linux-2.6.20-vanilla/arch/arm26/kernel/setup.c    2007-02-14 
15:04:16.000000000 +0200
+++ linux-2.6.20/arch/arm26/kernel/setup.c    2007-02-14 
15:56:57.000000000 +0200
@@ -354,9 +354,8 @@ static int __init parse_tag_ramdisk(cons
 
 __tagtable(ATAG_RAMDISK, parse_tag_ramdisk);
 
-static int __init parse_tag_initrd(const struct tag *tag)
+__deprecated static int __init parse_tag_initrd(const struct tag *tag)
 {
-    printk(KERN_WARNING "ATAG_INITRD is deprecated; please update your 
bootloader. \n");
         phys_initrd_start = (unsigned long)tag->u.initrd.start;
         phys_initrd_size = (unsigned long)tag->u.initrd.size;
     return 0;
@@ -364,9 +363,8 @@ static int __init parse_tag_initrd(const
 
 __tagtable(ATAG_INITRD, parse_tag_initrd);
 
-static int __init parse_tag_initrd2(const struct tag *tag)
+__deprecated static int __init parse_tag_initrd2(const struct tag *tag)
 {
-    printk(KERN_WARNING "ATAG_INITRD is deprecated; please update your 
bootloader. \n");
     phys_initrd_start = (unsigned long)tag->u.initrd.start;
     phys_initrd_size = (unsigned long)tag->u.initrd.size;
     return 0;

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

  reply	other threads:[~2007-02-14 17:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14 15:22 [KJ] [PATCH] Marking obsolete-deprecated stuff Yaman
2007-02-14 17:32 ` yaman [this message]
2007-02-14 19:35 ` Tobias Klauser
2007-02-14 22:24 ` Robert P. J. Day
2007-02-14 22:27 ` Robert P. J. Day

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=45D34790.4070306@gmail.com \
    --to=yamanc@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.