[lkml]   [2001]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 2.4.9 does not compile [PATCH]
    At 23:31 16/08/2001, David S. Miller wrote:
    > From:
    > Date: Thu, 16 Aug 2001 14:41:09 -0700
    > Confirmed here. Looks like a pretty obvious goof to me. Does the
    > following
    > fix it for you?
    >The args and semantics of min/max changed to take
    >a type first argument, the problem with this ntfs file is that it
    >fails to include linux/kernel.h

    It has indeed. I do fail to see why that was necessary though...

    IMHO, it would have been more elegant to use the typeof construct provided
    by gcc in the new macro instead of introducing a type parameter like this...

    #define min(x,y) \
    ({ typeof(x) __x = (x); typeof(y) __y = (y); __x < __y ? __x: __y; })

    Best regards,


    "Nothing succeeds like success." - Alexandre Dumas
    Anton Altaparmakov <aia21 at> (replace at with @)
    Linux NTFS Maintainer / WWW:
    ICQ: 8561279 / WWW:

    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.029 / U:4.548 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site