Skip to contentSkip to conversation

include/linux/kernel.h: Remove labs()

PATCH New Richard Knutsson 1 participant 1 message Feb 3, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/linux/kernel.h: Remove labs()

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

---
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).

include/linux/kernel.h +0 -5
index 63fb18d..a029430 100644
@@ -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, ...)