[frank-w-bpi-r2-4.14:5.4-r64-rc 38/43] soc.c:undefined reference to `mt76_set_irq_mask'
by kbuild test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.4-r64-rc
head: 35f9d8842cd7fbf3b1c1c5cb07b74a31ac1c4135
commit: e4cea5260a1ba04f768c59f52308e842679ee586 [38/43] mt76: fix missing include for mt7622
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout e4cea5260a1ba04f768c59f52308e842679ee586
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
phy.c:(.text+0x249): undefined reference to `__mt76_poll'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x0/phy.o: in function `mt76x0_phy_calibrate':
(.text+0x548): undefined reference to `__mt76_poll_msec'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x0/phy.o: in function `mt76x0_phy_calibration_work':
phy.c:(.text+0x894): undefined reference to `mt76_get_min_avg_rssi'
ld: phy.c:(.text+0x99d): undefined reference to `__mt76_poll_msec'
ld: phy.c:(.text+0x10ee): undefined reference to `__mt76_poll_msec'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/pci.o: in function `mt7615_rx_poll_complete':
pci.c:(.text+0x43): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/pci.o: in function `mt7615_pci_probe':
pci.c:(.text+0xc5): undefined reference to `mt76_alloc_device'
ld: pci.c:(.text+0xe0): undefined reference to `mt76_mmio_init'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/pci.o: in function `mt7615_irq_handler':
pci.c:(.text+0x1de): undefined reference to `mt76_set_irq_mask'
ld: pci.c:(.text+0x215): undefined reference to `mt76_set_irq_mask'
ld: pci.c:(.text+0x255): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/init.o: in function `mt7615_register_device':
init.c:(.text+0x57f): undefined reference to `mt76_wcid_alloc'
ld: init.c:(.text+0x64d): undefined reference to `mt76_register_device'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/init.o: in function `mt7615_unregister_device':
init.c:(.text+0x6cb): undefined reference to `mt76_unregister_device'
ld: init.c:(.text+0x717): undefined reference to `mt76_put_txwi'
ld: init.c:(.text+0x741): undefined reference to `mt76_free_device'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/dma.o: in function `mt7615_poll_tx':
dma.c:(.text+0x57): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/dma.o: in function `mt7615_queue_rx_skb':
dma.c:(.text+0x1e4): undefined reference to `mt76_rx'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/dma.o: in function `mt7615_dma_init':
dma.c:(.text+0x210): undefined reference to `mt76_dma_attach'
ld: dma.c:(.text+0x4f4): undefined reference to `__mt76_poll'
ld: dma.c:(.text+0x520): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/dma.o: in function `mt7615_dma_cleanup':
dma.c:(.text+0x5b2): undefined reference to `mt76_dma_cleanup'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/eeprom.o: in function `mt7615_eeprom_init':
eeprom.c:(.text+0x108): undefined reference to `mt76_eeprom_init'
ld: eeprom.c:(.text+0x1e1): undefined reference to `__mt76_poll'
ld: eeprom.c:(.text+0x3e5): undefined reference to `mt76_eeprom_override'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o: in function `mt7615_config':
main.c:(.text+0x1d0): undefined reference to `mt76_set_channel'
ld: main.c:(.text+0x226): undefined reference to `mt76_txq_schedule_all'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o: in function `mt7615_remove_interface':
main.c:(.text+0x525): undefined reference to `mt76_txq_remove'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o: in function `mt7615_ampdu_action':
main.c:(.text+0x692): undefined reference to `mt76_rx_aggr_start'
ld: main.c:(.text+0x6c0): undefined reference to `mt76_rx_aggr_stop'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o: in function `mt7615_set_key':
main.c:(.text+0x8e6): undefined reference to `mt76_wcid_key_setup'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o: in function `mt7615_add_interface':
main.c:(.text+0xaa2): undefined reference to `mt76_txq_init'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o: in function `mt7615_tx':
main.c:(.text+0xaf5): undefined reference to `mt76_tx'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o: in function `mt7615_sta_add':
main.c:(.text+0xb49): undefined reference to `mt76_wcid_alloc'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o:(.rodata+0x1c): undefined reference to `mt76_get_survey'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o:(.rodata+0x70): undefined reference to `mt76_sw_scan_complete'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o:(.rodata+0xa0): undefined reference to `mt76_sw_scan'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o:(.rodata+0xb0): undefined reference to `mt76_release_buffered_frames'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o:(.rodata+0xbc): undefined reference to `mt76_wake_tx_queue'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o:(.rodata+0x168): undefined reference to `mt76_sta_state'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/main.o:(.rodata+0x174): undefined reference to `mt76_get_txpower'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mcu.o: in function `mt7615_mcu_msg_send':
mcu.c:(.text+0x241): undefined reference to `mt76_mcu_msg_alloc'
ld: mcu.c:(.text+0x3b6): undefined reference to `mt76_mcu_get_response'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mcu.o: in function `mt7615_mcu_rx_event':
mcu.c:(.text+0x52d): undefined reference to `mt76_mcu_rx_event'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mcu.o: in function `mt7615_mcu_init':
mcu.c:(.text+0x593): undefined reference to `__mt76_poll_msec'
ld: mcu.c:(.text+0xa84): undefined reference to `__mt76_poll_msec'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_adjust_sensitivity':
mac.c:(.text+0x25b): undefined reference to `mt76_get_min_avg_rssi'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_fill_rx':
mac.c:(.text+0x805): undefined reference to `mt76_get_rate'
ld: mac.c:(.text+0x99d): undefined reference to `mt76_insert_ccmp_hdr'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_tx_complete_skb':
mac.c:(.text+0xad1): undefined reference to `mt76_tx_complete_skb'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_wtbl_update':
mac.c:(.text+0xff7): undefined reference to `__mt76_poll'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_set_rates':
mac.c:(.text+0x12ef): undefined reference to `__mt76_poll'
ld: mac.c:(.text+0x16bf): undefined reference to `__mt76_poll'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_fill_txs':
mac.c:(.text+0x1aa7): undefined reference to `mt76_get_rate'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_add_txs_skb':
mac.c:(.text+0x1b87): undefined reference to `mt76_tx_status_lock'
ld: mac.c:(.text+0x1b94): undefined reference to `mt76_tx_status_skb_get'
ld: mac.c:(.text+0x1c08): undefined reference to `mt76_tx_status_skb_done'
ld: mac.c:(.text+0x1c12): undefined reference to `mt76_tx_status_unlock'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_wtbl_set_key':
mac.c:(.text+0x1ff2): undefined reference to `__mt76_poll'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_tx_prepare_skb':
mac.c:(.text+0x2467): undefined reference to `mt76_tx_status_skb_add'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_tx_free':
mac.c:(.text+0x28a4): undefined reference to `mt76_tx_complete_skb'
ld: mac.c:(.text+0x28b4): undefined reference to `mt76_put_txwi'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/mac.o: in function `mt7615_mac_work':
mac.c:(.text+0x2b29): undefined reference to `mt76_update_survey'
ld: mac.c:(.text+0x2c7b): undefined reference to `mt76_tx_status_check'
ld: drivers/net/wireless/mediatek/mt76_new/mt7615/debugfs.o: in function `mt7615_init_debugfs':
debugfs.c:(.text+0x48f): undefined reference to `mt76_register_debugfs'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/soc.o: in function `mt7622_rx_poll_complete':
>> soc.c:(.text+0x4d): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/soc.o: in function `mt76_wmac_probe':
>> soc.c:(.text+0xe2): undefined reference to `mt76_alloc_device'
>> ld: soc.c:(.text+0xf6): undefined reference to `mt76_mmio_init'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/soc.o: in function `mt7622_irq_handler':
soc.c:(.text+0x23c): undefined reference to `mt76_set_irq_mask'
>> ld: soc.c:(.text+0x27f): undefined reference to `mt76_set_irq_mask'
ld: soc.c:(.text+0x2cf): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o: in function `mt7622_config':
main.c:(.text+0x16e): undefined reference to `mt76_set_channel'
ld: main.c:(.text+0x1ce): undefined reference to `mt76_txq_schedule_all'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o: in function `mt7622_remove_interface':
main.c:(.text+0x4c5): undefined reference to `mt76_txq_remove'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o: in function `mt7622_ampdu_action':
main.c:(.text+0x5e2): undefined reference to `mt76_rx_aggr_start'
ld: main.c:(.text+0x610): undefined reference to `mt76_rx_aggr_stop'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o: in function `mt7622_set_key':
main.c:(.text+0x836): undefined reference to `mt76_wcid_key_setup'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o: in function `mt7622_add_interface':
main.c:(.text+0x9ca): undefined reference to `mt76_txq_init'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o: in function `mt7622_tx':
main.c:(.text+0xa55): undefined reference to `mt76_tx'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o: in function `mt7622_sta_add':
main.c:(.text+0xb49): undefined reference to `mt76_wcid_alloc'
>> ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o:(.rodata+0x3c): undefined reference to `mt76_get_survey'
>> ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o:(.rodata+0x90): undefined reference to `mt76_sw_scan_complete'
>> ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o:(.rodata+0xc0): undefined reference to `mt76_sw_scan'
>> ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o:(.rodata+0xd0): undefined reference to `mt76_release_buffered_frames'
>> ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o:(.rodata+0xdc): undefined reference to `mt76_wake_tx_queue'
>> ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o:(.rodata+0x188): undefined reference to `mt76_sta_state'
>> ld: drivers/net/wireless/mediatek/mt76_new/mt7622/main.o:(.rodata+0x194): undefined reference to `mt76_get_txpower'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/init.o: in function `mt7622_register_device':
init.c:(.text+0x2cf): undefined reference to `mt76_wcid_alloc'
ld: init.c:(.text+0x35b): undefined reference to `mt76_register_device'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/init.o: in function `mt7622_unregister_device':
init.c:(.text+0x4db): undefined reference to `mt76_unregister_device'
ld: init.c:(.text+0x527): undefined reference to `mt76_put_txwi'
ld: init.c:(.text+0x551): undefined reference to `mt76_free_device'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/eeprom.o: in function `mt7622_eeprom_init':
eeprom.c:(.text+0x45): undefined reference to `mt76_eeprom_init'
ld: eeprom.c:(.text+0xeb): undefined reference to `mt76_eeprom_override'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/dma.o: in function `mt7622_poll_tx':
dma.c:(.text+0x191): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/dma.o: in function `mt7622_queue_rx_skb':
dma.c:(.text+0x294): undefined reference to `mt76_rx'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/dma.o: in function `mt7622_dma_init':
dma.c:(.text+0x4a6): undefined reference to `mt76_dma_attach'
ld: dma.c:(.text+0x756): undefined reference to `__mt76_poll'
ld: dma.c:(.text+0x796): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/dma.o: in function `mt7622_dma_cleanup':
dma.c:(.text+0x816): undefined reference to `mt76_dma_cleanup'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mcu.o: in function `mt7622_mcu_msg_send':
mcu.c:(.text+0x1b1): undefined reference to `mt76_mcu_msg_alloc'
ld: mcu.c:(.text+0x326): undefined reference to `mt76_mcu_get_response'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mcu.o: in function `mt7622_mcu_rx_event':
mcu.c:(.text+0x475): undefined reference to `mt76_mcu_rx_event'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mcu.o: in function `mt7622_mcu_init':
mcu.c:(.text+0x928): undefined reference to `__mt76_poll_msec'
ld: mcu.c:(.text+0xa67): undefined reference to `__mt76_poll_msec'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/debugfs.o: in function `mt7622_init_debugfs':
debugfs.c:(.text+0x4e): undefined reference to `mt76_register_debugfs'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_mac_fill_rx':
mac.c:(.text+0x464): undefined reference to `mt76_get_rate'
ld: mac.c:(.text+0x5f5): undefined reference to `mt76_insert_ccmp_hdr'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_tx_complete_skb':
mac.c:(.text+0x6cb): undefined reference to `mt76_tx_complete_skb'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_mac_wtbl_update':
mac.c:(.text+0xbf5): undefined reference to `__mt76_poll'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_mac_set_rates':
mac.c:(.text+0xc6c): undefined reference to `__mt76_poll'
ld: mac.c:(.text+0x107c): undefined reference to `__mt76_poll'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_fill_txs':
mac.c:(.text+0x1467): undefined reference to `mt76_get_rate'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_mac_add_txs_skb':
mac.c:(.text+0x1547): undefined reference to `mt76_tx_status_lock'
ld: mac.c:(.text+0x1554): undefined reference to `mt76_tx_status_skb_get'
ld: mac.c:(.text+0x15c8): undefined reference to `mt76_tx_status_skb_done'
ld: mac.c:(.text+0x15d2): undefined reference to `mt76_tx_status_unlock'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_mac_wtbl_set_key':
mac.c:(.text+0x19bf): undefined reference to `__mt76_poll'
ld: mac.c:(.text+0x1aee): undefined reference to `__mt76_poll'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_tx_prepare_skb':
mac.c:(.text+0x1d9d): undefined reference to `mt76_tx_status_skb_add'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_mac_tx_free':
mac.c:(.text+0x2184): undefined reference to `mt76_tx_complete_skb'
ld: mac.c:(.text+0x2194): undefined reference to `mt76_put_txwi'
ld: drivers/net/wireless/mediatek/mt76_new/mt7622/mac.o: in function `mt7622_mac_work':
>> mac.c:(.text+0x24d1): undefined reference to `mt76_tx_status_check'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
[linux-review:UPDATE-20191129-212259/James-Sewart/PCI-Add-DMA-alias-quirk-for-PLX-PEX-NTB/20191127-072545 1/1] drivers//pci/quirks.c:5387:2: error: too many arguments to function 'pci_add_dma_alias'
by kbuild test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20191129-212259/James-Sew...
head: 5e079bf7093e83334b9cb68513b887715adbf774
commit: 5e079bf7093e83334b9cb68513b887715adbf774 [1/1] PCI: Add DMA alias quirk for PLX PEX NTB
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.5.0-1) 7.5.0
reproduce:
git checkout 5e079bf7093e83334b9cb68513b887715adbf774
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers//pci/quirks.c: In function 'quirk_plx_ntb_dma_alias':
>> drivers//pci/quirks.c:5387:2: error: too many arguments to function 'pci_add_dma_alias'
pci_add_dma_alias(pdev, 0, 256);
^~~~~~~~~~~~~~~~~
In file included from drivers//pci/quirks.c:18:0:
include/linux/pci.h:2310:6: note: declared here
void pci_add_dma_alias(struct pci_dev *dev, u8 devfn);
^~~~~~~~~~~~~~~~~
vim +/pci_add_dma_alias +5387 drivers//pci/quirks.c
5376
5377 /*
5378 * PLX NTB uses devfn proxy IDs to move TLPs between NT endpoints. These IDs
5379 * are used to forward responses to the originator on the other side of the
5380 * NTB. Alias all possible IDs to the NTB to permit access when the IOMMU is
5381 * turned on.
5382 */
5383 static void quirk_plx_ntb_dma_alias(struct pci_dev *pdev)
5384 {
5385 pci_info(pdev, "Setting PLX NTB proxy ID aliases\n");
5386 /* PLX NTB may use all 256 devfns */
> 5387 pci_add_dma_alias(pdev, 0, 256);
5388 }
5389 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x87b0, quirk_plx_ntb_dma_alias);
5390 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x87b1, quirk_plx_ntb_dma_alias);
5391
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
[zen-kernel-zen-kernel:5.4/zen-sauce 14/15] mm/compaction.c:1865:33: error: 'HUGETLB_PAGE_ORDER' undeclared; did you mean 'HPAGE_PMD_ORDER'?
by kbuild test robot
tree: https://github.com/zen-kernel/zen-kernel 5.4/zen-sauce
head: c9a8f36311f14311a3202501c88009f758683c0f
commit: 92f669d8f5542fe3981115706a7b9066a0903b4a [14/15] mm: Proactive compaction
config: arm-bcm2835_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 92f669d8f5542fe3981115706a7b9066a0903b4a
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/compaction.c: In function 'extfrag_hpage_wmark':
>> mm/compaction.c:1865:33: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function); did you mean 'HPAGE_PMD_ORDER'?
return extfrag_for_order(zone, HUGETLB_PAGE_ORDER) > wmark;
^~~~~~~~~~~~~~~~~~
HPAGE_PMD_ORDER
mm/compaction.c:1865:33: note: each undeclared identifier is reported only once for each function it appears in
mm/compaction.c: In function 'node_hpage_should_compact':
mm/compaction.c:1874:30: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function); did you mean 'HPAGE_PMD_ORDER'?
compaction_suitable(zone, HUGETLB_PAGE_ORDER,
^~~~~~~~~~~~~~~~~~
HPAGE_PMD_ORDER
mm/compaction.c: In function 'extfrag_hpage_wmark':
mm/compaction.c:1866:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +1865 mm/compaction.c
1856
1857 static unsigned int extfrag_hpage_wmark(struct zone *zone, bool low)
1858 {
1859 int node_id, wmark, wmark_low;
1860
1861 node_id = zone->zone_pgdat->node_id;
1862 wmark_low = 100 - compaction_states[node_id].hpage_compaction_effort;
1863 wmark = low ? wmark_low : min(wmark_low + 10, 100);
1864
> 1865 return extfrag_for_order(zone, HUGETLB_PAGE_ORDER) > wmark;
1866 }
1867
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
Re: [PATCH v7 17/24] mm/gup: track FOLL_PIN pages
by kbuild test robot
Hi John,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.4]
[cannot apply to mmotm/master rdma/for-next linuxtv-media/master next-20191129]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/John-Hubbard/mm-gup-track-dma-pi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c74386d50fbaf4a54fd3fe560f1abc709c0cff4b
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/gup.c: In function 'pin_user_pages_remote':
>> mm/gup.c:2684:9: error: implicit declaration of function '__get_user_pages_remote'; did you mean 'get_user_pages_remote'? [-Werror=implicit-function-declaration]
return __get_user_pages_remote(tsk, mm, start, nr_pages, gup_flags,
^~~~~~~~~~~~~~~~~~~~~~~
get_user_pages_remote
cc1: some warnings being treated as errors
vim +2684 mm/gup.c
2660
2661 /**
2662 * pin_user_pages_remote() - pin pages of a remote process (task != current)
2663 *
2664 * Nearly the same as get_user_pages_remote(), except that FOLL_PIN is set. See
2665 * get_user_pages_remote() for documentation on the function arguments, because
2666 * the arguments here are identical.
2667 *
2668 * FOLL_PIN means that the pages must be released via unpin_user_page(). Please
2669 * see Documentation/vm/pin_user_pages.rst for details.
2670 *
2671 * This is intended for Case 1 (DIO) in Documentation/vm/pin_user_pages.rst. It
2672 * is NOT intended for Case 2 (RDMA: long-term pins).
2673 */
2674 long pin_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
2675 unsigned long start, unsigned long nr_pages,
2676 unsigned int gup_flags, struct page **pages,
2677 struct vm_area_struct **vmas, int *locked)
2678 {
2679 /* FOLL_GET and FOLL_PIN are mutually exclusive. */
2680 if (WARN_ON_ONCE(gup_flags & FOLL_GET))
2681 return -EINVAL;
2682
2683 gup_flags |= FOLL_PIN;
> 2684 return __get_user_pages_remote(tsk, mm, start, nr_pages, gup_flags,
2685 pages, vmas, locked);
2686 }
2687 EXPORT_SYMBOL(pin_user_pages_remote);
2688
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
[zen-kernel-zen-kernel:5.4/zen-sauce 14/15] include/linux/compiler.h:350:38: error: call to '__compiletime_assert_1865' declared with attribute error: BUILD_BUG failed
by kbuild test robot
tree: https://github.com/zen-kernel/zen-kernel 5.4/zen-sauce
head: c9a8f36311f14311a3202501c88009f758683c0f
commit: 92f669d8f5542fe3981115706a7b9066a0903b4a [14/15] mm: Proactive compaction
config: mips-malta_kvm_guest_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 92f669d8f5542fe3981115706a7b9066a0903b4a
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/ioport.h:13:0,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from mm/compaction.c:11:
In function 'extfrag_hpage_wmark',
inlined from 'node_hpage_should_compact.isra.53' at mm/compaction.c:1873:7:
>> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_1865' declared with attribute error: BUILD_BUG failed
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
^~~~~~~~~~~~~~~~
arch/mips/include/asm/page.h:70:30: note: in expansion of macro 'BUILD_BUG'
#define HUGETLB_PAGE_ORDER ({BUILD_BUG(); 0; })
^~~~~~~~~
mm/compaction.c:1865:33: note: in expansion of macro 'HUGETLB_PAGE_ORDER'
return extfrag_for_order(zone, HUGETLB_PAGE_ORDER) > wmark;
^~~~~~~~~~~~~~~~~~
mm/compaction.c: In function 'node_hpage_should_compact.isra.53':
include/linux/compiler.h:350:38: error: call to '__compiletime_assert_1874' declared with attribute error: BUILD_BUG failed
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
^~~~~~~~~~~~~~~~
arch/mips/include/asm/page.h:70:30: note: in expansion of macro 'BUILD_BUG'
#define HUGETLB_PAGE_ORDER ({BUILD_BUG(); 0; })
^~~~~~~~~
mm/compaction.c:1874:30: note: in expansion of macro 'HUGETLB_PAGE_ORDER'
compaction_suitable(zone, HUGETLB_PAGE_ORDER,
^~~~~~~~~~~~~~~~~~
In function 'extfrag_hpage_wmark',
inlined from '__compact_finished' at mm/compaction.c:1911:6,
inlined from 'compact_zone' at mm/compaction.c:1979:8:
>> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_1865' declared with attribute error: BUILD_BUG failed
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
^~~~~~~~~~~~~~~~
arch/mips/include/asm/page.h:70:30: note: in expansion of macro 'BUILD_BUG'
#define HUGETLB_PAGE_ORDER ({BUILD_BUG(); 0; })
^~~~~~~~~
mm/compaction.c:1865:33: note: in expansion of macro 'HUGETLB_PAGE_ORDER'
return extfrag_for_order(zone, HUGETLB_PAGE_ORDER) > wmark;
^~~~~~~~~~~~~~~~~~
vim +/__compiletime_assert_1865 +350 include/linux/compiler.h
9a8ab1c39970a4 Daniel Santos 2013-02-21 336
9a8ab1c39970a4 Daniel Santos 2013-02-21 337 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 338 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 339
9a8ab1c39970a4 Daniel Santos 2013-02-21 340 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 341 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 342 * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 343 * @msg: a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 344 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 345 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 346 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 347 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 348 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 349 #define compiletime_assert(condition, msg) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 @350 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 351
:::::: The code at line 350 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG
:::::: TO: Daniel Santos <daniel.santos(a)pobox.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
Re: [PATCH RFC 01/15] KVM: Move running VCPU from ARM to common code
by kbuild test robot
Hi Peter,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on kvm/linux-next]
[also build test ERROR on next-20191129]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Peter-Xu/KVM-Dirty-ring-interfac...
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
arch/arm64/kvm/../../../virt/kvm/arm/arch_timer.c: In function 'kvm_arch_timer_get_input_level':
>> arch/arm64/kvm/../../../virt/kvm/arm/arch_timer.c:1025:26: error: implicit declaration of function 'kvm_arm_get_running_vcpu'; did you mean 'kvm_get_running_vcpu'? [-Werror=implicit-function-declaration]
struct kvm_vcpu *vcpu = kvm_arm_get_running_vcpu();
^~~~~~~~~~~~~~~~~~~~~~~~
kvm_get_running_vcpu
>> arch/arm64/kvm/../../../virt/kvm/arm/arch_timer.c:1025:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
cc1: some warnings being treated as errors
vim +1025 arch/arm64/kvm/../../../virt/kvm/arm/arch_timer.c
99a1db7a2c9b2e Christoffer Dall 2017-05-02 1022
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1023 bool kvm_arch_timer_get_input_level(int vintid)
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1024 {
4c60e360d6dfa4 Christoffer Dall 2017-10-27 @1025 struct kvm_vcpu *vcpu = kvm_arm_get_running_vcpu();
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1026 struct arch_timer_context *timer;
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1027
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1028 if (vintid == vcpu_vtimer(vcpu)->irq.irq)
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1029 timer = vcpu_vtimer(vcpu);
9e01dc76be6a3b Christoffer Dall 2019-02-19 1030 else if (vintid == vcpu_ptimer(vcpu)->irq.irq)
9e01dc76be6a3b Christoffer Dall 2019-02-19 1031 timer = vcpu_ptimer(vcpu);
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1032 else
9e01dc76be6a3b Christoffer Dall 2019-02-19 1033 BUG();
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1034
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1035 return kvm_timer_should_fire(timer);
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1036 }
4c60e360d6dfa4 Christoffer Dall 2017-10-27 1037
:::::: The code at line 1025 was first introduced by commit
:::::: 4c60e360d6dfa4d9c3586b687f348eeb3fd675dd KVM: arm/arm64: Provide a get_input_level for the arch timer
:::::: TO: Christoffer Dall <christoffer.dall(a)linaro.org>
:::::: CC: Christoffer Dall <christoffer.dall(a)linaro.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
[frank-w-bpi-r2-4.14:5.4-r64-rc 37/43] pci.c:undefined reference to `mt76_unregister_device'
by kbuild test robot
Hi Frank,
It's probably a bug fix that unveils the link errors.
tree: https://github.com/frank-w/BPI-R2-4.14 5.4-r64-rc
head: 35f9d8842cd7fbf3b1c1c5cb07b74a31ac1c4135
commit: 82f7ea719418644b4313baa020021a6f3b33c4a6 [37/43] mt76: fix undeclared LINUX_VERSION
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout 82f7ea719418644b4313baa020021a6f3b33c4a6
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_util.o: in function `mt76x02_sta_add':
>> (.text+0x5ce): undefined reference to `mt76_wcid_alloc'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_util.o: in function `mt76x02_add_interface':
>> (.text+0x7f6): undefined reference to `mt76_txq_init'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_util.o: in function `mt76x02_remove_interface':
>> (.text+0x82a): undefined reference to `mt76_txq_remove'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_util.o: in function `mt76x02_ampdu_action':
>> (.text+0x90c): undefined reference to `mt76_rx_aggr_start'
>> ld: (.text+0x955): undefined reference to `mt76_rx_aggr_stop'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_util.o: in function `mt76x02_set_key':
>> (.text+0xb1b): undefined reference to `mt76_wcid_key_setup'
>> ld: (.text+0xb3f): undefined reference to `mt76_wcid_key_setup'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_util.o: in function `mt76x02_sta_ps':
>> (.text+0xf97): undefined reference to `mt76_stop_tx_queues'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_mac.o: in function `mt76x02_send_tx_status':
>> (.text+0x16f5): undefined reference to `mt76_tx_status_skb_get'
>> ld: (.text+0x17de): undefined reference to `mt76_tx_status_unlock'
>> ld: (.text+0x18b5): undefined reference to `mt76_tx_status_skb_done'
ld: (.text+0x18f1): undefined reference to `mt76_tx_status_unlock'
>> ld: (.text+0x191e): undefined reference to `mt76_calc_tx_airtime'
>> ld: (.text+0x19c6): undefined reference to `mt76_tx_status_lock'
ld: (.text+0x19d6): undefined reference to `mt76_tx_status_lock'
ld: (.text+0x19fe): undefined reference to `mt76_tx_status_unlock'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_mac.o: in function `mt76x02_tx_complete_skb':
>> (.text+0x21cc): undefined reference to `mt76_tx_complete_skb'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_mac.o: in function `mt76x02_mac_work':
>> (.text+0x255b): undefined reference to `mt76_update_survey'
>> ld: (.text+0x27de): undefined reference to `mt76_tx_status_check'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_mcu.o: in function `mt76x02_mcu_msg_send':
>> (.text+0x10d): undefined reference to `mt76_mcu_msg_alloc'
>> ld: (.text+0x15d): undefined reference to `mt76_mcu_get_response'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_mcu.o: in function `mt76x02_mcu_calibrate':
>> (.text+0x31c): undefined reference to `__mt76_poll_msec'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_eeprom.o: in function `mt76x02_get_efuse_data':
(.text+0x2a0): undefined reference to `__mt76_poll_msec'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_mmio.o: in function `mt76x02_rx_poll_complete':
>> (.text+0x143): undefined reference to `mt76_set_irq_mask'
ld: drivers/net/wireless/mediatek/mt76_new/mt76x02_mmio.o: in function `mt76x02e_beacon_enable':
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
Re: [Intel-gfx] [PATCH] drm/i915/selftests: Keep engine awake during live_coherency
by kbuild test robot
Hi Chris,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[cannot apply to v5.4 next-20191129]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-selftests-...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-d002-20191129 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-1) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/gem/i915_gem_object.c:346:0:
drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c: In function 'igt_gem_coherency':
>> drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c:329:2: error: implicit declaration of function 'intel_engine_pm_get'; did you mean 'intel_runtime_pm_get'? [-Werror=implicit-function-declaration]
intel_engine_pm_get(ctx.engine);
^~~~~~~~~~~~~~~~~~~
intel_runtime_pm_get
>> drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c:408:2: error: implicit declaration of function 'intel_engine_pm_put'; did you mean 'intel_runtime_pm_put'? [-Werror=implicit-function-declaration]
intel_engine_pm_put(ctx.engine);
^~~~~~~~~~~~~~~~~~~
intel_runtime_pm_put
Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read
Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read
Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_set
Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc
Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec
Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec_and_test
Cyclomatic Complexity 2 arch/x86/include/asm/atomic.h:arch_atomic_try_cmpxchg
Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read
Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_set
Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc
Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec
Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_try_cmpxchg
Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec_and_test
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:arch_test_and_clear_bit
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:__ffs
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:test_and_clear_bit
Cyclomatic Complexity 1 include/linux/bitops.h:fls_long
Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
Cyclomatic Complexity 1 include/linux/log2.h:__rounddown_pow_of_two
Cyclomatic Complexity 2 arch/x86/include/asm/div64.h:div_u64_rem
Cyclomatic Complexity 1 arch/x86/include/asm/div64.h:mul_u32_u32
Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
Cyclomatic Complexity 1 include/linux/list.h:__list_del
Cyclomatic Complexity 1 include/linux/list.h:list_empty
Cyclomatic Complexity 1 include/linux/math64.h:div_u64
Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
Cyclomatic Complexity 2 arch/x86/include/asm/jump_label.h:arch_static_branch
Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_false
Cyclomatic Complexity 1 include/linux/cpumask.h:cpu_max_bits_warn
Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_check
Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub
Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock
Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock
Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_lock
Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_unlock
Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock
Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock_sched_notrace
Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_unlock_sched_notrace
Cyclomatic Complexity 1 include/linux/llist.h:llist_del_all
Cyclomatic Complexity 1 include/linux/nodemask.h:node_state
Cyclomatic Complexity 1 arch/x86/include/asm/topology.h:numa_node_id
Cyclomatic Complexity 2 drivers/gpu/drm/i915/i915_utils.h:yesno
Cyclomatic Complexity 2 include/linux/mmzone.h:__nr_to_section
Cyclomatic Complexity 1 include/linux/mmzone.h:__section_mem_map_addr
Cyclomatic Complexity 1 include/linux/topology.h:numa_mem_id
Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_inc
Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_dec
Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disable
Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_enable
Cyclomatic Complexity 1 include/linux/mm.h:page_to_section
Cyclomatic Complexity 1 include/linux/mm.h:lowmem_page_address
Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_large
Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_page
Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_mark_end
Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_gem_gtt.h:i915_vm_is_4lvl
Cyclomatic Complexity 1 include/linux/dma-resv.h:dma_resv_get_list
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object_types.h:to_intel_bo
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.h:i915_gem_object_set_volatile
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.h:i915_gem_object_type_has
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.h:i915_gem_object_has_struct_page
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.h:__i915_gem_object_unpin_pages
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.h:i915_gem_object_unpin_pages
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.h:i915_gem_object_unpin_map
Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_vma.h:i915_vma_unset_ggtt_write
Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_vma.h:i915_ggtt_offset
Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_vma.h:__i915_vma_unpin
Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_vma.h:i915_vma_unpin
Cyclomatic Complexity 1 include/linux/highmem.h:kmap_atomic
Cyclomatic Complexity 1 include/linux/highmem.h:__kunmap_atomic
Cyclomatic Complexity 2 include/linux/random.h:__seed
Cyclomatic Complexity 1 include/linux/random.h:prandom_seed_state
Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:to_i915
Cyclomatic Complexity 1 drivers/gpu/drm/i915/i915_drv.h:mkwrite_device_info
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_context.h:i915_gem_context_vm
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_context.h:i915_gem_context_engines
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_context.h:i915_gem_engines_iter_init
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.c:gpu_write_needs_clflush
Cyclomatic Complexity 4 drivers/gpu/drm/i915/gem/selftests/huge_pages.c:get_largest_page_size
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gt/intel_ring.h:intel_ring_advance
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c:always_valid
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.c:i915_global_objects_exit
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_object.c:i915_global_objects_shrink
Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_zalloc
Cyclomatic Complexity 1 include/linux/xarray.h:xa_init_flags
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_context.h:i915_gem_context_lock_engines
Cyclomatic Complexity 1 drivers/gpu/drm/i915/gem/i915_gem_context.h:i915_gem_context_unlock_engines
vim +329 drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c
299
300 static int igt_gem_coherency(void *arg)
301 {
302 const unsigned int ncachelines = PAGE_SIZE/64;
303 struct drm_i915_private *i915 = arg;
304 const struct igt_coherency_mode *read, *write, *over;
305 unsigned long count, n;
306 u32 *offsets, *values;
307 I915_RND_STATE(prng);
308 struct context ctx;
309 int err = 0;
310
311 /*
312 * We repeatedly write, overwrite and read from a sequence of
313 * cachelines in order to try and detect incoherency (unflushed writes
314 * from either the CPU or GPU). Each setter/getter uses our cache
315 * domain API which should prevent incoherency.
316 */
317
318 offsets = kmalloc_array(ncachelines, 2*sizeof(u32), GFP_KERNEL);
319 if (!offsets)
320 return -ENOMEM;
321 for (count = 0; count < ncachelines; count++)
322 offsets[count] = count * 64 + 4 * (count % 16);
323
324 values = offsets + ncachelines;
325
326 ctx.engine = random_engine(i915, &prng);
327 GEM_BUG_ON(!ctx.engine);
328 pr_info("%s: using %s\n", __func__, ctx.engine->name);
> 329 intel_engine_pm_get(ctx.engine);
330
331 for (over = igt_coherency_mode; over->name; over++) {
332 if (!over->set)
333 continue;
334
335 if (!over->valid(&ctx))
336 continue;
337
338 for (write = igt_coherency_mode; write->name; write++) {
339 if (!write->set)
340 continue;
341
342 if (!write->valid(&ctx))
343 continue;
344
345 for (read = igt_coherency_mode; read->name; read++) {
346 if (!read->get)
347 continue;
348
349 if (!read->valid(&ctx))
350 continue;
351
352 for_each_prime_number_from(count, 1, ncachelines) {
353 ctx.obj = i915_gem_object_create_internal(i915, PAGE_SIZE);
354 if (IS_ERR(ctx.obj)) {
355 err = PTR_ERR(ctx.obj);
356 goto free;
357 }
358
359 i915_random_reorder(offsets, ncachelines, &prng);
360 for (n = 0; n < count; n++)
361 values[n] = prandom_u32_state(&prng);
362
363 for (n = 0; n < count; n++) {
364 err = over->set(&ctx, offsets[n], ~values[n]);
365 if (err) {
366 pr_err("Failed to set stale value[%ld/%ld] in object using %s, err=%d\n",
367 n, count, over->name, err);
368 goto put_object;
369 }
370 }
371
372 for (n = 0; n < count; n++) {
373 err = write->set(&ctx, offsets[n], values[n]);
374 if (err) {
375 pr_err("Failed to set value[%ld/%ld] in object using %s, err=%d\n",
376 n, count, write->name, err);
377 goto put_object;
378 }
379 }
380
381 for (n = 0; n < count; n++) {
382 u32 found;
383
384 err = read->get(&ctx, offsets[n], &found);
385 if (err) {
386 pr_err("Failed to get value[%ld/%ld] in object using %s, err=%d\n",
387 n, count, read->name, err);
388 goto put_object;
389 }
390
391 if (found != values[n]) {
392 pr_err("Value[%ld/%ld] mismatch, (overwrite with %s) wrote [%s] %x read [%s] %x (inverse %x), at offset %x\n",
393 n, count, over->name,
394 write->name, values[n],
395 read->name, found,
396 ~values[n], offsets[n]);
397 err = -EINVAL;
398 goto put_object;
399 }
400 }
401
402 i915_gem_object_put(ctx.obj);
403 }
404 }
405 }
406 }
407 free:
> 408 intel_engine_pm_put(ctx.engine);
409 kfree(offsets);
410 return err;
411
412 put_object:
413 i915_gem_object_put(ctx.obj);
414 goto free;
415 }
416
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
[dhowells-fs:fscache-iter 55/56] fs/cachefiles/content-map.c:165:20: warning: 'bend' may be used uninitialized in this function
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter
head: 7d909e98ea1a1d0b1dfa28b10fc1befdfd8d3338
commit: 43db3bc20368ff53a55a7a47f1675bbe5d199806 [55/56] cachefiles: Shape write requests
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout 43db3bc20368ff53a55a7a47f1675bbe5d199806
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
fs/cachefiles/content-map.c: In function 'cachefiles_shape_extent':
>> fs/cachefiles/content-map.c:165:20: warning: 'bend' may be used uninitialized in this function [-Wmaybe-uninitialized]
extent->block_end = bend;
~~~~~~~~~~~~~~~~~~^~~~~~
vim +/bend +165 fs/cachefiles/content-map.c
2361ddad4441cd David Howells 2019-11-05 58
2361ddad4441cd David Howells 2019-11-05 59 /*
2361ddad4441cd David Howells 2019-11-05 60 * Determine the size of a data extent in a cache object.
2361ddad4441cd David Howells 2019-11-05 61 *
2361ddad4441cd David Howells 2019-11-05 62 * In cachefiles, a data cache object is divided into granules of 256KiB, each
2361ddad4441cd David Howells 2019-11-05 63 * of which must be written as a whole unit when the cache is being loaded.
2361ddad4441cd David Howells 2019-11-05 64 * Data may be read out piecemeal.
2361ddad4441cd David Howells 2019-11-05 65 *
2361ddad4441cd David Howells 2019-11-05 66 * The extent is resized, but the result will always contain the starting page
2361ddad4441cd David Howells 2019-11-05 67 * from the extent.
2361ddad4441cd David Howells 2019-11-05 68 *
2361ddad4441cd David Howells 2019-11-05 69 * If the granule does not exist in the cachefile, the start may be brought
2361ddad4441cd David Howells 2019-11-05 70 * forward to align with the beginning of a granule boundary, and the end may be
2361ddad4441cd David Howells 2019-11-05 71 * moved either way to align also. The extent will be cut off it it would cross
2361ddad4441cd David Howells 2019-11-05 72 * over the boundary between what's cached and what's not.
2361ddad4441cd David Howells 2019-11-05 73 *
2361ddad4441cd David Howells 2019-11-05 74 * If the starting granule does exist in the cachefile, the extent will be
2361ddad4441cd David Howells 2019-11-05 75 * shortened, if necessary, so that it doesn't cross over into a region that is
2361ddad4441cd David Howells 2019-11-05 76 * not present.
2361ddad4441cd David Howells 2019-11-05 77 *
2361ddad4441cd David Howells 2019-11-05 78 * If the granule does not exist and we cannot cache it for lack of space, the
2361ddad4441cd David Howells 2019-11-05 79 * requested extent is left unaltered.
2361ddad4441cd David Howells 2019-11-05 80 */
2361ddad4441cd David Howells 2019-11-05 81 unsigned int cachefiles_shape_extent(struct fscache_object *obj,
2361ddad4441cd David Howells 2019-11-05 82 struct fscache_extent *extent,
2361ddad4441cd David Howells 2019-11-05 83 loff_t i_size, bool for_write)
2361ddad4441cd David Howells 2019-11-05 84 {
2361ddad4441cd David Howells 2019-11-05 85 struct cachefiles_object *object =
2361ddad4441cd David Howells 2019-11-05 86 container_of(obj, struct cachefiles_object, fscache);
2361ddad4441cd David Howells 2019-11-05 87 unsigned int ret = 0;
2361ddad4441cd David Howells 2019-11-05 88 pgoff_t start, end, limit, eof, bend;
2361ddad4441cd David Howells 2019-11-05 89 size_t granule;
2361ddad4441cd David Howells 2019-11-05 90
2361ddad4441cd David Howells 2019-11-05 91 if (object->fscache.cookie->advice & FSCACHE_ADV_SINGLE_CHUNK)
2361ddad4441cd David Howells 2019-11-05 92 return cachefiles_shape_single(obj, extent, i_size, for_write);
2361ddad4441cd David Howells 2019-11-05 93
2361ddad4441cd David Howells 2019-11-05 94 start = extent->start;
2361ddad4441cd David Howells 2019-11-05 95 end = extent->block_end;
2361ddad4441cd David Howells 2019-11-05 96 limit = extent->limit;
2361ddad4441cd David Howells 2019-11-05 97 _enter("{%lx,%lx,%lx},%llx,%d", start, end, limit, i_size, for_write);
2361ddad4441cd David Howells 2019-11-05 98
2361ddad4441cd David Howells 2019-11-05 99 granule = start / CACHEFILES_GRAN_PAGES;
2361ddad4441cd David Howells 2019-11-05 100
2361ddad4441cd David Howells 2019-11-05 101 /* If the content map didn't get expanded for some reason - simply
2361ddad4441cd David Howells 2019-11-05 102 * ignore this granule.
2361ddad4441cd David Howells 2019-11-05 103 */
2361ddad4441cd David Howells 2019-11-05 104 if (granule / 8 >= object->content_map_size)
2361ddad4441cd David Howells 2019-11-05 105 return 0;
2361ddad4441cd David Howells 2019-11-05 106
43db3bc20368ff David Howells 2019-11-27 107 if (for_write) {
43db3bc20368ff David Howells 2019-11-27 108 /* Assume that the preparation to write involved preloading any
43db3bc20368ff David Howells 2019-11-27 109 * bits of the cache that weren't to be written and filling any
43db3bc20368ff David Howells 2019-11-27 110 * gaps that didn't end up being written.
43db3bc20368ff David Howells 2019-11-27 111 */
43db3bc20368ff David Howells 2019-11-27 112 ret = FSCACHE_WRITE_TO_CACHE;
43db3bc20368ff David Howells 2019-11-27 113 } else if (cachefiles_granule_is_present(object, granule)) {
2361ddad4441cd David Howells 2019-11-05 114 /* The start of the requested extent is present in the cache -
2361ddad4441cd David Howells 2019-11-05 115 * restrict the returned extent to the maximum length of what's
2361ddad4441cd David Howells 2019-11-05 116 * available.
2361ddad4441cd David Howells 2019-11-05 117 */
2361ddad4441cd David Howells 2019-11-05 118 bend = round_up(start + 1, CACHEFILES_GRAN_PAGES);
2361ddad4441cd David Howells 2019-11-05 119 while (bend < end) {
2361ddad4441cd David Howells 2019-11-05 120 pgoff_t i = round_up(bend + 1, CACHEFILES_GRAN_PAGES);
2361ddad4441cd David Howells 2019-11-05 121 granule = i / CACHEFILES_GRAN_PAGES;
2361ddad4441cd David Howells 2019-11-05 122 if (!cachefiles_granule_is_present(object, granule))
2361ddad4441cd David Howells 2019-11-05 123 break;
2361ddad4441cd David Howells 2019-11-05 124 bend = i;
2361ddad4441cd David Howells 2019-11-05 125 }
2361ddad4441cd David Howells 2019-11-05 126
2361ddad4441cd David Howells 2019-11-05 127 if (bend > end)
2361ddad4441cd David Howells 2019-11-05 128 bend = end;
2361ddad4441cd David Howells 2019-11-05 129 end = bend;
2361ddad4441cd David Howells 2019-11-05 130 ret = FSCACHE_READ_FROM_CACHE;
2361ddad4441cd David Howells 2019-11-05 131 } else {
2361ddad4441cd David Howells 2019-11-05 132 /* Otherwise expand the extent in both directions to cover what
2361ddad4441cd David Howells 2019-11-05 133 * we want for caching purposes.
2361ddad4441cd David Howells 2019-11-05 134 */
2361ddad4441cd David Howells 2019-11-05 135 start = round_down(start, CACHEFILES_GRAN_PAGES);
2361ddad4441cd David Howells 2019-11-05 136 end = round_up(end, CACHEFILES_GRAN_PAGES);
2361ddad4441cd David Howells 2019-11-05 137
2361ddad4441cd David Howells 2019-11-05 138 if (limit != ULONG_MAX) {
2361ddad4441cd David Howells 2019-11-05 139 limit = round_down(limit, CACHEFILES_GRAN_PAGES);
2361ddad4441cd David Howells 2019-11-05 140 if (end > limit) {
2361ddad4441cd David Howells 2019-11-05 141 end = limit;
2361ddad4441cd David Howells 2019-11-05 142 if (end <= start) {
2361ddad4441cd David Howells 2019-11-05 143 _leave(" = don't");
2361ddad4441cd David Howells 2019-11-05 144 return 0;
2361ddad4441cd David Howells 2019-11-05 145 }
2361ddad4441cd David Howells 2019-11-05 146 }
2361ddad4441cd David Howells 2019-11-05 147 }
2361ddad4441cd David Howells 2019-11-05 148
2361ddad4441cd David Howells 2019-11-05 149 /* But trim to the end of the file and the starting page */
2361ddad4441cd David Howells 2019-11-05 150 eof = (i_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
2361ddad4441cd David Howells 2019-11-05 151 if (eof <= extent->start)
2361ddad4441cd David Howells 2019-11-05 152 eof = extent->start + 1;
2361ddad4441cd David Howells 2019-11-05 153 if (end > eof)
2361ddad4441cd David Howells 2019-11-05 154 end = eof;
2361ddad4441cd David Howells 2019-11-05 155
2361ddad4441cd David Howells 2019-11-05 156 bend = start + CACHEFILES_GRAN_PAGES;
2361ddad4441cd David Howells 2019-11-05 157 if (bend > eof)
2361ddad4441cd David Howells 2019-11-05 158 bend = eof;
2361ddad4441cd David Howells 2019-11-05 159 ret = FSCACHE_WRITE_TO_CACHE;
2361ddad4441cd David Howells 2019-11-05 160
2361ddad4441cd David Howells 2019-11-05 161 /* TODO: Check we have space in the cache */
2361ddad4441cd David Howells 2019-11-05 162 }
2361ddad4441cd David Howells 2019-11-05 163
2361ddad4441cd David Howells 2019-11-05 164 extent->start = start;
2361ddad4441cd David Howells 2019-11-05 @165 extent->block_end = bend;
2361ddad4441cd David Howells 2019-11-05 166 extent->limit = end;
2361ddad4441cd David Howells 2019-11-05 167 extent->dio_block_size = CACHEFILES_DIO_BLOCK_SIZE;
2361ddad4441cd David Howells 2019-11-05 168
2361ddad4441cd David Howells 2019-11-05 169 _leave(" = %u {%lx,%lx,%lx}", ret, start, bend, end);
2361ddad4441cd David Howells 2019-11-05 170 return ret;
2361ddad4441cd David Howells 2019-11-05 171 }
2361ddad4441cd David Howells 2019-11-05 172
:::::: The code at line 165 was first introduced by commit
:::::: 2361ddad4441cde3d7b868b7fa958a0e297aaac1 cachefiles: Implement extent shaper
:::::: TO: David Howells <dhowells(a)redhat.com>
:::::: CC: David Howells <dhowells(a)redhat.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months
[feng:master 9/9] mm/page_alloc.c:5900:2: note: in expansion of macro 'mp'
by kbuild test robot
tree: feng/master
head: 619111e085927a29a977d6efc97e359cd68aa11a
commit: 619111e085927a29a977d6efc97e359cd68aa11a [9/9] add more debug
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-1) 7.5.0
reproduce:
git checkout 619111e085927a29a977d6efc97e359cd68aa11a
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/kernel.h:130:22: note: in expansion of macro 'KERN_ERR'
trace_printk(KERN_ERR "" f "\n",##x)
^~~~~~~~
mm/page_alloc.c:3713:4: note: in expansion of macro 'mtp'
mtp("rmqueue zone n[%d].[%d] tloop=%d",
^~~
mm/page_alloc.c:3713:40: note: format string is defined here
mtp("rmqueue zone n[%d].[%d] tloop=%d",
~^
%ld
mm/page_alloc.c: In function '__alloc_pages_slowpath':
mm/page_alloc.c:4448:6: error: 'watchdog_thresh' undeclared (first use in this function); did you mean 'proc_watchdog_thresh'?
if (watchdog_thresh != 10 && (tloop % 256 == 0)) {
^~~~~~~~~~~~~~~
proc_watchdog_thresh
In file included from include/asm-generic/bug.h:19:0,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
mm/page_alloc.c:4452:34: error: 'struct zone' has no member named 'node'; did you mean 'name'?
ac->preferred_zoneref->zone->node,
^
include/linux/kernel.h:130:43: note: in definition of macro 'mtp'
trace_printk(KERN_ERR "" f "\n",##x)
^
mm/page_alloc.c: In function '__alloc_pages_nodemask':
mm/page_alloc.c:4804:6: error: 'watchdog_thresh' undeclared (first use in this function); did you mean 'proc_watchdog_thresh'?
if (watchdog_thresh != 10 ) {
^~~~~~~~~~~~~~~
proc_watchdog_thresh
In file included from include/asm-generic/bug.h:19:0,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
mm/page_alloc.c:4809:34: error: 'struct zone' has no member named 'node'; did you mean 'name'?
ac.preferred_zoneref->zone->node,
^
include/linux/kernel.h:130:43: note: in definition of macro 'mtp'
trace_printk(KERN_ERR "" f "\n",##x)
^
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/kernel.h:130:22: note: in expansion of macro 'KERN_ERR'
trace_printk(KERN_ERR "" f "\n",##x)
^~~~~~~~
mm/page_alloc.c:4848:5: note: in expansion of macro 'mtp'
mtp("dump ac.zonelists: (tloop=%d)", tloop);
^~~
mm/page_alloc.c:4848:37: note: format string is defined here
mtp("dump ac.zonelists: (tloop=%d)", tloop);
~^
%ld
In file included from include/asm-generic/bug.h:19:0,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
mm/page_alloc.c:4856:20: error: 'struct zone' has no member named 'node'; did you mean 'name'?
zrefs->zone->node,
^
include/linux/kernel.h:222:49: note: in definition of macro 'tm2p'
printk(KERN_ERR "[%s()]: " f "\n", __func__,##x); \
^
mm/page_alloc.c:4856:20: error: 'struct zone' has no member named 'node'; did you mean 'name'?
zrefs->zone->node,
^
include/linux/kernel.h:223:37: note: in definition of macro 'tm2p'
trace_printk(KERN_ERR "" f "\n",##x); \
^
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
mm/page_alloc.c: In function '__build_all_zonelists':
>> include/linux/kern_levels.h:5:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'void *' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/kernel.h:60:16: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR "[%s()]: " f "\n", __func__,##x)
^~~~~~~~
>> mm/page_alloc.c:5900:2: note: in expansion of macro 'mp'
mp("enter: data=0x%lx", data);
^~
mm/page_alloc.c:5900:22: note: format string is defined here
mp("enter: data=0x%lx", data);
~~^
%p
vim +/mp +5900 mm/page_alloc.c
5892
5893 static void __build_all_zonelists(void *data)
5894 {
5895 int nid;
5896 int __maybe_unused cpu;
5897 pg_data_t *self = data;
5898 static DEFINE_SPINLOCK(lock);
5899
> 5900 mp("enter: data=0x%lx", data);
5901
5902 spin_lock(&lock);
5903
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 5 months