[pci:pci/ptm 3/3] drivers/pci/pcie/ptm.c:100:5: warning: unused variable 'local_clock'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/ptm
head:   3a5528c8b94d579e36b70b708948cf679104e751
commit: 3a5528c8b94d579e36b70b708948cf679104e751 [3/3] PCI: Add PTM clock granularity information
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 3a5528c8b94d579e36b70b708948cf679104e751
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/pci/pcie/ptm.c: In function 'pci_enable_ptm':
>> drivers/pci/pcie/ptm.c:100:5: warning: unused variable 'local_clock' [-Wunused-variable]
     u8 local_clock;
        ^~~~~~~~~~~

vim +/local_clock +100 drivers/pci/pcie/ptm.c

    84			} else
    85				return;
    86		}
    87	
    88		ctrl |= dev->ptm_granularity << 8;
    89		pci_write_config_dword(dev, pos + PCI_PTM_CTRL, ctrl);
    90		dev->ptm_enabled = 1;
    91	
    92		pci_ptm_info(dev);
    93	}
    94	
    95	int pci_enable_ptm(struct pci_dev *dev, u8 *granularity)
    96	{
    97		int pos;
    98		struct pci_dev *ups;
    99		u32 cap, ctrl;
 > 100		u8 local_clock;
   101	
   102		if (!pci_is_pcie(dev))
   103			return -EINVAL;
   104	
   105		pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_PTM);
   106		if (!pos)
   107			return -EINVAL;
   108	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux