Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp608584pxb; Thu, 12 Nov 2020 11:35:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7q+anYcBO+6RkRbeiPlJ/LKNJ8VfquB5zIHO5phIlJfWRyue6gUbQHEmLimGEOZNvU7ll X-Received: by 2002:aa7:d502:: with SMTP id y2mr1556053edq.120.1605209710238; Thu, 12 Nov 2020 11:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605209710; cv=none; d=google.com; s=arc-20160816; b=aIBx3KRc4f7ivpVXx1TM87YhL3fd/7IYz/ZlgM/gdxbT4YtAX0gf0QjYbTgIpXMIPX tTVjBGYdtFmyylH77yZH0ggQpS0bdHNhO+Gc8AyH1vw6bNADEfHeRtA9Um58QOCsxrGi 6aIW9z4lCKYwoSPe81NFVZfG0N1RjblxJFhIrHji2aNN10x97FJqVsYIGwu3xvGXkU25 Z1V4FY1rM2xpuZXN8pbR5AyzQvmvAmbAQ8ZcXygGyIyuWHN1J4EB5YVONUX6fOKxv3Zn ybSvftV7seJNVsUQFyzjGH10LjEYFOV0ahzV2mgPXe6U+RPO2bm/6i/34GqsDRUeu/xy dvdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AcqaPMRJFzERZDNeBxpuoOyN5GQO7raeRt71BeXljw8=; b=jig5SU9BBkIbit9X3FAL6vRAMgO9gE40MJkT1Pvnxfz37Vh1EfZP29axcpuDaX+8oi W0w2fY/mZ1Ndb30RFHjJbltngjHg1ADxjrCih4ZE1Cp8cIpNIWyDnZGtgl+2bmQmuBAx /iH2MyIgfxFWQX/KWAiao3aUghVE99b4jLuZqLijFr4P62yWwmjkXAAoR73GXkN/Ld6A l+X+RL+RAItzmX6/HeKCFioqb8w+Zur+1yXyWL2HWxYpjFUC/hG/YW+iF0A0TaZxN7oy S1GrJlt1O7wyHFSixQbY94M75Au9D5/CuKoFx72dEm/LSGYB1L4nVZkLyjsLKxJsYn6y iQIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr7si4699976ejb.592.2020.11.12.11.34.46; Thu, 12 Nov 2020 11:35:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726807AbgKLTbQ (ORCPT + 99 others); Thu, 12 Nov 2020 14:31:16 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:41996 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726648AbgKLTbQ (ORCPT ); Thu, 12 Nov 2020 14:31:16 -0500 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 55E4320026; Thu, 12 Nov 2020 20:31:14 +0100 (CET) Date: Thu, 12 Nov 2020 20:31:13 +0100 From: Sam Ravnborg To: Lee Jones Cc: David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/30] drm/savage/savage_bci: Remove set but never used 'aper_rsrc' and 'fb_rsrc' Message-ID: <20201112193113.GD3287572@ravnborg.org> References: <20201112190039.2785914-1-lee.jones@linaro.org> <20201112190039.2785914-2-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201112190039.2785914-2-lee.jones@linaro.org> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VbvZwmh9 c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=IkcTkHD0fZMA:10 a=e5mUnYsNAAAA:8 a=KKAkSRfTAAAA:8 a=lw-3Ehi1VaNlIoHz8JQA:9 a=QEXdDO2ut3YA:10 a=Vxmtnl_E_bksehYqCbjh:22 a=cvBusfyB2V15izCimMoJ:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 07:00:10PM +0000, Lee Jones wrote: > The comment about them (also removed) says: > > /* fb_rsrc and aper_rsrc aren't really used currently, but still exist > * in case we decide we need information on the BAR for BSD in the > * future. > */ > > Well that was written 12 years ago in 2008. We are now in the future > and they are still superfluous. We can always add them again at a > later date if they are ever required. > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/savage/savage_bci.c: In function ‘savage_driver_firstopen’: > drivers/gpu/drm/savage/savage_bci.c:580:24: warning: variable ‘aper_rsrc’ set but not used [-Wunused-but-set-variable] > drivers/gpu/drm/savage/savage_bci.c:580:15: warning: variable ‘fb_rsrc’ set but not used [-Wunused-but-set-variable] > > Cc: David Airlie > Cc: Daniel Vetter > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones > --- Thanks, applied to drm-misc-next. Sam