]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] MIPS min/max replacement
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 22 May 2002 05:22:51 +0000 (22:22 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 22 May 2002 05:22:51 +0000 (22:22 -0700)
(Ralf said to send this straight to you)

Rusty Russell <rusty@rustcorp.com.au>: Trivial MIPS baget patch to remove minmax macros:
  In favour of kernel.h one:

arch/mips/baget/setup.c

index f12f80a9dedbbb63516d9d093203f2084b16a965..0add018f134f5d816cb6baff00edd283bc85d567 100644 (file)
@@ -17,7 +17,6 @@
 long int vac_memory_upper;
 
 #define CACHEABLE_STR(val) ((val) ? "not cached" : "cached")
-#define MIN(a,b)           (((a)<(b)) ? (a):(b)) 
                
 static void __init vac_show(void)
 { 
@@ -102,7 +101,7 @@ static void __init vac_show(void)
                if (a24_addr >= from && a24_addr < to)
                        printk("\ta24 at %08lx (%dMB)\t[vme, A24/%s, %s]\n",
                               a24_addr,
-                              MIN((unsigned int)(a24_addr - from)>>20, 32),
+                              min((unsigned int)(a24_addr - from)>>20, 32U),
                               (a24_base & VAC_A24_DATAPATH) ?  "user" :
                               ((a24_base & VAC_A24_D32_ENABLE)  ?  
                                "D32" : "D16"),