Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1443356ybm; Thu, 23 May 2019 00:49:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyqsi8B600BmRYlXOjHbmKVt0xUMhbPUIO4rBXCCo4BOId67Z84eXrNWb6cW/OIB6g6Tgy X-Received: by 2002:aa7:9203:: with SMTP id 3mr102909028pfo.123.1558597740523; Thu, 23 May 2019 00:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558597740; cv=none; d=google.com; s=arc-20160816; b=Tt44lTMzC8fVdzFbrsThp//lxOFsb8iFubg2IXloBXQAZCGl5W7yWlyIF+y3Jzh6Dn 2Lp0ioXVmIsAn7+9nEk2U0RmrWzh9p8lNxHt+MWtXvjquoVDWCogzso56QoHO1pKMznf Af0mjTm8vlByJ0G1/Ve+eqHBaHdtCsDiMgYfj1kkRo7JlC6rdSFsztMPwSipG4N96PMP uaJEx/TliZq9LGlOF4FREb2T+5+xm9CY+hCiZ2xqGmO7ByRBMdXyZj6LKTO5AMYYS/Kj nj7ewGIuvmGpVPGQ2t3H9daMJ5jsew+plsUWY/BHluWF1wvqxYhgC34rLdSoGTMcv2W5 iHfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lsgHCa2vpCehpFETQiyNH/o7TEppcQLLkSY0AC+okiA=; b=mOkWYKhEzOxAWTpRfbi3m1KZ4rtiAi8xdC8kHCKaVq7FowzSd4o9EIYll4hsYbEAaH VU3wDzYV6Bkzw39/QqL3r+W0GOxRsge/2O35y59Rqo1uYhUSgm6I1jvaGhdrMnS2XMlG SEq8mwH4mUuP6dQhFxFKnzlrvew98IyeP3TPqTKvhPCDbPWpmcU1oV91njMHxhM8NHlX M7Byq7qmCT63asRqbhvCMyDc/0xiREO2fD52R9A0VejmziXzU/GD0ezXy/trS5KTSfoS /mFEeLmcCL9lXeSMv0BlAlSGZT5c2Dm0sDBZqgbZ3sk3P2HxxrJ45mXha9mikm0EKWWC 8kxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rZj7TWxR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cn10si30618604plb.270.2019.05.23.00.48.42; Thu, 23 May 2019 00:49:00 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rZj7TWxR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729064AbfEWHrS (ORCPT + 99 others); Thu, 23 May 2019 03:47:18 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35296 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbfEWHrS (ORCPT ); Thu, 23 May 2019 03:47:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lsgHCa2vpCehpFETQiyNH/o7TEppcQLLkSY0AC+okiA=; b=rZj7TWxRADhac9Kvvt+/WDl6C bW6EfWL6kkFNW5mJuOaTXt7KeEjdw8yatC1AIV8E8Fk/iGOzC9/YduaBBOeV075273SM4j855TshK ochtlLTCj0BLyFLfQdxrONj6B7772aAOAulInHhxwyayetCdNyiYTD3WgKiLvocCoZ93fHsAfF2w+ jLKzq5/74UJMRNsrMSMeROaCAzWZSw9YBGV/4xDfA/GNO0HGbnMey+PSEUIrFv1P4yvinPeZcxfNa PaB8Ka0MhGFKGoQuM6qj+oSpKH8caqD36jMtEpKVQerx7x1el4lLaHN5HJGWqstYpsdirnZ7r4e4G 6wptVuhgQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTiRC-0003v4-Sr; Thu, 23 May 2019 07:46:54 +0000 Date: Thu, 23 May 2019 00:46:54 -0700 From: Christoph Hellwig To: Christophe Leroy Cc: Qian Cai , benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, aik@ozlabs.ru, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/powernv: fix variable "c" set but not used Message-ID: <20190523074654.GA9873@infradead.org> References: <20190523023141.2973-1-cai@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 23, 2019 at 09:26:53AM +0200, Christophe Leroy wrote: > You are not fixing the problem, you are just hiding it. > > If the result of __get_user() is unneeded, it means __get_user() is not the > good function to use. > > Should use fault_in_pages_readable() instead. Also it is not just the variable that is unused, but that whole function. I'll resend my series to remote it in a bit.