Messages in this thread | | | From | Rusty Russell <> | Subject | Re: [PATCH] per-cpu support inside modules (minimal) | Date | Fri, 23 May 2003 09:51:28 +1000 |
| |
In message <20030522031538.2cd124b8.akpm@digeo.com> you write: > > +static inline unsigned int abs(int val) > > +{ > > + if (val < 0) > > + return -val; > > + return val; > > +} > > Several architectures define their own abs() in asm/system.h which > return signed int.
Hmm, it's actually declated that way in linux/kernel.h, too:
extern int abs(int);
But AFAICT it's never actually defined.
Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |