All of lore.kernel.org
 help / color / mirror / Atom feed
* [leon-rdma:ethtool 16/22] drivers/net/ethernet/amazon/ena/ena_netdev.c:3472:2: note: in expansion of macro 'dev_err'
@ 2020-02-20  2:31 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-20  2:31 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 8916 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git ethtool
head:   53fa87f49a8c781b0b9d1ff93c826beea42d2d52
commit: 62e0b68d395ac33186873bf8ef247206a9458739 [16/22] net/amazon: Ensure that driver version is aligned to the linux kernel
config: riscv-randconfig-a001-20200219 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.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 62e0b68d395ac33186873bf8ef247206a9458739
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from arch/riscv/include/asm/page.h:143:0,
                    from arch/riscv/include/asm/thread_info.h:11,
                    from include/linux/thread_info.h:38,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/riscv/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/compat.h:10,
                    from include/linux/ethtool.h:17,
                    from drivers/net/ethernet/amazon/ena/ena_netdev.c:38:
   arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
   include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
    #define __pfn_to_page(pfn) (vmemmap + (pfn))
                                ^
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
    #define pfn_to_page __pfn_to_page
                        ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable-64.h:70:9: note: in expansion of macro 'pfn_to_page'
     return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
            ^~~~~~~~~~~
   include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
    #define __pfn_to_page(pfn) (vmemmap + (pfn))
                                ^
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
    #define pfn_to_page __pfn_to_page
                        ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable-64.h:70:9: note: in expansion of macro 'pfn_to_page'
     return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
            ^~~~~~~~~~~
   In file included from include/linux/device.h:15:0,
                    from include/linux/dma-mapping.h:7,
                    from include/linux/skbuff.h:31,
                    from include/linux/if_ether.h:19,
                    from include/uapi/linux/ethtool.h:19,
                    from include/linux/ethtool.h:18,
                    from drivers/net/ethernet/amazon/ena/ena_netdev.c:38:
   drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_restore_device':
>> include/linux/dev_printk.h:104:43: error: expected expression before ')' token
     _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                              ^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:3472:2: note: in expansion of macro 'dev_err'
     dev_err(&pdev->dev, "Device reset completed successfully\n", );
     ^~~~~~~
--
   In file included from arch/riscv/include/asm/page.h:143:0,
                    from arch/riscv/include/asm/thread_info.h:11,
                    from include/linux/thread_info.h:38,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/riscv/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/compat.h:10,
                    from include/linux/ethtool.h:17,
                    from drivers/net//ethernet/amazon/ena/ena_netdev.c:38:
   arch/riscv/include/asm/pgtable-64.h: In function 'pud_page':
   include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
    #define __pfn_to_page(pfn) (vmemmap + (pfn))
                                ^
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
    #define pfn_to_page __pfn_to_page
                        ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable-64.h:70:9: note: in expansion of macro 'pfn_to_page'
     return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
            ^~~~~~~~~~~
   include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
    #define __pfn_to_page(pfn) (vmemmap + (pfn))
                                ^
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
    #define pfn_to_page __pfn_to_page
                        ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable-64.h:70:9: note: in expansion of macro 'pfn_to_page'
     return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT);
            ^~~~~~~~~~~
   In file included from include/linux/device.h:15:0,
                    from include/linux/dma-mapping.h:7,
                    from include/linux/skbuff.h:31,
                    from include/linux/if_ether.h:19,
                    from include/uapi/linux/ethtool.h:19,
                    from include/linux/ethtool.h:18,
                    from drivers/net//ethernet/amazon/ena/ena_netdev.c:38:
   drivers/net//ethernet/amazon/ena/ena_netdev.c: In function 'ena_restore_device':
>> include/linux/dev_printk.h:104:43: error: expected expression before ')' token
     _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                              ^
   drivers/net//ethernet/amazon/ena/ena_netdev.c:3472:2: note: in expansion of macro 'dev_err'
     dev_err(&pdev->dev, "Device reset completed successfully\n", );
     ^~~~~~~

vim +/dev_err +3472 drivers/net/ethernet/amazon/ena/ena_netdev.c

  3428	
  3429	static int ena_restore_device(struct ena_adapter *adapter)
  3430	{
  3431		struct ena_com_dev_get_features_ctx get_feat_ctx;
  3432		struct ena_com_dev *ena_dev = adapter->ena_dev;
  3433		struct pci_dev *pdev = adapter->pdev;
  3434		bool wd_state;
  3435		int rc;
  3436	
  3437		set_bit(ENA_FLAG_ONGOING_RESET, &adapter->flags);
  3438		rc = ena_device_init(ena_dev, adapter->pdev, &get_feat_ctx, &wd_state);
  3439		if (rc) {
  3440			dev_err(&pdev->dev, "Can not initialize device\n");
  3441			goto err;
  3442		}
  3443		adapter->wd_state = wd_state;
  3444	
  3445		rc = ena_device_validate_params(adapter, &get_feat_ctx);
  3446		if (rc) {
  3447			dev_err(&pdev->dev, "Validation of device parameters failed\n");
  3448			goto err_device_destroy;
  3449		}
  3450	
  3451		rc = ena_enable_msix_and_set_admin_interrupts(adapter);
  3452		if (rc) {
  3453			dev_err(&pdev->dev, "Enable MSI-X failed\n");
  3454			goto err_device_destroy;
  3455		}
  3456		/* If the interface was up before the reset bring it up */
  3457		if (adapter->dev_up_before_reset) {
  3458			rc = ena_up(adapter);
  3459			if (rc) {
  3460				dev_err(&pdev->dev, "Failed to create I/O queues\n");
  3461				goto err_disable_msix;
  3462			}
  3463		}
  3464	
  3465		set_bit(ENA_FLAG_DEVICE_RUNNING, &adapter->flags);
  3466	
  3467		clear_bit(ENA_FLAG_ONGOING_RESET, &adapter->flags);
  3468		if (test_bit(ENA_FLAG_LINK_UP, &adapter->flags))
  3469			netif_carrier_on(adapter->netdev);
  3470	
  3471		mod_timer(&adapter->timer_service, round_jiffies(jiffies + HZ));
> 3472		dev_err(&pdev->dev, "Device reset completed successfully\n", );
  3473	
  3474		return rc;
  3475	err_disable_msix:
  3476		ena_free_mgmnt_irq(adapter);
  3477		ena_disable_msix(adapter);
  3478	err_device_destroy:
  3479		ena_com_abort_admin_commands(ena_dev);
  3480		ena_com_wait_for_abort_completion(ena_dev);
  3481		ena_com_admin_destroy(ena_dev);
  3482		ena_com_dev_reset(ena_dev, ENA_REGS_RESET_DRIVER_INVALID_STATE);
  3483		ena_com_mmio_reg_read_request_destroy(ena_dev);
  3484	err:
  3485		clear_bit(ENA_FLAG_DEVICE_RUNNING, &adapter->flags);
  3486		clear_bit(ENA_FLAG_ONGOING_RESET, &adapter->flags);
  3487		dev_err(&pdev->dev,
  3488			"Reset attempt failed. Can not reset the device\n");
  3489	
  3490		return rc;
  3491	}
  3492	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34807 bytes --]

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

only message in thread, other threads:[~2020-02-20  2:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-20  2:31 [leon-rdma:ethtool 16/22] drivers/net/ethernet/amazon/ena/ena_netdev.c:3472:2: note: in expansion of macro 'dev_err' kbuild 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.