mtd: nand: Use ULL-suffix for big u64 constant
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 9 Aug 2014 17:07:53 +0000 (19:07 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:09 +0000 (11:53 -0700)
commitbd8898db3e03147d9d7ddd48876fb3f3bcbab6c1
tree9e1f67b847cdfef7842054aba3f010699dc0bee6
parentff0a215438cf7be0a652cb3457f562539bd40b22
mtd: nand: Use ULL-suffix for big u64 constant

drivers/mtd/nand/nand_timings.c:45: warning: integer constant is too large for ‘long’ type

[ Editorial note: This is a false warning. Looking at ISO draft N1124
    (this is approximately C11, the first PDF I had lying around),
    section 6.4.4.1 (statement 5):

       "The type of an integer constant is the first of the
        corresponding list in which its value can be represented."

    So this should not be an overflow, and any toolchain that says so
    (e.g., GCC 4.4) is buggy.

       -Brian ]

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_timings.c