Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1797254ybp; Wed, 9 Oct 2019 20:43:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEO6hcEAqIbJbOW9eBwSj0J357ewokNr8nIUHaQ9HghLmftSAAaVUdSWdjGexpoK+imX1H X-Received: by 2002:a05:6402:21d6:: with SMTP id bi22mr6003285edb.19.1570679034110; Wed, 09 Oct 2019 20:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570679034; cv=none; d=google.com; s=arc-20160816; b=S34hnNdzPsVKfh8zsMJ/FW4mWOwJs3NgOWN+jTVOdYRUkGE9Y5zEtTh6ax+Oq++xuI L6RFXIusQhfngOPkEAeH1+1klTZD6OBpQOc/cPBHuza/rLkAuQeP/g+PlIKnBHyXARcx AxE2XnsrmY21JtzrrMlw3QnuciPHFE8uQ0/Rc5dIm2QrsTdqzUcV/zMIskIKd8xbSPLO 0IFd+8fK4Bgn8RyxfCo8OHCNT3xz2bHnK5CWC0R8o4sWZA5/ztOhJdas1RJoBBIbAqur ssampRqpAS0RkQgO6Uqs+iMtICsZO9QHQm2aHLg1FoxoRMWMc8wptOBGEMYeb4OzpX0m rnFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=HO5gknIWrU/TJVkoz7zGDVv7k5pnSkpz5KDAVR0I5b0=; b=wrH13whqJO03It1ffmxwhJkMHdJDRVwFcsmUrUXb0Gj/izhze4Lea+jv9NvKPZSwW9 wTWYOO9Tuz4SA79kTuzZgxjej+E8xN03HUDLnSpcLhpZfeso9sZXquhFWk+8/OwO5PYs 6Fv9bo9XdbTHYKz6t469lkOFSP6f5zjEWqbrwA8BUdHaCdYhOGMPQtfMcmjoHFOBjgfL Ph0V2+tOxo3kJFamFxKielk81gH5lEblWx16wFQQHFw5YeihpCuQFUBs95BAB9uZ3/7x mpVcyNzFCjC2+Fg8UvG5y0XGNHIXDJu78JtSR0QLbgzbnmWeGCKa+r8oUa32CKW9xjic x7Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=RaceGKx+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ym1si2386115ejb.263.2019.10.09.20.43.30; Wed, 09 Oct 2019 20:43:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=RaceGKx+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732750AbfJJDnX (ORCPT + 99 others); Wed, 9 Oct 2019 23:43:23 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:57684 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbfJJDnX (ORCPT ); Wed, 9 Oct 2019 23:43:23 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9A3UUDJ109985; Thu, 10 Oct 2019 03:42:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=HO5gknIWrU/TJVkoz7zGDVv7k5pnSkpz5KDAVR0I5b0=; b=RaceGKx+R/h+zvJs6LbkqfdtySSN5FhnkeOS6lRjuGARBLSZRzzoJx1/+zH42WBAGjHv UkbmXJ8HXapD7O4ZXIcvDBsNaamGWzKT24g0Ckx2KjbJHu7Uq2jmgrTed3+wlKaQbASl 990/K5X3FrQS7D7bORZyTGsByeVUnhc4arT6wFZUXpbjHcID2NoWZHlGMtDUIISHGDvq 4UYMOACBPOC6d3gjAxj/aUM4nEaewTV+4HU8+sq5d2iAlMh7yHDB5k61/Y8AB/iOGY/U Eo93NSyoDBbVa907tr5G5NB+FsN6UDsCUkq0x+3cPcTLXnDuJehcOmWuP+6A9IVzYaiQ Rg== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2vektrr62w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Oct 2019 03:42:52 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9A3TFJe137563; Thu, 10 Oct 2019 03:42:51 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2vhhsnu08h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Oct 2019 03:42:51 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x9A3gnoN011627; Thu, 10 Oct 2019 03:42:49 GMT Received: from [192.168.1.222] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 09 Oct 2019 20:42:49 -0700 Subject: Re: [PATCH -next] userfaultfd: remove set but not used variable 'h' To: Wei Yang Cc: 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 References: <20191009122740.70517-1-yuehaibing@huawei.com> <20191010012322.GB2167@richard> <20191010033045.GA5927@richard> From: Mike Kravetz Message-ID: <01601a94-5c52-7ef6-ce08-7a86ac70fab2@oracle.com> Date: Wed, 9 Oct 2019 20:42:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191010033045.GA5927@richard> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9405 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=876 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910100031 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9405 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=931 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910100031 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Mike Kravetz