From: Rusty Russell <rusty@rustcorp.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org, akpm@zip.com.au,
Thomas Sailer <sailer@ife.ee.ethz.ch>,
Marcel Holtmann <marcel@holtmann.org>,
Jose Orlando Pereira <jop@di.uminho.pt>,
J.E.J.Bottomley@HansenPartnership.com
Subject: Re: [PATCH] Deprecated exec_usermodehelper, enhance call_usermodehelper
Date: Mon, 06 Jan 2003 15:35:45 +1100 [thread overview]
Message-ID: <20030106052000.DE13C2C276@lists.samba.org> (raw)
In-Reply-To: Your message of "Sun, 05 Jan 2003 19:54:07 -0800." <Pine.LNX.4.44.0301051952450.3087-100000@home.transmeta.com>
In message <Pine.LNX.4.44.0301051952450.3087-100000@home.transmeta.com> you wri
te:
>
> On Mon, 6 Jan 2003, Rusty Russell wrote:
> >
> > Linus, please apply.
>
> Nope, I really don't want to deprecate any more interfaces while my build
> is still so noisy about the _existing_ deprecated stuff.
OK. I'll work with the various authors to actually remove all 3 users
in the tree, then submit a patch to rip it out.
> The noisiness of the current build is quite distracting, and likely makes
> people just ignore potentially valid warnings simply because there are too
> many of them-
Damn. I guess you don't want this patch then?
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Name: Deprecate cli/sti/restore_flags etc.
Author: Rusty Russell
Status: Tested on 2.5.54
D: These functions have long been deprecated: they don't exist on SMP.
D: Mark them deprecated.
diff -urNp --exclude TAGS -X /home/rusty/current-dontdiff --minimal linux-2.5-bk/include/linux/interrupt.h working-2.5-bk-clisti/include/linux/interrupt.h
--- linux-2.5-bk/include/linux/interrupt.h Thu Jan 2 12:36:08 2003
+++ working-2.5-bk-clisti/include/linux/interrupt.h Mon Jan 6 14:41:25 2003
@@ -5,6 +5,7 @@
#include <linux/config.h>
#include <linux/linkage.h>
#include <linux/bitops.h>
+#include <linux/compiler.h>
#include <asm/atomic.h>
#include <asm/hardirq.h>
#include <asm/ptrace.h>
@@ -28,12 +29,29 @@ extern void free_irq(unsigned int, void
/*
* Temporary defines for UP kernels, until all code gets fixed.
*/
-#if !CONFIG_SMP
-# define cli() local_irq_disable()
-# define sti() local_irq_enable()
-# define save_flags(x) local_save_flags(x)
-# define restore_flags(x) local_irq_restore(x)
-# define save_and_cli(x) local_irq_save(x)
+#ifndef CONFIG_SMP
+static inline void __deprecated cli(void)
+{
+ local_irq_disable();
+}
+static inline void __deprecated sti(void)
+{
+ local_irq_enable();
+}
+static inline void __deprecated deprecated_save_flags(unsigned long *flags)
+{
+ local_save_flags(*flags);
+}
+static inline void __deprecated restore_flags(unsigned long flags)
+{
+ local_irq_restore(flags);
+}
+static inline void __deprecated deprecated_save_and_cli(unsigned long *flags)
+{
+ local_irq_save(*flags);
+}
+# define save_flags(x) deprecated_save_flags(&(x))
+# define save_and_cli(x) deprecated_save_and_cli(&(x))
#endif
next prev parent reply other threads:[~2003-01-06 5:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-06 1:47 [PATCH] Deprecated exec_usermodehelper, enhance call_usermodehelper Rusty Russell
2003-01-06 3:54 ` Linus Torvalds
2003-01-06 4:35 ` Rusty Russell [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-06 5:31 Rusty Russell
2003-01-06 18:39 ` Thomas Sailer
2003-01-07 3:12 ` Marcel Holtmann
2003-01-10 8:14 ` Rusty Russell
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=20030106052000.DE13C2C276@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=J.E.J.Bottomley@HansenPartnership.com \
--cc=akpm@zip.com.au \
--cc=jop@di.uminho.pt \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=sailer@ife.ee.ethz.ch \
--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