From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by kanga.kvack.org (Postfix) with ESMTP id 3C15D6B0069 for ; Wed, 18 Oct 2017 04:40:25 -0400 (EDT) Received: by mail-wr0-f198.google.com with SMTP id l18so2056455wrc.23 for ; Wed, 18 Oct 2017 01:40:25 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h4sor5518336edb.7.2017.10.18.01.40.24 for (Google Transport Security); Wed, 18 Oct 2017 01:40:24 -0700 (PDT) Date: Wed, 18 Oct 2017 11:40:22 +0300 From: "Kirill A. Shutemov" Subject: Re: [PATCH] mm: mark mm_pgtables_bytes() argument as const Message-ID: <20171018084021.ha3ftkbfn5cqqjm6@node.shutemov.name> References: <20171018083226.3124972-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171018083226.3124972-1-arnd@arndb.de> Sender: owner-linux-mm@kvack.org List-ID: To: Arnd Bergmann Cc: "Kirill A. Shutemov" , Andrew Morton , Michal Hocko , Jan Kara , Ross Zwisler , Lorenzo Stoakes , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Wed, Oct 18, 2017 at 10:31:17AM +0200, Arnd Bergmann wrote: > The newly introduced mm_pgtables_bytes() function has two > definitions with slightly different prototypes. The one > used for CONFIG_MMU=n causes a compile-time warning: > > In file included from include/linux/kernel.h:13:0, > from mm/debug.c:8: > mm/debug.c: In function 'dump_mm': > mm/debug.c:137:21: error: passing argument 1 of 'mm_pgtables_bytes' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] > > This changes it to be the same as the other one and avoid the > warning. > > Fixes: 7444e6ee9cce ("mm: consolidate page table accounting") > Signed-off-by: Arnd Bergmann The fix is already in mmots: http://ozlabs.org/~akpm/mmots/broken-out/mm-consolidate-page-table-accounting-fix.patch -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org