All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ganesh Goudar <ganeshgr@linux.ibm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH v2 1/3] powerpc/eeh: Synchronization for safety
Date: Thu, 27 Jul 2023 03:06:55 +0800	[thread overview]
Message-ID: <202307270301.SCREaz0f-lkp@intel.com> (raw)
In-Reply-To: <20230724070020.239173-2-ganeshgr@linux.ibm.com>

Hi Ganesh,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on powerpc/next]
[also build test ERROR on powerpc/fixes awilliam-vfio/next awilliam-vfio/for-linus akpm-mm/mm-everything linus/master v6.5-rc3 next-20230726]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ganesh-Goudar/powerpc-eeh-Synchronization-for-safety/20230724-150512
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
patch link:    https://lore.kernel.org/r/20230724070020.239173-2-ganeshgr%40linux.ibm.com
patch subject: [RFC PATCH v2 1/3] powerpc/eeh: Synchronization for safety
config: powerpc-powernv_defconfig (https://download.01.org/0day-ci/archive/20230727/202307270301.SCREaz0f-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230727/202307270301.SCREaz0f-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307270301.SCREaz0f-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/powerpc/kernel/eeh_driver.c:310:18: error: no previous prototype for function 'pdev_cache_list_create' [-Werror,-Wmissing-prototypes]
     310 | struct pci_dev **pdev_cache_list_create(struct eeh_pe *root)
         |                  ^
   arch/powerpc/kernel/eeh_driver.c:310:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     310 | struct pci_dev **pdev_cache_list_create(struct eeh_pe *root)
         | ^
         | static 
>> arch/powerpc/kernel/eeh_driver.c:579:16: error: unused variable 'flags' [-Werror,-Wunused-variable]
     579 |         unsigned long flags;
         |                       ^
   2 errors generated.


vim +/pdev_cache_list_create +310 arch/powerpc/kernel/eeh_driver.c

   309	
 > 310	struct pci_dev **pdev_cache_list_create(struct eeh_pe *root)
   311	{
   312		struct eeh_pe *pe;
   313		struct eeh_dev *edev, *tmp;
   314		struct pci_dev **pdevs;
   315		int i, n;
   316	
   317		n = 0;
   318		eeh_for_each_pe(root, pe) eeh_pe_for_each_dev(pe, edev, tmp) {
   319			if (edev->pdev)
   320				n++;
   321		}
   322		pdevs = kmalloc(sizeof(*pdevs) * (n + 1), GFP_KERNEL);
   323		if (WARN_ON_ONCE(!pdevs))
   324			return NULL;
   325		i = 0;
   326		eeh_for_each_pe(root, pe) eeh_pe_for_each_dev(pe, edev, tmp) {
   327			if (i < n) {
   328				get_device(&edev->pdev->dev);
   329				pdevs[i++] = edev->pdev;
   330			}
   331		}
   332		if (WARN_ON_ONCE(i < n))
   333			n = i;
   334		pdevs[n] = NULL; /* terminator */
   335		return pdevs;
   336	}
   337	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2023-07-26 19:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-24  7:00 [RFC PATCH v2 0/3] Asynchronous EEH recovery Ganesh Goudar
2023-07-24  7:00 ` [RFC PATCH v2 1/3] powerpc/eeh: Synchronization for safety Ganesh Goudar
2023-07-26 19:06   ` kernel test robot [this message]
2023-07-24  7:00 ` [RFC PATCH v2 2/3] powerpc/eeh: Provide a unique ID for each EEH recovery Ganesh Goudar
2023-07-24  7:00 ` [RFC PATCH v2 3/3] powerpc/eeh: Asynchronous recovery Ganesh Goudar

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=202307270301.SCREaz0f-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ganeshgr@linux.ibm.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.