All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH] minmax-removal
@ 2004-08-15 11:43 Michael Veeck
  2004-08-15 11:43 ` [Kernel-janitors] [PATCH] minmax-removal arch/ia64/kernel/unwind.c Michael Veeck
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Michael Veeck @ 2004-08-15 11:43 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

Patch (against 2.6.8.1) removes unnecessary min/max macros and changes
calls to use kernel.h macros instead.

Since I dont have the hardware those patches are not tested.

Best regards
Veeck

Signed-off-by: Michael Veeck <michael.veeck@gmx.net>





[-- Attachment #2: minmax-arch-ia64-hp.patch --]
[-- Type: text/plain, Size: 788 bytes --]

--- linux-2.6.8-old/arch/ia64/hp/sim/simserial.c	2004-08-14 11:49:01.000000000 +0200
+++ linux-2.6.8-new/arch/ia64/hp/sim/simserial.c	2004-08-15 12:58:49.555972544 +0200
@@ -50,10 +50,6 @@
 #define _INLINE_ inline
 #endif
 
-#ifndef MIN
-#define MIN(a,b)	((a) < (b) ? (a) : (b))
-#endif
-
 #define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? SA_SHIRQ : SA_INTERRUPT)
 
 #define SSC_GETCHAR	21
@@ -275,7 +271,7 @@ static _INLINE_ void transmit_chars(stru
 	 * Then from the beginning of the buffer until necessary
 	 */
 
-	count = MIN(CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE),
+	count = min(CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE),
 		    SERIAL_XMIT_SIZE - info->xmit.tail);
 	console->write(console, info->xmit.buf+info->xmit.tail, count);
 

[-- Attachment #3: Type: text/plain, Size: 167 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-09-21 22:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 11:43 [Kernel-janitors] [PATCH] minmax-removal Michael Veeck
2004-08-15 11:43 ` [Kernel-janitors] [PATCH] minmax-removal arch/ia64/kernel/unwind.c Michael Veeck
2004-08-15 11:43 ` [Kernel-janitors] [PATCH] minmax-removal Michael Veeck
2004-08-15 11:44 ` [Kernel-janitors] [PATCH] minmax-removal arch/m68k/kernel/bios32.c Michael Veeck
2004-08-15 11:44 ` [Kernel-janitors] [PATCH] minmax-removal Michael Veeck
2004-08-15 11:44 ` [Kernel-janitors] [PATCH] minmax-removal arch/s390/kernel/debug.c Michael Veeck
2004-08-15 11:44 ` [Kernel-janitors] [PATCH] minmax-removal arch/sh/boards/bigsur/io.c Michael Veeck
2004-08-15 11:44 ` [Kernel-janitors] [PATCH] minmax-removal Michael Veeck
2004-08-15 11:45 ` Michael Veeck
2004-08-19 14:57 ` maximilian attems
2004-09-21 22:03 ` maximilian attems
2004-09-21 22:38 ` Michael Veeck

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.