Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1265536
| From | Geert Uytterhoeven <geert@linux-m68k.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] selftests/mlock2: Add ULL prefix to 64-bit constants |
| Date | 2015-11-09 11:20 +0100 |
| Message-ID | <qsRIo-55g-53@gated-at.bofh.it> (permalink) |
| References | <qsRIm-55g-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 32-bit (e.g. m68k): mlock2-tests.c: In function 'lock_check': mlock2-tests.c:293: warning: integer constant is too large for 'long' type mlock2-tests.c:294: warning: integer constant is too large for 'long' type mlock2-tests.c:299: warning: integer constant is too large for 'long' type mlock2-tests.c:300: warning: integer constant is too large for 'long' type mlock2-tests.c: In function 'unlock_lock_check': mlock2-tests.c:329: warning: integer constant is too large for 'long' type mlock2-tests.c:330: warning: integer constant is too large for 'long' type mlock2-tests.c: In function 'onfault_check': mlock2-tests.c:398: warning: integer constant is too large for 'long' type mlock2-tests.c:398: warning: integer constant is too large for 'long' type mlock2-tests.c:408: warning: integer constant is too large for 'long' type mlock2-tests.c:411: warning: integer constant is too large for 'long' type mlock2-tests.c:416: warning: integer constant is too large for 'long' type mlock2-tests.c: In function 'unlock_onfault_check': mlock2-tests.c:443: warning: integer constant is too large for 'long' type mlock2-tests.c: In function 'test_lock_onfault_of_present': mlock2-tests.c:528: warning: integer constant is too large for 'long' type mlock2-tests.c:529: warning: integer constant is too large for 'long' type Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> --- tools/testing/selftests/vm/mlock2-tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/vm/mlock2-tests.c index cb247219f1f72889..02ca5e0177c539c7 100644 --- a/tools/testing/selftests/vm/mlock2-tests.c +++ b/tools/testing/selftests/vm/mlock2-tests.c @@ -277,8 +277,8 @@ out: return ret; } -#define PRESENT_BIT 0x8000000000000000 -#define PFN_MASK 0x007FFFFFFFFFFFFF +#define PRESENT_BIT 0x8000000000000000ULL +#define PFN_MASK 0x007FFFFFFFFFFFFFULL #define UNEVICTABLE_BIT (1UL << 18) static int lock_check(char *map) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] selftests/mlock2: Build warning fixes on Debian/m68k 4.0 Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-09 11:20 +0100
[PATCH 2/2] selftests/mlock2: Add ULL prefix to 64-bit constants Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-09 11:20 +0100
Re: [PATCH 2/2] selftests/mlock2: Add ULL prefix to 64-bit constants Eric B Munson <emunson@akamai.com> - 2015-11-09 17:00 +0100
Re: [PATCH 0/2] selftests/mlock2: Build warning fixes on Debian/m68k 4.0 Eric B Munson <emunson@akamai.com> - 2015-11-09 16:50 +0100
Re: [PATCH 0/2] selftests/mlock2: Build warning fixes on Debian/m68k 4.0 Eric B Munson <emunson@akamai.com> - 2015-11-09 17:20 +0100
Re: [PATCH 0/2] selftests/mlock2: Build warning fixes on Debian/m68k 4.0 Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-09 21:50 +0100
csiph-web