[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202009090403.Y2Bh9vir%lkp@intel.com>
Date: Wed, 9 Sep 2020 04:48:06 +0800
From: kernel test robot <lkp@...el.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org
Subject: drivers/staging/media/atomisp//pci/ia_css_firmware.h:51:29: warning:
'struct device' declared inside parameter list will not be visible outside
of this definition or declaration
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f4d51dffc6c01a9e94650d95ce0104964f8ae822
commit: 08fef4fa947ba75cbf59d67c6be75223c6471a88 media: atomisp: get rid of memory_access.c
date: 3 months ago
config: i386-randconfig-a002-20200909 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 08fef4fa947ba75cbf59d67c6be75223c6471a88
# 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@...el.com>
All warnings (new ones prefixed by >>):
cc1: warning: drivers/staging/media/atomisp//pci/hive_isp_css_include/memory_access/: No such file or directory [-Wmissing-include-dirs]
In file included from drivers/staging/media/atomisp//pci/ia_css_control.h:24,
from drivers/staging/media/atomisp//pci/ia_css.h:27,
from drivers/staging/media/atomisp//pci/atomisp_compat_css20.h:23,
from drivers/staging/media/atomisp//pci/atomisp_compat.h:21,
from drivers/staging/media/atomisp/pci/mmu/sh_mmu_mrfld.c:22:
>> drivers/staging/media/atomisp//pci/ia_css_firmware.h:51:29: warning: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration
51 | ia_css_load_firmware(struct device *dev, const struct ia_css_env *env,
| ^~~~~~
In file included from drivers/staging/media/atomisp//pci/ia_css.h:27,
from drivers/staging/media/atomisp//pci/atomisp_compat_css20.h:23,
from drivers/staging/media/atomisp//pci/atomisp_compat.h:21,
from drivers/staging/media/atomisp/pci/mmu/sh_mmu_mrfld.c:22:
>> drivers/staging/media/atomisp//pci/ia_css_control.h:48:36: warning: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration
48 | enum ia_css_err ia_css_init(struct device *dev,
| ^~~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=08fef4fa947ba75cbf59d67c6be75223c6471a88
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 08fef4fa947ba75cbf59d67c6be75223c6471a88
vim +51 drivers/staging/media/atomisp//pci/ia_css_firmware.h
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 31
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 32 /* @brief Loads the firmware
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 33 * @param[in] env Environment, provides functions to access the
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 34 * environment in which the CSS code runs. This is
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 35 * used for host side memory access and message
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 36 * printing.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 37 * @param[in] fw Firmware package containing the firmware for all
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 38 * predefined ISP binaries.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 39 * @return Returns IA_CSS_ERR_INTERNAL_ERROR in case of any
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 40 * errors and IA_CSS_SUCCESS otherwise.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 41 *
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 42 * This function interprets the firmware package. All
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 43 * contents of this firmware package are copied into local data structures, so
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 44 * the fw pointer could be freed after this function completes.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 45 *
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 46 * Rationale for this function is that it can be called before ia_css_init, and thus
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 47 * speeds up ia_css_init (ia_css_init is called each time a stream is created but the
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 48 * firmware only needs to be loaded once).
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 49 */
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 50 enum ia_css_err
8568fe630066a7 drivers/staging/media/atomisp/pci/ia_css_firmware.h Mauro Carvalho Chehab 2020-05-07 @51 ia_css_load_firmware(struct device *dev, const struct ia_css_env *env,
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 52 const struct ia_css_fw *fw);
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_firmware.h Mauro Carvalho Chehab 2020-04-19 53
:::::: The code at line 51 was first introduced by commit
:::::: 8568fe630066a733456fb1ffc8e1402191d7e27c media: atomisp: print a better message when fw version is wrong
:::::: TO: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (37843 bytes)
Powered by blists - more mailing lists