Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1339982
| From | Dan Williams <dan.j.williams@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] nvdimm: use 'u64' for pfn flags |
| Date | 2016-02-22 23:20 +0100 |
| Message-ID | <r56ZJ-44s-41@gated-at.bofh.it> (permalink) |
| References | <r56Gn-3Cv-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Feb 22, 2016 at 1:58 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> 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")
Thanks Arnd, I'll roll this up.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] nvdimm: use 'u64' for pfn flags Arnd Bergmann <arnd@arndb.de> - 2016-02-22 23:00 +0100 Re: [PATCH] nvdimm: use 'u64' for pfn flags Dan Williams <dan.j.williams@intel.com> - 2016-02-22 23:20 +0100
csiph-web