From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763649AbdEZEP4 (ORCPT ); Fri, 26 May 2017 00:15:56 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35576 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbdEZEPw (ORCPT ); Fri, 26 May 2017 00:15:52 -0400 Date: Thu, 25 May 2017 21:15:48 -0700 From: Nick Desaulniers To: Sergey Senozhatsky Cc: md@google.com, mka@chromium.org, Minchan Kim , Nitin Gupta , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/zsmalloc: fix -Wunneeded-internal-declaration warning Message-ID: <20170526041548.vq7vwogsk266aivp@lostoracle.net> References: <20170524053859.29059-1-nick.desaulniers@gmail.com> <20170524081617.GA3311@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170524081617.GA3311@jagdpanzerIV.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 24, 2017 at 05:16:18PM +0900, Sergey Senozhatsky wrote: > On (05/23/17 22:38), Nick Desaulniers wrote: > > Fixes the following warning, found with Clang: > well, no objections from my side. MM seems to be getting more and > more `__maybe_unused' annotations because of clang. Indeed, but does find bugs when this warning pops up unexpected (unlike in this particular instance). See: https://patchwork.kernel.org/patch/9738897/ https://www.spinics.net/lists/intel-gfx/msg128737.html TL;DR >>> You have actually uncovered a bug here where the call is not >>> supposed to be optional in the first place.