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-- | 699 bytes |
Makefile | -rw-r--r-- | 248 bytes |
balloc.c | -rw-r--r-- | 19.2 KB |
dir.c | -rw-r--r-- | 4.9 KB |
directory.c | -rw-r--r-- | 5.7 KB |
ecma_167.h | -rw-r--r-- | 22.0 KB |
file.c | -rw-r--r-- | 6.5 KB |
ialloc.c | -rw-r--r-- | 3.3 KB |
inode.c | -rw-r--r-- | 66.0 KB |
lowlevel.c | -rw-r--r-- | 1.5 KB |
misc.c | -rw-r--r-- | 7.7 KB |
namei.c | -rw-r--r-- | 34.3 KB |
osta_udf.h | -rw-r--r-- | 8.2 KB |
partition.c | -rw-r--r-- | 8.6 KB |
super.c | -rw-r--r-- | 65.7 KB |
symlink.c | -rw-r--r-- | 3.3 KB |
truncate.c | -rw-r--r-- | 7.9 KB |
udf_i.h | -rw-r--r-- | 1.7 KB |
udf_sb.h | -rw-r--r-- | 4.3 KB |
udfdecl.h | -rw-r--r-- | 8.5 KB |
udfend.h | -rw-r--r-- | 1.6 KB |
udftime.c | -rw-r--r-- | 5.8 KB |
unicode.c | -rw-r--r-- | 11.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...