From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9D95C4360C for ; Thu, 10 Oct 2019 03:53:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B68F1206B6 for ; Thu, 10 Oct 2019 03:53:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B68F1206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4CEC88E0005; Wed, 9 Oct 2019 23:53:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4820A8E0003; Wed, 9 Oct 2019 23:53:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36D7C8E0005; Wed, 9 Oct 2019 23:53:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0109.hostedemail.com [216.40.44.109]) by kanga.kvack.org (Postfix) with ESMTP id 10FD88E0003 for ; Wed, 9 Oct 2019 23:53:36 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id A4FDB6123 for ; Thu, 10 Oct 2019 03:53:35 +0000 (UTC) X-FDA: 76026505590.11.level69_59859c790ce29 X-HE-Tag: level69_59859c790ce29 X-Filterd-Recvd-Size: 3540 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Thu, 10 Oct 2019 03:53:34 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2019 20:53:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,278,1566889200"; d="scan'208";a="184280680" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga007.jf.intel.com with ESMTP; 09 Oct 2019 20:53:31 -0700 Date: Thu, 10 Oct 2019 11:53:14 +0800 From: Wei Yang To: Mike Kravetz Cc: Wei Yang , YueHaibing , Andrea Arcangeli , "Joel Fernandes (Google)" , Andrew Morton , Stephen Rothwell , Hugh Dickins , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH -next] userfaultfd: remove set but not used variable 'h' Message-ID: <20191010035314.GA6917@richard> Reply-To: Wei Yang References: <20191009122740.70517-1-yuehaibing@huawei.com> <20191010012322.GB2167@richard> <20191010033045.GA5927@richard> <01601a94-5c52-7ef6-ce08-7a86ac70fab2@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01601a94-5c52-7ef6-ce08-7a86ac70fab2@oracle.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Oct 09, 2019 at 08:42:46PM -0700, Mike Kravetz wrote: >On 10/9/19 8:30 PM, Wei Yang wrote: >> On Wed, Oct 09, 2019 at 07:25:18PM -0700, Mike Kravetz wrote: >>> On 10/9/19 6:23 PM, Wei Yang wrote: >>>> On Wed, Oct 09, 2019 at 05:45:57PM -0700, Mike Kravetz wrote: >>>>> On 10/9/19 5:27 AM, YueHaibing wrote: >>>>>> Fixes gcc '-Wunused-but-set-variable' warning: >>>>>> >>>>>> mm/userfaultfd.c: In function '__mcopy_atomic_hugetlb': >>>>>> mm/userfaultfd.c:217:17: warning: >>>>>> variable 'h' set but not used [-Wunused-but-set-variable] >>>>>> >>>>>> It is not used since commit 78911d0e18ac ("userfaultfd: use vma_pagesize >>>>>> for all huge page size calculation") >>>>>> >>>>> >>>>> Thanks! That should have been removed with the recent cleanups. >>>>> >>>>>> Signed-off-by: YueHaibing >>>>> >>>>> Reviewed-by: Mike Kravetz >>>> >>>> If I am correct, this is removed in a recent patch. >>> >>> I'm having a hard time figuring out what is actually in the latest mmotm >>> tree. Andrew added a build fixup patch ab169389eb5 in linux-next which >>> adds the reference to h. Is there a patch after that to remove the reference? >>> >> >> I checked linux-next tree, this commit removes the reference. >> >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=add4eaeef3766b7491d70d473c48c0b6d6ca5cb7 >> > >Yes, but unless I am mistaken this adds it back, > >https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ab169389eb5ff9da7113a21737574edc6d22c072 > Oops, we may leave this to Andrew. >-- >Mike Kravetz -- Wei Yang Help you, Help me