llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [asahilinux:bits/020-dart 15/20] drivers/iommu/io-pgtable-dart.c:531:14: warning: variable 'ptep' set but not used
@ 2023-07-05 14:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-05 14:12 UTC (permalink / raw)
  To: Hector Martin; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/AsahiLinux/linux bits/020-dart
head:   065150da3fe99a14a1f2acb00d2a326767179f22
commit: dcf43a427ffcbc79686412189e790ae5f406b748 [15/20] iommu: io-pgtable: Add 4-level page table support
config: arm64-randconfig-r024-20230705 (https://download.01.org/0day-ci/archive/20230705/202307052255.gNZaUpY1-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230705/202307052255.gNZaUpY1-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307052255.gNZaUpY1-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/iommu/io-pgtable-dart.c:531:14: warning: variable 'ptep' set but not used [-Wunused-but-set-variable]
     531 |         dart_iopte *ptep;
         |                     ^
   1 warning generated.


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/wiki

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

only message in thread, other threads:[~2023-07-05 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-05 14:12 [asahilinux:bits/020-dart 15/20] drivers/iommu/io-pgtable-dart.c:531:14: 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).