[linux-next:master 10109/11156] drivers/hid/amd-sfh-hid/amd_sfh_pcie.c:413:34: error: 'struct system_cpuinfo_parisc' has no member named 'x86'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f303a3e2bcfba900efb5aee55236d17030e9f882
commit: 6296562f30b1caf4b5f44e0c89c8f5cbfdb14b4a [10109/11156] HID: amd_sfh: Extend MP2 register access to SFH
config: parisc-allmodconfig (https://download.01.org/0day-ci/archive/20240229/202402292155.zoVOEsFz-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240229/202402292155.zoVOEsFz-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402292155.zoVOEsFz-lkp@xxxxxxxxx/

Note: the linux-next/master HEAD f303a3e2bcfba900efb5aee55236d17030e9f882 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   drivers/hid/amd-sfh-hid/amd_sfh_pcie.c: In function 'amd_mp2_pci_probe':
>> drivers/hid/amd-sfh-hid/amd_sfh_pcie.c:413:34: error: 'struct system_cpuinfo_parisc' has no member named 'x86'
     413 |                 if (boot_cpu_data.x86 >= 0x1A)
         |                                  ^


vim +413 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c

   374	
   375	static int amd_mp2_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
   376	{
   377		struct amd_mp2_dev *privdata;
   378		int rc;
   379	
   380		if (dmi_first_match(dmi_nodevs))
   381			return -ENODEV;
   382	
   383		dmi_check_system(dmi_sfh_table);
   384	
   385		privdata = devm_kzalloc(&pdev->dev, sizeof(*privdata), GFP_KERNEL);
   386		if (!privdata)
   387			return -ENOMEM;
   388	
   389		privdata->pdev = pdev;
   390		dev_set_drvdata(&pdev->dev, privdata);
   391		rc = pcim_enable_device(pdev);
   392		if (rc)
   393			return rc;
   394	
   395		rc = pcim_iomap_regions(pdev, BIT(2), DRIVER_NAME);
   396		if (rc)
   397			return rc;
   398	
   399		privdata->mmio = pcim_iomap_table(pdev)[2];
   400		pci_set_master(pdev);
   401		rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
   402		if (rc) {
   403			dev_err(&pdev->dev, "failed to set DMA mask\n");
   404			return rc;
   405		}
   406	
   407		privdata->cl_data = devm_kzalloc(&pdev->dev, sizeof(struct amdtp_cl_data), GFP_KERNEL);
   408		if (!privdata->cl_data)
   409			return -ENOMEM;
   410	
   411		privdata->sfh1_1_ops = (const struct amd_sfh1_1_ops *)id->driver_data;
   412		if (privdata->sfh1_1_ops) {
 > 413			if (boot_cpu_data.x86 >= 0x1A)
   414				privdata->rver = 1;
   415	
   416			rc = devm_work_autocancel(&pdev->dev, &privdata->work, sfh1_1_init_work);
   417			if (rc)
   418				return rc;
   419	
   420			schedule_work(&privdata->work);
   421			return 0;
   422		}
   423	
   424		mp2_select_ops(privdata);
   425	
   426		rc = amd_sfh_irq_init(privdata);
   427		if (rc) {
   428			dev_err(&pdev->dev, "amd_sfh_irq_init failed\n");
   429			return rc;
   430		}
   431	
   432		rc = devm_work_autocancel(&pdev->dev, &privdata->work, sfh_init_work);
   433		if (rc) {
   434			amd_sfh_clear_intr(privdata);
   435			return rc;
   436		}
   437	
   438		schedule_work(&privdata->work);
   439		return 0;
   440	}
   441	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux