diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2002-05-21 22:22:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-05-21 22:22:51 -0700 |
| commit | f6581020efd75d0c43219bc2797352bd04e80a21 (patch) | |
| tree | 959bf5c741c9991a595207253c85860d608f2316 | |
| parent | 80b8ce437ab4a58ae4c160501a298da5ecd13004 (diff) | |
[PATCH] MIPS min/max replacement
(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:
| -rw-r--r-- | arch/mips/baget/setup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/baget/setup.c b/arch/mips/baget/setup.c index f12f80a9dedb..0add018f134f 100644 --- a/arch/mips/baget/setup.c +++ b/arch/mips/baget/setup.c @@ -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"), |
