[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170524081617.GA3311@jagdpanzerIV.localdomain>
Date: Wed, 24 May 2017 17:16:18 +0900
From: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
To: Nick Desaulniers <nick.desaulniers@...il.com>
Cc: md@...gle.com, mka@...omium.org, Minchan Kim <minchan@...nel.org>,
Nitin Gupta <ngupta@...are.org>,
Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/zsmalloc: fix -Wunneeded-internal-declaration warning
On (05/23/17 22:38), Nick Desaulniers wrote:
>
> is_first_page() is only called from the macro VM_BUG_ON_PAGE() which is
> only compiled in as a runtime check when CONFIG_DEBUG_VM is set,
> otherwise is checked at compile time and not actually compiled in.
>
> Fixes the following warning, found with Clang:
>
> mm/zsmalloc.c:472:12: warning: function 'is_first_page' is not needed and
> will not be emitted [-Wunneeded-internal-declaration]
> static int is_first_page(struct page *page)
> ^
>
> Signed-off-by: Nick Desaulniers <nick.desaulniers@...il.com>
well, no objections from my side. MM seems to be getting more and
more `__maybe_unused' annotations because of clang.
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
-ss
Powered by blists - more mailing lists