* [intel-linux-intel-lts:5.4/preempt-rt 6707/9039] drivers/misc/gna/gna_drv.c:270:6: error: no previous prototype for function 'gna_dev_release'
@ 2020-08-20 15:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-20 15:16 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4213 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: 6fa41e866e0be2824b0f5efb593f8635ee2a3bde
commit: 2d2e3dc79dbf54b9905e4086db001a25047d8c0c [6707/9039] Enable support for GNA drivers based on GNA API specification 2.0
config: x86_64-randconfig-r031-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4deda57106f7c9b982a49cb907c33e3966c8de7f)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 2d2e3dc79dbf54b9905e4086db001a25047d8c0c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/misc/gna/gna_drv.c:270:6: error: no previous prototype for function 'gna_dev_release' [-Werror,-Wmissing-prototypes]
void gna_dev_release(struct device *dev)
^
drivers/misc/gna/gna_drv.c:270:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void gna_dev_release(struct device *dev)
^
static
1 error generated.
--
>> drivers/misc/gna/gna_pci.c:61:2: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
GNA_GEN2_FEATURES
^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:37:21: note: expanded from macro 'GNA_GEN2_FEATURES'
.max_layer_count = 4096
^~~~
drivers/misc/gna/gna_pci.c:61:2: note: previous initialization is here
GNA_GEN2_FEATURES
^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:36:2: note: expanded from macro 'GNA_GEN2_FEATURES'
GNA_GEN1_FEATURES, \
^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:33:21: note: expanded from macro 'GNA_GEN1_FEATURES'
.max_layer_count = 1023
^~~~
drivers/misc/gna/gna_pci.c:66:2: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
GNA_GEN2_FEATURES
^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:37:21: note: expanded from macro 'GNA_GEN2_FEATURES'
.max_layer_count = 4096
^~~~
drivers/misc/gna/gna_pci.c:66:2: note: previous initialization is here
GNA_GEN2_FEATURES
^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:36:2: note: expanded from macro 'GNA_GEN2_FEATURES'
GNA_GEN1_FEATURES, \
^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:33:21: note: expanded from macro 'GNA_GEN1_FEATURES'
.max_layer_count = 1023
^~~~
2 errors generated.
# https://github.com/intel/linux-intel-lts/commit/2d2e3dc79dbf54b9905e4086db001a25047d8c0c
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 2d2e3dc79dbf54b9905e4086db001a25047d8c0c
vim +/gna_dev_release +270 drivers/misc/gna/gna_drv.c
269
> 270 void gna_dev_release(struct device *dev)
271 {
272 struct gna_private *gna_priv;
273
274 dev_dbg(dev, "%s enter\n", __func__);
275
276 gna_priv = dev_get_drvdata(dev);
277
278 __clear_bit(MINOR(dev->devt), gna_drv_priv.dev_map);
279 flush_workqueue(gna_priv->request_wq);
280 destroy_workqueue(gna_priv->request_wq);
281 idr_destroy(&gna_priv->memory_idr);
282 gna_mmu_free(gna_priv);
283 dev_set_drvdata(dev, NULL);
284 pci_set_drvdata(gna_priv->pdev, NULL);
285
286 kfree(gna_priv);
287
288 dev_dbg(dev, "%s exit\n", __func__);
289 }
290
---
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: 35101 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-20 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 15:16 [intel-linux-intel-lts:5.4/preempt-rt 6707/9039] drivers/misc/gna/gna_drv.c:270:6: error: no previous prototype for function 'gna_dev_release' 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.