dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alex Deucher <alexander.deucher@amd.com>
Cc: "Huang Rui" <ray.huang@amd.com>,
	kbuild-all@lists.01.org, "Morris Zhang" <Shiwu.Zhang@amd.com>,
	dri-devel@lists.freedesktop.org,
	"Christian König" <christian.koenig@amd.com>
Subject: [radeon-alex:amd-20.45 2349/2427] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten
Date: Tue, 15 Dec 2020 14:03:06 +0800	[thread overview]
Message-ID: <202012151404.grihdg4t-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5442 bytes --]

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head:   a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: 353801e46ab9f255e45bff91e185580df75787c0 [2349/2427] drm/amdgpu/gmc9: print client id string for mmhub
config: i386-randconfig-r022-20201214 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex amd-20.45
        git checkout 353801e46ab9f255e45bff91e185580df75787c0
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten [-Woverride-init]
     272 |  [32+15][1] = "SDMA1",
         |               ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: note: (near initialization for 'mmhub_client_ids_arcturus[47][1]')
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:383:23: warning: 'ecc_umc_mcumc_status_addrs' defined but not used [-Wunused-const-variable=]
     383 | static const uint32_t ecc_umc_mcumc_status_addrs[] = {
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:22,
                    from <command-line>:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:198:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
     198 | static const bool no_system_mem_limit;
         |                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:197:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
     197 | static const bool debug_evictions; /* = false */
         |                   ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:196:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
     196 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
         |                  ^~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/display/dc/dc_types.h:33,
                    from drivers/gpu/drm/amd/display/dc/dm_services_types.h:30,
                    from drivers/gpu/drm/amd/include/dm_pp_interface.h:26,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:64,
                    from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:22,
                    from <command-line>:
   drivers/gpu/drm/amd/display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
      76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
         |                                ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
      75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
         |                                ^~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
      74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
         |                                ^~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
      73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
         |                                ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
      72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
         |                                ^~~~~~~~~~~

vim +272 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

   242	
   243	static const char *mmhub_client_ids_arcturus[][2] = {
   244		[2][0] = "MP1",
   245		[3][0] = "MP0",
   246		[10][0] = "UTCL2",
   247		[13][0] = "OSS",
   248		[14][0] = "HDP",
   249		[15][0] = "SDMA0",
   250		[32+15][0] = "SDMA1",
   251		[64+15][0] = "SDMA2",
   252		[96+15][0] = "SDMA3",
   253		[128+15][0] = "SDMA4",
   254		[160+11][0] = "JPEG",
   255		[160+12][0] = "VCN",
   256		[160+13][0] = "VCNU",
   257		[160+15][0] = "SDMA5",
   258		[192+10][0] = "UTCL2",
   259		[192+11][0] = "JPEG1",
   260		[192+12][0] = "VCN1",
   261		[192+13][0] = "VCN1U",
   262		[192+15][0] = "SDMA6",
   263		[224+15][0] = "SDMA7",
   264		[0][1] = "DBGU1",
   265		[1][1] = "XDP",
   266		[2][1] = "MP1",
   267		[3][1] = "MP0",
   268		[13][1] = "OSS",
   269		[14][1] = "HDP",
   270		[15][1] = "SDMA0",
   271		[32+15][1] = "SDMA1",
 > 272		[32+15][1] = "SDMA1",
   273		[64+15][1] = "SDMA2",
   274		[96+15][1] = "SDMA3",
   275		[128+15][1] = "SDMA4",
   276		[160+11][1] = "JPEG",
   277		[160+12][1] = "VCN",
   278		[160+13][1] = "VCNU",
   279		[160+15][1] = "SDMA5",
   280		[192+11][1] = "JPEG1",
   281		[192+12][1] = "VCN1",
   282		[192+13][1] = "VCN1U",
   283		[192+15][1] = "SDMA6",
   284		[224+15][1] = "SDMA7",
   285	};
   286	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39791 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

                 reply	other threads:[~2020-12-15  6:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202012151404.grihdg4t-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Shiwu.Zhang@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kbuild-all@lists.01.org \
    --cc=ray.huang@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox