Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp923586imp; Thu, 21 Feb 2019 14:13:57 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia2PHKNCgrLtwkoSq/4dnBfy29v7ESms1r1GiLqxlEjxzZgNL3FUPJg3CjyOAV0zPS0vkeK X-Received: by 2002:a62:b2c3:: with SMTP id z64mr754715pfl.149.1550787237296; Thu, 21 Feb 2019 14:13:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550787237; cv=none; d=google.com; s=arc-20160816; b=wlLye2/qEg2jOtnaQahII/8Rc4PBUaU3w5Ys8RY40wzC3zeJxToZP2r58OcDs0OjQT 1m479p9Ya6OQQXdpe19I/Wzvt4YOe4nuHWEuDQVeezrS9w5MT33XIzWis4v+MnSeyxki IMb5CGpNzFpUn2XaS+fUeI9TDVgWx/uX8rF6mQe8SPjv15aWE02eaxW9MYplQs34HESd e8Ea1wZ17Dex2/wN0yYnkkNefMuEmlHIbs63zPm35i2kEH457qC2vHH3dusQCM+b8L1V P7pzTEhI9vgIk+xzpYTOjiX5HOdfF2cNjV45dtXDvZ9K2zwx9jj3YMbBYqZ9y7/Sl4py 0dZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Wh9U7l2j1lF38xxfqEcbjWAI0IpOW2YbfcsENlJfd0g=; b=RV8/ZIwDxXD0vfaCy1a0HYMTr5v+BqqnvH/m8d66N4bAVjOfoXI9K3dZ/4BI1ER6To NqYSSO8wTGSWCghFcUXblIrMBt1JJi26Sz5vhrchP3mW/LBYNiNDtfbwHKWsd1BDAvby 7VlYtC0wKej9laJeO5cjVGc1ZPwC5L4VnbPGJyNUK9QIdgw06CFAZweu+jl52GbYFa8H 24D+bTfGJk9gtPfkyNJT5jKAHWXC45ybb7xLBcfwsbVf8xwVHi1l0E+cHNvVYSvSaL2w geofr+QumLjyE3kjZZCg96ULgEMs9hQxwvPnRwNyK1JX/COms8Niv1ij/RoSv0d6wnNH GUCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fe1FzOC+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si3272pgw.380.2019.02.21.14.13.40; Thu, 21 Feb 2019 14:13:57 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Fe1FzOC+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726694AbfBUWL6 (ORCPT + 99 others); Thu, 21 Feb 2019 17:11:58 -0500 Received: from mail-vk1-f194.google.com ([209.85.221.194]:37321 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfBUWL6 (ORCPT ); Thu, 21 Feb 2019 17:11:58 -0500 Received: by mail-vk1-f194.google.com with SMTP id 17so51979vkf.4; Thu, 21 Feb 2019 14:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wh9U7l2j1lF38xxfqEcbjWAI0IpOW2YbfcsENlJfd0g=; b=Fe1FzOC+/S+BB2b3eh4mAJQwaarfwrVsOjI3D8WBa9mnbivNI4GIHRGyQ571mlCDci Ea2/mBvu2GjS09IsOcl9xG5bbJi1pqvYB7Hu7Abmyhz+/gfBAIH1YnJ+u54Gxv8rWhup Pns3toG+Z95EyKYlGKSA05TfrR3A01sMONBnKZLYEEsjt5h/DwRBPTwRhmliC7nGUpeU bNtyx40w9oeV7x1h1g+nVV8c4dEuymyMfE/Dd8ZH8+rnotqsSdriZKgQ+N2BRTiAtv2C eCRZW4Kt5qvx28Ns47v+Hw+1aclHmXNVcMlnP60J75rgwVkPQXbBBHHFw4BSFVGARU72 mRvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wh9U7l2j1lF38xxfqEcbjWAI0IpOW2YbfcsENlJfd0g=; b=UAj83//uAZQb2F0znPqD+OPF6J9oajPNOcvA0+scHv17JjHs6FJmjN3GL1QTD+dLYu 26j8o69xDDxdI41V4ycEUdMafOzz1qDK4ny3pAHoNHl0t6IfzzcbOuBlBwP1Nc2GQxsj VDQSknxMZC4Tbi5XxAPOQ5zZIp6c5Q3RPAGKTdGU0Jmv3M+LZOJgnfBLW+FAdl0H3O2M e1dH7NgUGx5Yc5OrvtUAgsbcBY4P3CFc9Mr9bBTGwBrYom6rF72Ll9Z4kc0VoIvUxDhe gKBIz0l+Z4gglazhGWwb7PobNO+IEjqezWMObLv9XNOK+/ma/DomLSCtAFvGtgFwzjMM 0apw== X-Gm-Message-State: AHQUAub7ogr7E4k0KwNTGOb+4OqKncvnu21VuIjl8mr0ru5DiLYw89sG n68C3ayRGKBU+HC5VoPrf3Avf0HfAQV709qbvC8= X-Received: by 2002:a1f:ccc4:: with SMTP id c187mr512979vkg.90.1550787117160; Thu, 21 Feb 2019 14:11:57 -0800 (PST) MIME-Version: 1.0 References: <20190221033851.70331-1-yuehaibing@huawei.com> In-Reply-To: <20190221033851.70331-1-yuehaibing@huawei.com> From: Ben Skeggs Date: Fri, 22 Feb 2019 08:11:02 +1000 Message-ID: Subject: Re: [Nouveau] [PATCH -next] drm/nouveau/dmem: remove set but not used variable 'drm' To: YueHaibing Cc: Ben Skeggs , David Airlie , Daniel Vetter , nouveau@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Feb 2019 at 13:41, YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/nouveau/nouveau_dmem.c: In function 'nouveau_dmem_free': > drivers/gpu/drm/nouveau/nouveau_dmem.c:103:22: warning: > variable 'drm' set but not used [-Wunused-but-set-variable] > struct nouveau_drm *drm; > ^ Thanks! Merged. > > Signed-off-by: YueHaibing > --- > drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_dmem.c b/drivers/gpu/drm/nouveau/nouveau_dmem.c > index aa9fec80492d..900a302b7ce9 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_dmem.c > +++ b/drivers/gpu/drm/nouveau/nouveau_dmem.c > @@ -100,12 +100,10 @@ static void > nouveau_dmem_free(struct hmm_devmem *devmem, struct page *page) > { > struct nouveau_dmem_chunk *chunk; > - struct nouveau_drm *drm; > unsigned long idx; > > chunk = (void *)hmm_devmem_page_get_drvdata(page); > idx = page_to_pfn(page) - chunk->pfn_first; > - drm = chunk->drm; > > /* > * FIXME: > > > > > > _______________________________________________ > Nouveau mailing list > Nouveau@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/nouveau