compat: backport USHRT_MAX, SHRT_MAX and SHRT_MIN
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 27 May 2010 03:01:52 +0000 (20:01 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 27 May 2010 03:01:52 +0000 (20:01 -0700)
commitbcc837c4243e8de6598b8de0ea0be41eb69d0430
tree7af296719160917cdc3b2640382b598cbfbf926f
parent53956913c2f7e09fb5739158946c85dcd3f26a31
compat: backport USHRT_MAX, SHRT_MAX and SHRT_MIN

This backports this patch:

Author: Alexey Dobriyan <adobriyan@gmail.com>
Date:   Mon May 24 14:33:03 2010 -0700

    kernel-wide: replace USHORT_MAX, SHORT_MAX and SHORT_MIN with USHRT_MAX, SHRT_MAX and SHRT_MIN

    - C99 knows about USHRT_MAX/SHRT_MAX/SHRT_MIN, not
      USHORT_MAX/SHORT_MAX/SHORT_MIN.

    - Make SHRT_MIN of type s16, not int, for consistency.

    [akpm@linux-foundation.org: fix drivers/dma/timb_dma.c]
    [akpm@linux-foundation.org: fix security/keys/keyring.c]
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.35.h