Skip to contentSkip to conversation

arch/ppc64: Replace custom MIN macro

PATCH New Tobias Klauser 1 participant 1 message Apr 7, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/ppc64: Replace custom MIN macro

From the kerneljanitors TODO list:
- min/max macros from kernel.h are safe, a lot of handcrafted MIN/MAX are not.

arch/ppc64/kernel/signal.c +1 -5
diff -urpN linux-2.6.12-rc2.orig/arch/ppc64/kernel/signal.c linux-2.6.12-rc2/arch/ppc64/kernel/signal.c
@@ -42,11 +42,7 @@
 
 #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
 
-#ifndef MIN
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#endif
-
-#define GP_REGS_SIZE	MIN(sizeof(elf_gregset_t), sizeof(struct pt_regs))
+#define GP_REGS_SIZE	min(sizeof(elf_gregset_t), sizeof(struct pt_regs))
 #define FP_REGS_SIZE	sizeof(elf_fpregset_t)
 
 #define TRAMP_TRACEBACK	3

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors