diff options
| author | Andy Shevchenko <[email protected]> | 2018-02-16 21:07:03 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2018-04-11 08:02:14 +0000 |
| commit | c604b40728c28ba4d831832c7f03805aba11a8e2 (patch) | |
| tree | 1b7a095fcc30015ac27e9ac4fea66f1109778d52 /lib/test_printf.c | |
| parent | Merge branch 'for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/pmla... (diff) | |
| download | kernel-c604b40728c28ba4d831832c7f03805aba11a8e2.tar.gz kernel-c604b40728c28ba4d831832c7f03805aba11a8e2.zip | |
lib/test_printf: Mark big constant with UL
Sparse complains that constant is so big for unsigned long on 64-bit
architecture.
lib/test_printf.c:217:54: warning: constant 0xffff0123456789ab is so big it is unsigned long
lib/test_printf.c:246:54: warning: constant 0xffff0123456789ab is so big it is unsigned long
To satisfy everyone, mark the constant with UL.
Link: http://lkml.kernel.org/r/[email protected]
To: "Tobin C . Harding" <[email protected]>
To: [email protected]
To: Joe Perches <[email protected]>
To: [email protected]
To: Andrew Morton <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
[[email protected]: Changed from ULL to UL as suggested by Luc Van Oostenryck <[email protected]>]
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
| -rw-r--r-- | lib/test_printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_printf.c b/lib/test_printf.c index 71ebfa43ad05..cea592f402ed 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -204,7 +204,7 @@ test_string(void) #if BITS_PER_LONG == 64 #define PTR_WIDTH 16 -#define PTR ((void *)0xffff0123456789ab) +#define PTR ((void *)0xffff0123456789abUL) #define PTR_STR "ffff0123456789ab" #define ZEROS "00000000" /* hex 32 zero bits */ |
