[lkml]   [2001]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectmin() and max() in kernel.h ?


just now I tried to compile some module and noticed that it doesnt
compile anymore because "macro min used with only two arguments".
I had some "#define min(a,b) (a<b?a:b)" myself.

I then found min() being defined in <linux/kernel.h> with an additional
type argument and some superfluos (imo) assignment code. Erm. What's going
next, drawing elipses in kernel?

I'm also missing some comment who added min/max to kernel.h, at least
I want to know who I am going to flame :->


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.031 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site