From: kernel test robot <lkp@intel.com>
To: Naveen Naidu <naveennaidu479@gmail.com>, bhelgaas@google.com
Cc: kbuild-all@lists.01.org, Naveen Naidu <naveennaidu479@gmail.com>,
linux-kernel-mentees@lists.linuxfoundation.org,
skhan@linuxfoundation.org, linux-kernel@vger.kernel.org,
linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 1/1] PCI: Add KUnit tests for __pci_read_base()
Date: Thu, 18 Nov 2021 09:16:08 +0800 [thread overview]
Message-ID: <202111180927.UBrZ4Pg3-lkp@intel.com> (raw)
In-Reply-To: <cfd0ed29f4cbe71006fec8503b747841425e32d8.1636956898.git.naveennaidu479@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3139 bytes --]
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-20211117]
[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-Initial-KUnit-test-fixture-for-resource-assignment/20211115-142802
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: um-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/b8f5b94d52de6904d367ff34aa924593d931a853
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Naveen-Naidu/PCI-Initial-KUnit-test-fixture-for-resource-assignment/20211115-142802
git checkout b8f5b94d52de6904d367ff34aa924593d931a853
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/pci/pci-read-base-test.c:355:13: error: conflicting types for 'init_registers'
355 | static void init_registers(void)
| ^~~~~~~~~~~~~~
In file included from arch/um/include/asm/processor-generic.h:14,
from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:96,
from include/linux/mm_types.h:9,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from include/kunit/test.h:15,
from drivers/pci/pci-read-base-test.c:7:
arch/um/include/shared/registers.h:20:12: note: previous declaration of 'init_registers' was here
20 | extern int init_registers(int pid);
| ^~~~~~~~~~~~~~
vim +/init_registers +355 drivers/pci/pci-read-base-test.c
348
349 /*
350 * -----------------------------------------------------------------------
351 * Functions for managing test values
352 * -----------------------------------------------------------------------
353 */
354
> 355 static void init_registers(void)
356 {
357 unsigned int i, array_size;
358 struct config_space_bitfield *type_hdr;
359
360 if (type_header_test_case == PCI_HEADER_TYPE_NORMAL) {
361 type_hdr = type_0_header;
362 array_size = ARRAY_SIZE(type_0_header);
363 } else {
364 type_hdr = type_1_header;
365 array_size = ARRAY_SIZE(type_1_header);
366 }
367
368 for (i = 0; i < array_size; i++, type_hdr++)
369 set_register(type_hdr->offset, type_hdr->value, type_hdr->size);
370 }
371
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 63417 bytes --]
prev parent reply other threads:[~2021-11-18 1:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-15 6:25 [PATCH v2 0/1] PCI: Initial KUnit test fixture for resource assignment Naveen Naidu
2021-11-15 6:25 ` [PATCH v2 1/1] PCI: Add KUnit tests for __pci_read_base() Naveen Naidu
2021-11-18 1:16 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111180927.UBrZ4Pg3-lkp@intel.com \
--to=lkp@intel.com \
--cc=bhelgaas@google.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=naveennaidu479@gmail.com \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox