On Fri, 29 Apr 2016 16:15:23 -0700 Yu Zhao wrote:
> struct page->flags is unsigned long, so when shifting bits we should
> use UL suffix to match it.
>
> Found this problem after I added 64-bit CPU specific page flags and
> failed to compile the kernel:
> mm/page_alloc.c:
On Fri, 29 Apr 2016 16:15:23 -0700 Yu Zhao wrote:
> struct page->flags is unsigned long, so when shifting bits we should
> use UL suffix to match it.
>
> Found this problem after I added 64-bit CPU specific page flags and
> failed to compile the kernel:
> mm/page_alloc.c: In function
struct page->flags is unsigned long, so when shifting bits we should
use UL suffix to match it.
Found this problem after I added 64-bit CPU specific page flags and
failed to compile the kernel:
mm/page_alloc.c: In function '__free_one_page':
mm/page_alloc.c:672:2: error: integer overflow in
struct page->flags is unsigned long, so when shifting bits we should
use UL suffix to match it.
Found this problem after I added 64-bit CPU specific page flags and
failed to compile the kernel:
mm/page_alloc.c: In function '__free_one_page':
mm/page_alloc.c:672:2: error: integer overflow in
4 matches
Mail list logo