All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:5.14-hdmilarb 45/45] drivers/iommu/iommu.c:926:2: warning: ISO C90 forbids mixed declarations and code
@ 2021-07-14 17:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-14 17:49 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/frank-w/BPI-R2-4.14 5.14-hdmilarb
head:   a11fbee1b23c2d5f7c177ced2043eb54c53a5d50
commit: a11fbee1b23c2d5f7c177ced2043eb54c53a5d50 [45/45] iommu: add debug
config: i386-randconfig-r011-20210714 (attached as .config)
compiler: gcc-10 (Debian 10.2.1-6) 10.2.1 20210110
reproduce (this is a W=1 build):
        # https://github.com/frank-w/BPI-R2-4.14/commit/a11fbee1b23c2d5f7c177ced2043eb54c53a5d50
        git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
        git fetch --no-tags frank-w-bpi-r2-4.14 5.14-hdmilarb
        git checkout a11fbee1b23c2d5f7c177ced2043eb54c53a5d50
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   drivers/iommu/iommu.c: In function 'iommu_group_remove_device':
>> drivers/iommu/iommu.c:926:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     926 |  struct iommu_group *group = dev->iommu_group;
         |  ^~~~~~


vim +926 drivers/iommu/iommu.c

d72e31c9374627 Alex Williamson  2012-05-30  915  
d72e31c9374627 Alex Williamson  2012-05-30  916  /**
d72e31c9374627 Alex Williamson  2012-05-30  917   * iommu_group_remove_device - remove a device from it's current group
d72e31c9374627 Alex Williamson  2012-05-30  918   * @dev: device to be removed
d72e31c9374627 Alex Williamson  2012-05-30  919   *
d72e31c9374627 Alex Williamson  2012-05-30  920   * This function is called by an iommu driver to remove the device from
d72e31c9374627 Alex Williamson  2012-05-30  921   * it's current group.  This decrements the iommu group reference count.
d72e31c9374627 Alex Williamson  2012-05-30  922   */
d72e31c9374627 Alex Williamson  2012-05-30  923  void iommu_group_remove_device(struct device *dev)
d72e31c9374627 Alex Williamson  2012-05-30  924  {
a11fbee1b23c2d Frank Wunderlich 2021-07-14  925  printk(KERN_ALERT "DEBUG: Passed %s %d \n",__FUNCTION__,__LINE__);
d72e31c9374627 Alex Williamson  2012-05-30 @926  	struct iommu_group *group = dev->iommu_group;
c09e22d5370739 Joerg Roedel     2017-02-01  927  	struct group_device *tmp_device, *device = NULL;
d72e31c9374627 Alex Williamson  2012-05-30  928  

:::::: The code at line 926 was first introduced by commit
:::::: d72e31c9374627068df29da8085ca18c92ae35d3 iommu: IOMMU Groups

:::::: TO: Alex Williamson <alex.williamson@redhat.com>
:::::: CC: Joerg Roedel <joerg.roedel@amd.com>

---
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: 52484 bytes --]

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

only message in thread, other threads:[~2021-07-14 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14 17:49 [frank-w-bpi-r2-4.14:5.14-hdmilarb 45/45] drivers/iommu/iommu.c:926:2: warning: ISO C90 forbids mixed declarations and code kernel 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.