Re: [PATCH v3] crypto: add virtio-crypto driver
From: kbuild test robot
Date: Mon Nov 28 2016 - 11:03:14 EST
Hi Gonglei,
[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.9-rc7 next-20161128]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Gonglei/crypto-add-virtio-crypto-driver/20161128-214706
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: sparc-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc
All error/warnings (new ones prefixed by >>):
In file included from arch/sparc/include/asm/topology.h:4:0,
from include/linux/topology.h:35,
from include/linux/gfp.h:8,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/crypto/virtio/virtio_crypto_mgr.c:21:
drivers/crypto/virtio/virtio_crypto_common.h: In function 'virtio_crypto_get_current_node':
>> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of function 'cpu_data' [-Werror=implicit-function-declaration]
#define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
^
>> drivers/crypto/virtio/virtio_crypto_common.h:118:9: note: in expansion of macro 'topology_physical_package_id'
return topology_physical_package_id(smp_processor_id());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/sparc/include/asm/topology_64.h:44:57: error: request for member 'proc_id' in something not a structure or union
#define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
^
>> drivers/crypto/virtio/virtio_crypto_common.h:118:9: note: in expansion of macro 'topology_physical_package_id'
return topology_physical_package_id(smp_processor_id());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/topology_physical_package_id +118 drivers/crypto/virtio/virtio_crypto_common.h
102 };
103
104 int virtcrypto_devmgr_add_dev(struct virtio_crypto *vcrypto_dev);
105 struct list_head *virtcrypto_devmgr_get_head(void);
106 void virtcrypto_devmgr_rm_dev(struct virtio_crypto *vcrypto_dev);
107 struct virtio_crypto *virtcrypto_devmgr_get_first(void);
108 int virtcrypto_dev_in_use(struct virtio_crypto *vcrypto_dev);
109 int virtcrypto_dev_get(struct virtio_crypto *vcrypto_dev);
110 void virtcrypto_dev_put(struct virtio_crypto *vcrypto_dev);
111 int virtcrypto_dev_started(struct virtio_crypto *vcrypto_dev);
112 struct virtio_crypto *virtcrypto_get_dev_node(int node);
113 int virtcrypto_dev_start(struct virtio_crypto *vcrypto);
114 void virtcrypto_dev_stop(struct virtio_crypto *vcrypto);
115
116 static inline int virtio_crypto_get_current_node(void)
117 {
> 118 return topology_physical_package_id(smp_processor_id());
119 }
120
121 int virtio_crypto_algs_register(void);
122 void virtio_crypto_algs_unregister(void);
123
124 #endif /* _VIRITO_CRYPTO_COMMON_H */
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip