oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [asahilinux:t602x/bringup 114/125] drivers/iommu/io-pgtable-dart.c:531:21: warning: variable 'ptep' set but not used
@ 2023-04-10 16:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-10 16:14 UTC (permalink / raw)
  To: Hector Martin; +Cc: oe-kbuild-all

tree:   https://github.com/AsahiLinux/linux t602x/bringup
head:   595f97705c505e843b8e264e9daa5710474237dc
commit: 1fd505339e7b4e6e5b6019c98f4978c459a3d5a9 [114/125] iommu: io-pgtable: Add 4-level page table support
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20230411/202304110033.xO3FumNZ-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 12.1.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://github.com/AsahiLinux/linux/commit/1fd505339e7b4e6e5b6019c98f4978c459a3d5a9
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux t602x/bringup
        git checkout 1fd505339e7b4e6e5b6019c98f4978c459a3d5a9
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/iommu/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304110033.xO3FumNZ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/atomic.h:80,
                    from drivers/iommu/io-pgtable-dart.c:16:
   drivers/iommu/io-pgtable-dart.c: In function 'dart_install_table':
   include/linux/atomic/atomic-arch-fallback.h:60:32: error: implicit declaration of function 'arch_cmpxchg64'; did you mean 'arch_cmpxchg'? [-Werror=implicit-function-declaration]
      60 | #define arch_cmpxchg64_relaxed arch_cmpxchg64
         |                                ^~~~~~~~~~~~~~
   include/linux/atomic/atomic-instrumented.h:1968:9: note: in expansion of macro 'arch_cmpxchg64_relaxed'
    1968 |         arch_cmpxchg64_relaxed(__ai_ptr, __VA_ARGS__); \
         |         ^~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/io-pgtable-dart.c:173:15: note: in expansion of macro 'cmpxchg64_relaxed'
     173 |         old = cmpxchg64_relaxed(ptep, curr, new);
         |               ^~~~~~~~~~~~~~~~~
   drivers/iommu/io-pgtable-dart.c: In function 'apple_dart_free_pgtable':
>> drivers/iommu/io-pgtable-dart.c:531:21: warning: variable 'ptep' set but not used [-Wunused-but-set-variable]
     531 |         dart_iopte *ptep;
         |                     ^~~~
   cc1: some warnings being treated as errors


vim +/ptep +531 drivers/iommu/io-pgtable-dart.c

   526	
   527	static void apple_dart_free_pgtable(struct io_pgtable *iop)
   528	{
   529		struct io_pgtable_cfg *cfg = &iop->cfg;
   530		struct dart_io_pgtable *data = io_pgtable_to_data(iop);
 > 531		dart_iopte *ptep;
   532		int i;
   533	
   534	        if (cfg->quirks & IO_PGTABLE_QUIRK_APPLE_LOCKED) {
   535			kfree(data);
   536			return;
   537		}
   538	
   539		for (i = 0; i < (1 << data->tbl_bits) && data->pgd[i]; ++i) {
   540			ptep = data->pgd[i];
   541			apple_dart_free_pgtables(data, data->pgd[i], data->levels - 1);
   542		}
   543	
   544		kfree(data);
   545	}
   546	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-10 16:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 16:14 [asahilinux:t602x/bringup 114/125] drivers/iommu/io-pgtable-dart.c:531:21: warning: variable 'ptep' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).