Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3324623ybt; Mon, 29 Jun 2020 23:06:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8HfsusgMaleJj14Lk28kxgwvbyQPmnfOS38/Bd7EpRYHeqbJIjdP/Wo/5bunEKmJKeMR8 X-Received: by 2002:a17:906:408c:: with SMTP id u12mr11400222ejj.162.1593497198660; Mon, 29 Jun 2020 23:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593497198; cv=none; d=google.com; s=arc-20160816; b=HSSkVut7ZwfVbJHu+Rc10QFHF/KahDoi4cEmoputfR4b1MyMqoCtiR/12IOwS/PzBI TF0THptkhm7QU25HYk+8BAUN0PylbUS1vefFtNxbP344oN2MUFQUntpJGhnvTDDz5zY/ 3svRJ7a9MJT3rGwexIXwcN7tnLmW66numgKEAeqIq7HcEY15seonY5/++IqLoeoNJ3Qs voUyZT3GTWdZnErbYlnIh/2vp5MxYgfFHCpL9jRXk78bHcncov3Sr2Tj/UjhCUvbBhDk O53ZWnBq/q0SYKgeTfBrRl31+L8awyRak6YF0EYOOStpNh4eZSyNuKuXsS+90wvQ4C/m IqIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:to:from:date:dkim-signature; bh=EQD1bFwrLDnCLEnmgIyqsRXwmZjYXtc7//XWLwadNSE=; b=Cj501Y/jCrurbyqHroOKAVoQaRK5ZLftEVns2vCBTs0xhXZ2mfPfz8Vl3pw8LP5B5R YKbJlQAsr7oLhoIK/wCJJ1u6DIePUSP3njBQfLD1zO3BJ0G3PuGRQ+A5NEMhsBPUOtki mF8gHr1VzeeJGl49445I2jumcm/67QegvUb9k6QnQDUViseVi/5rUW8T/ZOX5vUVR9f+ zwSvNqygwJAnHSvQn7I1lS98ussi4GoexZj9vMGKrGySOwtMHPLetFz2FNG0ww3uFYCn NKGdqeDmQqLH1tvKPxitpfRazQwls4ENZMWxXDOfBTbaGGRclIBSh5a8GrTQTczbME2h TBBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=foy66+GK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb14si1425139edb.11.2020.06.29.23.06.15; Mon, 29 Jun 2020 23:06:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=foy66+GK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728009AbgF3GDI (ORCPT + 99 others); Tue, 30 Jun 2020 02:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbgF3GDH (ORCPT ); Tue, 30 Jun 2020 02:03:07 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB75C061755 for ; Mon, 29 Jun 2020 23:03:07 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id dp18so19234887ejc.8 for ; Mon, 29 Jun 2020 23:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=EQD1bFwrLDnCLEnmgIyqsRXwmZjYXtc7//XWLwadNSE=; b=foy66+GKYBpuHqY/QElQJV7z2X5WD0AEJ6cPUdaT3FRpJ6tWtKriP6i/hwMww8xFsO QpaygkSG8C5ftwo3TmL4XFdpxUqNfbeOYXxhG2axAWvMfw2uXw5PnvN3b5q0iLHP73Bm EfpKC79geBMGz9Nf0BPZmcZEtlwt6YmrYtM/s0V9E0Uk0e5wLbw+QZQwc+aeXBnTSwSF X0W1OIuyOi4UI8BPOD26eVTIi0RS1J/v+G5+ouSaz0igX5d+4Cq9HmsJFRF3Cb2ppN5y M0N/IY3QKD4zrUPTtKF2x6305e1BCC+mWdTy05yu/6kEEjmaUAjlHIt9nsEYIWAodw9Z FnvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=EQD1bFwrLDnCLEnmgIyqsRXwmZjYXtc7//XWLwadNSE=; b=rQcporL46cXRhFfLBnKF79iRGYsWlXy5PK8842A2nxZmie09CtumS8cNkEu9PQH/g+ h0GtMXr78pH6bFCVRIkTBi1v8XYlc8OjsqOezR6kni45EfT2YINm9Ow1E7h4Zj3bhuAt 1lPRWCTMM5iw3dw9CwPHOueC+OFSmrx+2erNbClGia1etJkCA3uZnlRKJGqkttqwEHJx uTT2KQEklSCCGVpVOFa9zrm8ml2oThTrty3EnNjA7+eZREa4DIxVWnVvzyzbeuQJ/+8G CojDzWtLvk9sSCiR2/ofSUAMcI8d36piSi/QorB6g2Wq4aYGzMW7KvkHIEMMzylEeqRX N2sw== X-Gm-Message-State: AOAM530oNZdxC0jDT8PZlcGIBA8+9UaOR1ozv9N9MXxpFGT0RV8T9BXw KUGnqDOn6iFaZ7UHNDzsljyE4+LQ X-Received: by 2002:a17:906:3282:: with SMTP id 2mr16336199ejw.93.1593496986141; Mon, 29 Jun 2020 23:03:06 -0700 (PDT) Received: from limone.gonsolo.de ([46.114.35.110]) by smtp.gmail.com with ESMTPSA id v27sm1163417ejg.36.2020.06.29.23.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 23:03:05 -0700 (PDT) Date: Tue, 30 Jun 2020 08:03:01 +0200 From: Gon Solo To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, Hawking.Zhang@amd.com, tao.zhou1@amd.com, Dennis.Li@amd.com, guchun.chen@amd.com, tom.stdenis@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Subject: Unused lines Message-ID: <20200630060301.GA108674@limone.gonsolo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! Are the 147MB or 1.6 million(!) lines in drivers/gpu/drm/amd/include/asic_reg really necessary? I grepped a few of them and they don't seem to be used, neither in the kernel nor drm or mesa. As an example I removed one of the unused lines (see the attached patch) and the amdgpu driver seems to build just fine. Cheers, g --+HP7ph2BbKc20aGI Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Remove-unused-line.patch" From 6dbc3e4d129ce46f952c8365f6ca22b2e1aaa33b Mon Sep 17 00:00:00 2001 From: Gon Solo Date: Tue, 30 Jun 2020 07:47:12 +0200 Subject: [PATCH] Remove unused line. --- drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_6_1_sh_mask.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_6_1_sh_mask.h b/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_6_1_sh_mask.h index 29af5167cd00..d45bd18a05dd 100644 --- a/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_6_1_sh_mask.h +++ b/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_6_1_sh_mask.h @@ -24,7 +24,6 @@ // addressBlock: nbio_pcie_pswuscfg0_cfgdecp //PSWUSCFG0_VENDOR_ID -#define PSWUSCFG0_VENDOR_ID__VENDOR_ID__SHIFT 0x0 #define PSWUSCFG0_VENDOR_ID__VENDOR_ID_MASK 0xFFFFL //PSWUSCFG0_DEVICE_ID #define PSWUSCFG0_DEVICE_ID__DEVICE_ID__SHIFT 0x0 -- 2.25.1 --+HP7ph2BbKc20aGI--