All of lore.kernel.org
 help / color / mirror / Atom feed
* [opencloudos:linux-5.4/lts/5.4.119-20.0009.spr 1934/2444] drivers/iommu/intel/debugfs.c:429:67: error: 'struct intel_iommu' has no member named 'num_prqs'
@ 2024-10-22 18:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-22 18:09 UTC (permalink / raw)
  To: kaixuxia, frankjpliu, kasong, sagazchen, kernelxing, aurelianliu,
	deshengwu, flyingpeng, jingqunli, jason.zeng, wu.zheng,
	yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git linux-5.4/lts/5.4.119-20.0009.spr
head:   56b96e2ee1334c923cb707ff5b18d7cf858a2c46
commit: 291c0dc10cbc47487923c0c6b3d92703e09a5008 [1934/2444] iommu/vt-d: Add PRQ counter for debug
config: x86_64-randconfig-076-20241022 (https://download.01.org/0day-ci/archive/20241023/202410230231.fwzaApEn-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241023/202410230231.fwzaApEn-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/202410230231.fwzaApEn-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/iommu/intel/debugfs.c: In function 'invalidation_queue_show':
>> drivers/iommu/intel/debugfs.c:429:67: error: 'struct intel_iommu' has no member named 'num_prqs'
     429 |                 seq_printf(m, "No. of received PRQs: %ld\n", iommu->num_prqs);
         |                                                                   ^~
>> drivers/iommu/intel/debugfs.c:430:70: error: 'struct intel_iommu' has no member named 'num_prrs'
     430 |                 seq_printf(m, "No. of PRR SUCCESS sent: %ld\n", iommu->num_prrs);
         |                                                                      ^~
>> drivers/iommu/intel/debugfs.c:431:70: error: 'struct intel_iommu' has no member named 'num_prri'
     431 |                 seq_printf(m, "No. of PRR INVALID sent: %ld\n", iommu->num_prri);
         |                                                                      ^~
   drivers/iommu/intel/debugfs.c: In function 'dmar_perf_latency_write':
   drivers/iommu/intel/debugfs.c:594:13: error: implicit declaration of function 'copy_from_user'; did you mean 'copy_from_user_page'? [-Werror=implicit-function-declaration]
     594 |         if (copy_from_user(&buf, ubuf, cnt))
         |             ^~~~~~~~~~~~~~
         |             copy_from_user_page
   drivers/iommu/intel/debugfs.c: At top level:
   drivers/iommu/intel/debugfs.c:653:13: error: redefinition of 'latency_show_one'
     653 | static void latency_show_one(struct seq_file *m, struct intel_iommu *iommu,
         |             ^~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:548:13: note: previous definition of 'latency_show_one' with type 'void(struct seq_file *, struct intel_iommu *, struct dmar_drhd_unit *)'
     548 | static void latency_show_one(struct seq_file *m, struct intel_iommu *iommu,
         |             ^~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:669:12: error: redefinition of 'latency_show'
     669 | static int latency_show(struct seq_file *m, void *v)
         |            ^~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:564:12: note: previous definition of 'latency_show' with type 'int(struct seq_file *, void *)'
     564 | static int latency_show(struct seq_file *m, void *v)
         |            ^~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:682:12: error: redefinition of 'dmar_perf_latency_open'
     682 | static int dmar_perf_latency_open(struct inode *inode, struct file *filp)
         |            ^~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:577:12: note: previous definition of 'dmar_perf_latency_open' with type 'int(struct inode *, struct file *)'
     577 | static int dmar_perf_latency_open(struct inode *inode, struct file *filp)
         |            ^~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:687:16: error: redefinition of 'dmar_perf_latency_write'
     687 | static ssize_t dmar_perf_latency_write(struct file *filp,
         |                ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:582:16: note: previous definition of 'dmar_perf_latency_write' with type 'ssize_t(struct file *, const char *, size_t,  loff_t *)' {aka 'long int(struct file *, const char *, long unsigned int,  long long int *)'}
     582 | static ssize_t dmar_perf_latency_write(struct file *filp,
         |                ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c: In function 'dmar_perf_latency_write':
   drivers/iommu/intel/debugfs.c:715:30: error: 'struct intel_iommu' has no member named 'num_prqs'
     715 |                         iommu->num_prqs = 0;
         |                              ^~
   drivers/iommu/intel/debugfs.c:716:30: error: 'struct intel_iommu' has no member named 'num_prrs'
     716 |                         iommu->num_prrs = 0;
         |                              ^~
   drivers/iommu/intel/debugfs.c:717:30: error: 'struct intel_iommu' has no member named 'num_prri'
     717 |                         iommu->num_prri = 0;
         |                              ^~
   drivers/iommu/intel/debugfs.c: At top level:
   drivers/iommu/intel/debugfs.c:753:37: error: redefinition of 'dmar_perf_latency_fops'
     753 | static const struct file_operations dmar_perf_latency_fops = {
         |                                     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:645:37: note: previous definition of 'dmar_perf_latency_fops' with type 'const struct file_operations'
     645 | static const struct file_operations dmar_perf_latency_fops = {
         |                                     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c: In function 'intel_iommu_debugfs_init':
   drivers/iommu/intel/debugfs.c:780:36: error: 'qi_done_fops' undeclared (first use in this function)
     780 |                             NULL, &qi_done_fops);
         |                                    ^~~~~~~~~~~~
   drivers/iommu/intel/debugfs.c:780:36: note: each undeclared identifier is reported only once for each function it appears in
   drivers/iommu/intel/debugfs.c: At top level:
   drivers/iommu/intel/debugfs.c:645:37: warning: 'dmar_perf_latency_fops' defined but not used [-Wunused-const-variable=]
     645 | static const struct file_operations dmar_perf_latency_fops = {
         |                                     ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +429 drivers/iommu/intel/debugfs.c

   405	
   406	static int invalidation_queue_show(struct seq_file *m, void *unused)
   407	{
   408		struct dmar_drhd_unit *drhd;
   409		struct intel_iommu *iommu;
   410		unsigned long flags;
   411		struct q_inval *qi;
   412		int shift;
   413	
   414		rcu_read_lock();
   415		for_each_active_iommu(iommu, drhd) {
   416			qi = iommu->qi;
   417			shift = qi_shift(iommu);
   418	
   419			if (!qi || !ecap_qis(iommu->ecap))
   420				continue;
   421	
   422			seq_printf(m, "Invalidation queue on IOMMU: %s\n", iommu->name);
   423	
   424			raw_spin_lock_irqsave(&qi->q_lock, flags);
   425			seq_printf(m, " Base: 0x%llx\tHead: %lld\tTail: %lld\n",
   426				   (u64)virt_to_phys(qi->desc),
   427				   dmar_readq(iommu->reg + DMAR_IQH_REG) >> shift,
   428				   dmar_readq(iommu->reg + DMAR_IQT_REG) >> shift);
 > 429			seq_printf(m, "No. of received PRQs: %ld\n", iommu->num_prqs);
 > 430			seq_printf(m, "No. of PRR SUCCESS sent: %ld\n", iommu->num_prrs);
 > 431			seq_printf(m, "No. of PRR INVALID sent: %ld\n", iommu->num_prri);
   432			invalidation_queue_entry_show(m, iommu);
   433			raw_spin_unlock_irqrestore(&qi->q_lock, flags);
   434			seq_putc(m, '\n');
   435		}
   436		rcu_read_unlock();
   437	
   438		return 0;
   439	}
   440	DEFINE_SHOW_ATTRIBUTE(invalidation_queue);
   441	

-- 
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:[~2024-10-22 18:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22 18:09 [opencloudos:linux-5.4/lts/5.4.119-20.0009.spr 1934/2444] drivers/iommu/intel/debugfs.c:429:67: error: 'struct intel_iommu' has no member named 'num_prqs' kernel test robot

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.