All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 12245/12292] drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used
Date: Sun, 12 Sep 2021 10:27:10 +0800	[thread overview]
Message-ID: <202109121057.3DN4yPBN-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   aa14a3016182213f022068500486ef3bcacb9006
commit: 00c686d94e7544afffe9b42d21834977cbd14359 [12245/12292] Merge remote-tracking branch 'amdgpu/drm-next'
config: arm-randconfig-r005-20210910 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=00c686d94e7544afffe9b42d21834977cbd14359
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 00c686d94e7544afffe9b42d21834977cbd14359
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:35:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function 'dce_aux_transfer_with_retries':
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:775:156: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
     775 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER");
         |                                                                                                                                                            ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:783:155: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
     783 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK");
         |                                                                                                                                                           ^
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../dmub_srv.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../dmub_srv.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn31.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn31.c:30:
   At top level:
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:181:29: error: 'VCN_BASE' defined but not used [-Werror=unused-const-variable=]
     181 | static const struct IP_BASE VCN_BASE = { { { { 0x00007800, 0x00007E00, 0x02403000, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:174:29: error: 'UMC_BASE' defined but not used [-Werror=unused-const-variable=]
     174 | static const struct IP_BASE UMC_BASE = { { { { 0x00014000, 0x00054000, 0x02425800, 0x02425C00, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:167:29: error: 'THM_BASE' defined but not used [-Werror=unused-const-variable=]
     167 | static const struct IP_BASE THM_BASE = { { { { 0x00016600, 0x02400C00, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:160:29: error: 'SMUIO_BASE' defined but not used [-Werror=unused-const-variable=]
     160 | static const struct IP_BASE SMUIO_BASE = { { { { 0x00016800, 0x00016A00, 0x02401000, 0x00440000, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:153:29: error: 'SDMA0_BASE' defined but not used [-Werror=unused-const-variable=]
     153 | static const struct IP_BASE SDMA0_BASE = { { { { 0x00001260, 0x0000A000, 0x02402C00, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:146:29: error: 'PCIE_BASE' defined but not used [-Werror=unused-const-variable=]
     146 | static const struct IP_BASE PCIE_BASE = { { { { 0x02411800, 0x04440000, 0, 0, 0, 0 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:139:29: error: 'OSSSYS_BASE' defined but not used [-Werror=unused-const-variable=]
     139 | static const struct IP_BASE OSSSYS_BASE = { { { { 0x000010A0, 0x0240A000, 0, 0, 0, 0 } },
         |                             ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:132:29: error: 'NBIO_BASE' defined but not used [-Werror=unused-const-variable=]
     132 | static const struct IP_BASE NBIO_BASE = { { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0x0241B000, 0x04040000 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:125:29: error: 'MP2_BASE' defined but not used [-Werror=unused-const-variable=]
     125 | static const struct IP_BASE MP2_BASE = { { { { 0x00016000, 0x0243FC00, 0x00DC0000, 0x00E00000, 0x00E40000, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:118:29: error: 'MP1_BASE' defined but not used [-Werror=unused-const-variable=]
     118 | static const struct IP_BASE MP1_BASE = { { { { 0x00016000, 0x0243FC00, 0x00DC0000, 0x00E00000, 0x00E40000, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:111:29: error: 'MP0_BASE' defined but not used [-Werror=unused-const-variable=]
     111 | static const struct IP_BASE MP0_BASE = { { { { 0x00016000, 0x0243FC00, 0x00DC0000, 0x00E00000, 0x00E40000, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:104:29: error: 'MMHUB_BASE' defined but not used [-Werror=unused-const-variable=]
     104 | static const struct IP_BASE MMHUB_BASE = { { { { 0x00013200, 0x0001A000, 0x02408800, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:97:29: error: 'IOHC0_BASE' defined but not used [-Werror=unused-const-variable=]
      97 | static const struct IP_BASE IOHC0_BASE = { { { { 0x00010000, 0x02406000, 0x04EC0000, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:90:29: error: 'HDP_BASE' defined but not used [-Werror=unused-const-variable=]
      90 | static const struct IP_BASE HDP_BASE = { { { { 0x00000F20, 0x0240A400, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:83:29: error: 'GC_BASE' defined but not used [-Werror=unused-const-variable=]
      83 | static const struct IP_BASE GC_BASE = { { { { 0x00001260, 0x0000A000, 0x02402C00, 0, 0, 0 } },
         |                             ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:76:29: error: 'FUSE_BASE' defined but not used [-Werror=unused-const-variable=]
      76 | static const struct IP_BASE FUSE_BASE = { { { { 0x00017400, 0x02401400, 0, 0, 0, 0 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:69:29: error: 'FCH_BASE' defined but not used [-Werror=unused-const-variable=]
      69 | static const struct IP_BASE FCH_BASE = { { { { 0x0240C000, 0x00B40000, 0x11000000, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:62:29: error: 'DF_BASE' defined but not used [-Werror=unused-const-variable=]
      62 | static const struct IP_BASE DF_BASE = { { { { 0x00007000, 0x0240B800, 0x02447800, 0x00C00000, 0x03640000, 0 } },
         |                             ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:55:29: error: 'DPCS_BASE' defined but not used [-Werror=unused-const-variable=]
      55 | static const struct IP_BASE DPCS_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:48:29: error: 'DCN_BASE' defined but not used [-Werror=unused-const-variable=]
      48 | static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:41:29: error: 'DBGU_IO_BASE' defined but not used [-Werror=unused-const-variable=]
      41 | static const struct IP_BASE DBGU_IO_BASE = { { { { 0x000001E0, 0x00000260, 0x00000280, 0x0240B400, 0x02413C00, 0x02416000 } },
         |                             ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:34:29: error: 'CLK_BASE' defined but not used [-Werror=unused-const-variable=]
      34 | static const struct IP_BASE CLK_BASE = { { { { 0x00016C00, 0x02401800, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:27:29: error: 'ATHUB_BASE' defined but not used [-Werror=unused-const-variable=]
      27 | static const struct IP_BASE ATHUB_BASE = { { { { 0x00000C00, 0x00013300, 0x02408C00, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:20:29: error: 'ACP_BASE' defined but not used [-Werror=unused-const-variable=]
      20 | static const struct IP_BASE ACP_BASE = { { { { 0x02403800, 0x00480000, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   cc1: all warnings being treated as errors


vim +/temp +2655 drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h

84034ad4c0c0813c Anthony Koo 2020-05-15  2638  
592a631883fdaa3e Anthony Koo 2021-03-08  2639  /**
592a631883fdaa3e Anthony Koo 2021-03-08  2640   * @brief Flushes commands in the ringbuffer to framebuffer memory.
592a631883fdaa3e Anthony Koo 2021-03-08  2641   *
592a631883fdaa3e Anthony Koo 2021-03-08  2642   * Avoids a race condition where DMCUB accesses memory while
592a631883fdaa3e Anthony Koo 2021-03-08  2643   * there are still writes in flight to framebuffer.
592a631883fdaa3e Anthony Koo 2021-03-08  2644   *
592a631883fdaa3e Anthony Koo 2021-03-08  2645   * @param rb DMUB ringbuffer
592a631883fdaa3e Anthony Koo 2021-03-08  2646   */
84034ad4c0c0813c Anthony Koo 2020-05-15  2647  static inline void dmub_rb_flush_pending(const struct dmub_rb *rb)
84034ad4c0c0813c Anthony Koo 2020-05-15  2648  {
84034ad4c0c0813c Anthony Koo 2020-05-15  2649  	uint32_t rptr = rb->rptr;
84034ad4c0c0813c Anthony Koo 2020-05-15  2650  	uint32_t wptr = rb->wrpt;
84034ad4c0c0813c Anthony Koo 2020-05-15  2651  
84034ad4c0c0813c Anthony Koo 2020-05-15  2652  	while (rptr != wptr) {
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2653  		uint64_t volatile *data = (uint64_t volatile *)rb->base_address + rptr / sizeof(uint64_t);
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2654  		//uint64_t volatile *p = (uint64_t volatile *)data;
3a9d5b0b5301fb99 Anthony Koo 2021-08-14 @2655  		uint64_t temp;
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2656  		uint8_t i;
84034ad4c0c0813c Anthony Koo 2020-05-15  2657  
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2658  		for (i = 0; i < DMUB_RB_CMD_SIZE / sizeof(uint64_t); i++)
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2659  			temp = *data++;
84034ad4c0c0813c Anthony Koo 2020-05-15  2660  
84034ad4c0c0813c Anthony Koo 2020-05-15  2661  		rptr += DMUB_RB_CMD_SIZE;
84034ad4c0c0813c Anthony Koo 2020-05-15  2662  		if (rptr >= rb->capacity)
84034ad4c0c0813c Anthony Koo 2020-05-15  2663  			rptr %= rb->capacity;
84034ad4c0c0813c Anthony Koo 2020-05-15  2664  	}
84034ad4c0c0813c Anthony Koo 2020-05-15  2665  }
84034ad4c0c0813c Anthony Koo 2020-05-15  2666  

:::::: The code at line 2655 was first introduced by commit
:::::: 3a9d5b0b5301fb992554ee93ae34fe91771e6434 drm/amd/display: [FW Promotion] Release 0.0.80

:::::: TO: Anthony Koo <Anthony.Koo@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

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

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Alex Deucher <alexander.deucher@amd.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 12245/12292] drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used
Date: Sun, 12 Sep 2021 10:27:10 +0800	[thread overview]
Message-ID: <202109121057.3DN4yPBN-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   aa14a3016182213f022068500486ef3bcacb9006
commit: 00c686d94e7544afffe9b42d21834977cbd14359 [12245/12292] Merge remote-tracking branch 'amdgpu/drm-next'
config: arm-randconfig-r005-20210910 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=00c686d94e7544afffe9b42d21834977cbd14359
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 00c686d94e7544afffe9b42d21834977cbd14359
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:35:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function 'dce_aux_transfer_with_retries':
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:775:156: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
     775 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER");
         |                                                                                                                                                            ^
   drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:783:155: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
     783 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK");
         |                                                                                                                                                           ^
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../dmub_srv.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   cc1: all warnings being treated as errors
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../dmub_srv.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn31.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/src/../inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
    2655 |                 uint64_t temp;
         |                          ^~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn31.c:30:
   At top level:
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:181:29: error: 'VCN_BASE' defined but not used [-Werror=unused-const-variable=]
     181 | static const struct IP_BASE VCN_BASE = { { { { 0x00007800, 0x00007E00, 0x02403000, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:174:29: error: 'UMC_BASE' defined but not used [-Werror=unused-const-variable=]
     174 | static const struct IP_BASE UMC_BASE = { { { { 0x00014000, 0x00054000, 0x02425800, 0x02425C00, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:167:29: error: 'THM_BASE' defined but not used [-Werror=unused-const-variable=]
     167 | static const struct IP_BASE THM_BASE = { { { { 0x00016600, 0x02400C00, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:160:29: error: 'SMUIO_BASE' defined but not used [-Werror=unused-const-variable=]
     160 | static const struct IP_BASE SMUIO_BASE = { { { { 0x00016800, 0x00016A00, 0x02401000, 0x00440000, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:153:29: error: 'SDMA0_BASE' defined but not used [-Werror=unused-const-variable=]
     153 | static const struct IP_BASE SDMA0_BASE = { { { { 0x00001260, 0x0000A000, 0x02402C00, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:146:29: error: 'PCIE_BASE' defined but not used [-Werror=unused-const-variable=]
     146 | static const struct IP_BASE PCIE_BASE = { { { { 0x02411800, 0x04440000, 0, 0, 0, 0 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:139:29: error: 'OSSSYS_BASE' defined but not used [-Werror=unused-const-variable=]
     139 | static const struct IP_BASE OSSSYS_BASE = { { { { 0x000010A0, 0x0240A000, 0, 0, 0, 0 } },
         |                             ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:132:29: error: 'NBIO_BASE' defined but not used [-Werror=unused-const-variable=]
     132 | static const struct IP_BASE NBIO_BASE = { { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0x0241B000, 0x04040000 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:125:29: error: 'MP2_BASE' defined but not used [-Werror=unused-const-variable=]
     125 | static const struct IP_BASE MP2_BASE = { { { { 0x00016000, 0x0243FC00, 0x00DC0000, 0x00E00000, 0x00E40000, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:118:29: error: 'MP1_BASE' defined but not used [-Werror=unused-const-variable=]
     118 | static const struct IP_BASE MP1_BASE = { { { { 0x00016000, 0x0243FC00, 0x00DC0000, 0x00E00000, 0x00E40000, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:111:29: error: 'MP0_BASE' defined but not used [-Werror=unused-const-variable=]
     111 | static const struct IP_BASE MP0_BASE = { { { { 0x00016000, 0x0243FC00, 0x00DC0000, 0x00E00000, 0x00E40000, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:104:29: error: 'MMHUB_BASE' defined but not used [-Werror=unused-const-variable=]
     104 | static const struct IP_BASE MMHUB_BASE = { { { { 0x00013200, 0x0001A000, 0x02408800, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:97:29: error: 'IOHC0_BASE' defined but not used [-Werror=unused-const-variable=]
      97 | static const struct IP_BASE IOHC0_BASE = { { { { 0x00010000, 0x02406000, 0x04EC0000, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:90:29: error: 'HDP_BASE' defined but not used [-Werror=unused-const-variable=]
      90 | static const struct IP_BASE HDP_BASE = { { { { 0x00000F20, 0x0240A400, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:83:29: error: 'GC_BASE' defined but not used [-Werror=unused-const-variable=]
      83 | static const struct IP_BASE GC_BASE = { { { { 0x00001260, 0x0000A000, 0x02402C00, 0, 0, 0 } },
         |                             ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:76:29: error: 'FUSE_BASE' defined but not used [-Werror=unused-const-variable=]
      76 | static const struct IP_BASE FUSE_BASE = { { { { 0x00017400, 0x02401400, 0, 0, 0, 0 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:69:29: error: 'FCH_BASE' defined but not used [-Werror=unused-const-variable=]
      69 | static const struct IP_BASE FCH_BASE = { { { { 0x0240C000, 0x00B40000, 0x11000000, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:62:29: error: 'DF_BASE' defined but not used [-Werror=unused-const-variable=]
      62 | static const struct IP_BASE DF_BASE = { { { { 0x00007000, 0x0240B800, 0x02447800, 0x00C00000, 0x03640000, 0 } },
         |                             ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:55:29: error: 'DPCS_BASE' defined but not used [-Werror=unused-const-variable=]
      55 | static const struct IP_BASE DPCS_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0 } },
         |                             ^~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:48:29: error: 'DCN_BASE' defined but not used [-Werror=unused-const-variable=]
      48 | static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:41:29: error: 'DBGU_IO_BASE' defined but not used [-Werror=unused-const-variable=]
      41 | static const struct IP_BASE DBGU_IO_BASE = { { { { 0x000001E0, 0x00000260, 0x00000280, 0x0240B400, 0x02413C00, 0x02416000 } },
         |                             ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:34:29: error: 'CLK_BASE' defined but not used [-Werror=unused-const-variable=]
      34 | static const struct IP_BASE CLK_BASE = { { { { 0x00016C00, 0x02401800, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:27:29: error: 'ATHUB_BASE' defined but not used [-Werror=unused-const-variable=]
      27 | static const struct IP_BASE ATHUB_BASE = { { { { 0x00000C00, 0x00013300, 0x02408C00, 0, 0, 0 } },
         |                             ^~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:20:29: error: 'ACP_BASE' defined but not used [-Werror=unused-const-variable=]
      20 | static const struct IP_BASE ACP_BASE = { { { { 0x02403800, 0x00480000, 0, 0, 0, 0 } },
         |                             ^~~~~~~~
   cc1: all warnings being treated as errors


vim +/temp +2655 drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h

84034ad4c0c0813c Anthony Koo 2020-05-15  2638  
592a631883fdaa3e Anthony Koo 2021-03-08  2639  /**
592a631883fdaa3e Anthony Koo 2021-03-08  2640   * @brief Flushes commands in the ringbuffer to framebuffer memory.
592a631883fdaa3e Anthony Koo 2021-03-08  2641   *
592a631883fdaa3e Anthony Koo 2021-03-08  2642   * Avoids a race condition where DMCUB accesses memory while
592a631883fdaa3e Anthony Koo 2021-03-08  2643   * there are still writes in flight to framebuffer.
592a631883fdaa3e Anthony Koo 2021-03-08  2644   *
592a631883fdaa3e Anthony Koo 2021-03-08  2645   * @param rb DMUB ringbuffer
592a631883fdaa3e Anthony Koo 2021-03-08  2646   */
84034ad4c0c0813c Anthony Koo 2020-05-15  2647  static inline void dmub_rb_flush_pending(const struct dmub_rb *rb)
84034ad4c0c0813c Anthony Koo 2020-05-15  2648  {
84034ad4c0c0813c Anthony Koo 2020-05-15  2649  	uint32_t rptr = rb->rptr;
84034ad4c0c0813c Anthony Koo 2020-05-15  2650  	uint32_t wptr = rb->wrpt;
84034ad4c0c0813c Anthony Koo 2020-05-15  2651  
84034ad4c0c0813c Anthony Koo 2020-05-15  2652  	while (rptr != wptr) {
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2653  		uint64_t volatile *data = (uint64_t volatile *)rb->base_address + rptr / sizeof(uint64_t);
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2654  		//uint64_t volatile *p = (uint64_t volatile *)data;
3a9d5b0b5301fb99 Anthony Koo 2021-08-14 @2655  		uint64_t temp;
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2656  		uint8_t i;
84034ad4c0c0813c Anthony Koo 2020-05-15  2657  
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2658  		for (i = 0; i < DMUB_RB_CMD_SIZE / sizeof(uint64_t); i++)
3a9d5b0b5301fb99 Anthony Koo 2021-08-14  2659  			temp = *data++;
84034ad4c0c0813c Anthony Koo 2020-05-15  2660  
84034ad4c0c0813c Anthony Koo 2020-05-15  2661  		rptr += DMUB_RB_CMD_SIZE;
84034ad4c0c0813c Anthony Koo 2020-05-15  2662  		if (rptr >= rb->capacity)
84034ad4c0c0813c Anthony Koo 2020-05-15  2663  			rptr %= rb->capacity;
84034ad4c0c0813c Anthony Koo 2020-05-15  2664  	}
84034ad4c0c0813c Anthony Koo 2020-05-15  2665  }
84034ad4c0c0813c Anthony Koo 2020-05-15  2666  

:::::: The code at line 2655 was first introduced by commit
:::::: 3a9d5b0b5301fb992554ee93ae34fe91771e6434 drm/amd/display: [FW Promotion] Release 0.0.80

:::::: TO: Anthony Koo <Anthony.Koo@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

---
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: 45564 bytes --]

             reply	other threads:[~2021-09-12  2:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-12  2:27 kernel test robot [this message]
2021-09-12  2:27 ` [linux-next:master 12245/12292] drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2655:26: error: variable 'temp' set but not used kernel test robot

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=202109121057.3DN4yPBN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.