Revision c45442055dfdeb265cc20c9eeaa9fd11a75fbf51 authored by Arnd Bergmann on 22 February 2016, 21:58:34 UTC, committed by Dan Williams on 24 February 2016, 01:17:20 UTC
A recent bugfix changed pfn_t to always be 64-bit wide, but did not change the code in pmem.c, which is now broken on 32-bit architectures as reported by gcc: In file included from ../drivers/nvdimm/pmem.c:28:0: drivers/nvdimm/pmem.c: In function 'pmem_alloc': include/linux/pfn_t.h:15:17: error: large integer implicitly truncated to unsigned type [-Werror=overflow] #define PFN_DEV (1ULL << (BITS_PER_LONG_LONG - 3)) This changes the intermediate pfn_flags in struct pmem_device to be 64 bit wide as well, so they can store the flags correctly. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: db78c22230d0 ("mm: fix pfn_t vs highmem") Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 93f834d
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 2.4 KB |
Makefile | -rw-r--r-- | 282 bytes |
compat.c | -rw-r--r-- | 3.2 KB |
dquot.c | -rw-r--r-- | 77.3 KB |
kqid.c | -rw-r--r-- | 3.2 KB |
netlink.c | -rw-r--r-- | 3.0 KB |
quota.c | -rw-r--r-- | 22.2 KB |
quota_tree.c | -rw-r--r-- | 16.8 KB |
quota_tree.h | -rw-r--r-- | 689 bytes |
quota_v1.c | -rw-r--r-- | 6.4 KB |
quota_v2.c | -rw-r--r-- | 10.5 KB |
quotaio_v1.h | -rw-r--r-- | 1.2 KB |
quotaio_v2.h | -rw-r--r-- | 2.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...