LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] include/linux/kernel.h: Remove labs()
@ 2007-02-03 18:10 Richard Knutsson
  0 siblings, 0 replies; only message in thread
From: Richard Knutsson @ 2007-02-03 18:10 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Richard Knutsson

Remove labs() since it is not used/needed.

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
Could not find any references to it (other then defined in gcc's stdlib.h),
compile-tested with "allyes" on i386 just to be sure.
If abs()'s int is not sufficient, it then should be replaced with typeof (imho).


diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 63fb18d..a029430 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -92,11 +92,6 @@ extern int cond_resched(void);
 		(__x < 0) ? -__x : __x;		\
 	})
 
-#define labs(x) ({				\
-		long __x = (x);			\
-		(__x < 0) ? -__x : __x;		\
-	})
-
 extern struct atomic_notifier_head panic_notifier_list;
 extern long (*panic_blink)(long time);
 NORET_TYPE void panic(const char * fmt, ...)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-03 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-03 18:10 [PATCH] include/linux/kernel.h: Remove labs() Richard Knutsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).