Re: [HMM 07/16] mm/migrate: new memory migration helper for use with device memory v4
From: Andrew Morton
Date: Thu Mar 16 2017 - 19:12:30 EST
On Thu, 16 Mar 2017 12:05:26 -0400 Jérôme Glisse <jglisse@xxxxxxxxxx> wrote:
> +static inline struct page *migrate_pfn_to_page(unsigned long mpfn)
> +{
> + if (!(mpfn & MIGRATE_PFN_VALID))
> + return NULL;
> + return pfn_to_page(mpfn & MIGRATE_PFN_MASK);
> +}
i386 allnoconfig:
In file included from mm/page_alloc.c:61:
./include/linux/migrate.h: In function 'migrate_pfn_to_page':
./include/linux/migrate.h:139: warning: left shift count >= width of type
./include/linux/migrate.h:141: warning: left shift count >= width of type
./include/linux/migrate.h: In function 'migrate_pfn_size':
./include/linux/migrate.h:146: warning: left shift count >= width of type