Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp971593ybz; Sat, 25 Apr 2020 08:13:04 -0700 (PDT) X-Google-Smtp-Source: APiQypIVLs1rf7Dz8AyEMxlmd+gh62UnVH+oN9KHr7C+pg1DUM7/jp1soYHRn8oOtKcSlTyhkF0v X-Received: by 2002:a50:d942:: with SMTP id u2mr12103386edj.116.1587827584221; Sat, 25 Apr 2020 08:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587827584; cv=none; d=google.com; s=arc-20160816; b=s0c3m5f1mWVW3BFcwRKO17LDheYyHJCjvMB7ICzVoZqi6RM7EfPxgMrggcr+Feq5vN 1kAGPVl3kgWnqqAV1DIKfwAsUsir0u5ptQQF7dzQ1Qzq8Lx6VwsyXA1jxOK+kwXYx5Re TfRfUsTRVW5DiErM6FTEYhJaPS8MoNquw0uDs5E6RGJTxzQsw67dRhHr165y9uBew1hx q0ljZCvJJoemaO7bXL1BYsR11uqZC+Ch1i1iH/HVooX45/nUr1O3Ti+v0nLU4abLZSDp YBhatxiHbi42xPCT3J8RRWVSOghFJ4+MAox9jEuJAPSmkYag7S1UDaWcZFjXPloB6xm0 ovjQ== 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; bh=638CkRUrb0mWost4gwRMVRq+Y5BCZeu/s2qtQjAdAO8=; b=jzomBtFAeE2Hn97jYxHyzPUeaCU+N5Wbe0tuRhu1/rW7WQFNQPrOf+NaLY1eUqRLlw s6RTv9mZ+YsDNbyXnbH5+kFRHs061PJN3KoIh/SELWI4DaH4gXnci+z+4XNH4/bCCa1M +w8tWqUmbCy6+3SyxSQhG36EdSY7qJ0hjOEu15ZVhNWcQXIbd1B7Sbgwn4G2mk79a7VU R+0aGIXtJwNyFXMfg0D+qPMk/DdY80oYhNFOw1pDBIftHbchlSuTGR313430zjZ3ZeiS 7M2PpRi2BMM8BFX1aOpL708/eE8hnMFe0IgsI3NoqMiUnWnoxtA16Smiody/TbZMXtfl HU5A== 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 p1si5126427ejw.313.2020.04.25.08.12.39; Sat, 25 Apr 2020 08:13:04 -0700 (PDT) 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 S1726113AbgDYPLM (ORCPT + 99 others); Sat, 25 Apr 2020 11:11:12 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:45748 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgDYPLM (ORCPT ); Sat, 25 Apr 2020 11:11:12 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (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 E7A392007A; Sat, 25 Apr 2020 17:11:08 +0200 (CEST) Date: Sat, 25 Apr 2020 17:11:07 +0200 From: Sam Ravnborg To: Souptick Joarder Cc: adaplas@gmail.com, b.zolnierkie@samsung.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] video/fbdev/riva: Remove dead code Message-ID: <20200425151107.GH32235@ravnborg.org> References: <1587407244-32574-1-git-send-email-jrdr.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1587407244-32574-1-git-send-email-jrdr.linux@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=ULXz4hXy c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=e5mUnYsNAAAA:8 a=O4SDoXPlVXmpIDEQGbEA:9 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Souptick On Mon, Apr 20, 2020 at 11:57:24PM +0530, Souptick Joarder wrote: > These are dead code since 3.15. These can be removed forever if no > plan to use it further. > > Signed-off-by: Souptick Joarder Thanks. Patch applied to drm-misc-next. It will appear in mianline kernel in next merge window. Sam > --- > drivers/video/fbdev/riva/riva_hw.c | 18 ------------------ > 1 file changed, 18 deletions(-) > > diff --git a/drivers/video/fbdev/riva/riva_hw.c b/drivers/video/fbdev/riva/riva_hw.c > index 0601c13..08c9ee4 100644 > --- a/drivers/video/fbdev/riva/riva_hw.c > +++ b/drivers/video/fbdev/riva/riva_hw.c > @@ -1343,24 +1343,6 @@ static char nv3_get_param(nv3_fifo_info *res_info, nv3_sim_state * state, nv3_ar > /* > * Load fixed function state and pre-calculated/stored state. > */ > -#if 0 > -#define LOAD_FIXED_STATE(tbl,dev) \ > - for (i = 0; i < sizeof(tbl##Table##dev)/8; i++) \ > - chip->dev[tbl##Table##dev[i][0]] = tbl##Table##dev[i][1] > -#define LOAD_FIXED_STATE_8BPP(tbl,dev) \ > - for (i = 0; i < sizeof(tbl##Table##dev##_8BPP)/8; i++) \ > - chip->dev[tbl##Table##dev##_8BPP[i][0]] = tbl##Table##dev##_8BPP[i][1] > -#define LOAD_FIXED_STATE_15BPP(tbl,dev) \ > - for (i = 0; i < sizeof(tbl##Table##dev##_15BPP)/8; i++) \ > - chip->dev[tbl##Table##dev##_15BPP[i][0]] = tbl##Table##dev##_15BPP[i][1] > -#define LOAD_FIXED_STATE_16BPP(tbl,dev) \ > - for (i = 0; i < sizeof(tbl##Table##dev##_16BPP)/8; i++) \ > - chip->dev[tbl##Table##dev##_16BPP[i][0]] = tbl##Table##dev##_16BPP[i][1] > -#define LOAD_FIXED_STATE_32BPP(tbl,dev) \ > - for (i = 0; i < sizeof(tbl##Table##dev##_32BPP)/8; i++) \ > - chip->dev[tbl##Table##dev##_32BPP[i][0]] = tbl##Table##dev##_32BPP[i][1] > -#endif > - > #define LOAD_FIXED_STATE(tbl,dev) \ > for (i = 0; i < sizeof(tbl##Table##dev)/8; i++) \ > NV_WR32(&chip->dev[tbl##Table##dev[i][0]], 0, tbl##Table##dev[i][1]) > -- > 1.9.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel