Re: [PATCH V3 2/8] drm/i915/gt: Add support of mocs auxiliary registers programming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ayaz,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip next-20210830]
[cannot apply to v5.14]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Ayaz-A-Siddiqui/drm-i915-gt-Initialize-unused-MOCS-entries-to-L3_WB/20210831-002827
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a004-20210830 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
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://github.com/0day-ci/linux/commit/449e390824ff0b89a08669d97f456bec3c0f8f74
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Ayaz-A-Siddiqui/drm-i915-gt-Initialize-unused-MOCS-entries-to-L3_WB/20210831-002827
        git checkout 449e390824ff0b89a08669d97f456bec3c0f8f74
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/gt/intel_mocs.c:496:5: warning: no previous prototype for function 'get_ctx_reg_count' [-Wmissing-prototypes]
   int get_ctx_reg_count(const struct drm_i915_aux_table *aux)
       ^
   drivers/gpu/drm/i915/gt/intel_mocs.c:496:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int get_ctx_reg_count(const struct drm_i915_aux_table *aux)
   ^
   static 
   drivers/gpu/drm/i915/gt/intel_mocs.c:364:1: warning: unused function 'add_aux_reg' [-Wunused-function]
   add_aux_reg(struct drm_i915_aux_table *aux,
   ^
   2 warnings generated.


vim +/get_ctx_reg_count +496 drivers/gpu/drm/i915/gt/intel_mocs.c

   495	
 > 496	int get_ctx_reg_count(const struct drm_i915_aux_table *aux)
   497	{
   498		int count = 0;
   499	
   500		while (aux) {
   501			if (aux->type == REG_ENGINE_CONTEXT)
   502				count++;
   503			aux = aux->next;
   504		}
   505		return count;
   506	}
   507	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux