Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754796AbdCPXM1 convert rfc822-to-8bit (ORCPT ); Thu, 16 Mar 2017 19:12:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45444 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754675AbdCPXMZ (ORCPT ); Thu, 16 Mar 2017 19:12:25 -0400 Date: Thu, 16 Mar 2017 16:05:20 -0700 From: Andrew Morton To: =?ISO-8859-1?Q?J=E9r=F4me?= Glisse Cc: , linux-mm@kvack.org, John Hubbard , Naoya Horiguchi , David Nellans , Evgeny Baskakov , Mark Hairgrove , Sherry Cheung , Subhash Gutti Subject: Re: [HMM 07/16] mm/migrate: new memory migration helper for use with device memory v4 Message-Id: <20170316160520.d03ac02474cad6d2c8eba9bc@linux-foundation.org> In-Reply-To: <1489680335-6594-8-git-send-email-jglisse@redhat.com> References: <1489680335-6594-1-git-send-email-jglisse@redhat.com> <1489680335-6594-8-git-send-email-jglisse@redhat.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 17 On Thu, 16 Mar 2017 12:05:26 -0400 J?r?me Glisse 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