Re: [PATCH 1/1] PCI: Add KUnit tests for __pci_read_base()

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

 



Hi Naveen,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on helgaas-pci/next]
[also build test ERROR on v5.16-rc1 next-20211115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Naveen-Naidu/PCI-Intial-KUnit-test-fixture-for-resource-assignment/20211115-041125
base:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/57b950c5684fcfff54e46f4369fd7f708a29ca60
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Naveen-Naidu/PCI-Intial-KUnit-test-fixture-for-resource-assignment/20211115-041125
        git checkout 57b950c5684fcfff54e46f4369fd7f708a29ca60
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/pci/pci-read-base-test.c:538:6: error: no previous prototype for 'set_test_data_type_1_headers' [-Werror=missing-prototypes]
     538 | void set_test_data_type_1_headers(
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/set_test_data_type_1_headers +538 drivers/pci/pci-read-base-test.c

   537	
 > 538	void set_test_data_type_1_headers(
   539		const struct type_1_header_test_data test_data, struct resource *res)
   540	{
   541		res->start = 0;
   542		res->end = 0;
   543		res->flags = test_data.res_flags;
   544	
   545		type_1_header[BAR0].value = test_data.BAR0_value;
   546		type_1_header[BAR1].value = test_data.BAR1_value;
   547	
   548		type_1_BARS_config[config_BAR0].allocated_size =
   549			test_data.BAR0_allocated_size;
   550	
   551		type_1_BARS_config[config_BAR1].allocated_size =
   552			test_data.BAR1_allocated_size;
   553	
   554		init_registers();
   555	}
   556	

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

Attachment: .config.gz
Description: application/gzip


[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