tree:
git://linuxtv.org/hverkuil/media_tree.git for-v5.9g
head: b89aa206069e38a992a4c995322116dbfe6c2116
commit: 935ac8622c84a06b5f53e8ddeb2b1c605062c7ec [19/23] media: allegro: add config blob
for channel
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
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
git checkout 935ac8622c84a06b5f53e8ddeb2b1c605062c7ec
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/staging/media/allegro-dvt/allegro-mail.c: In function
'allegro_enc_create_channel':
> drivers/staging/media/allegro-dvt/allegro-mail.c:165:2: error:
implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
165 | memcpy(&dst[i], msg->blob, msg->blob_size);
| ^~~~~~
drivers/staging/media/allegro-dvt/allegro-mail.c:15:1: note: 'memcpy' is
defined in header '<string.h>'; did you forget to '#include
<string.h>'?
14 | #include "allegro-mail.h"
+++ |+#include <string.h>
15 |
cc1: some warnings being treated as errors
vim +/memcpy +165 drivers/staging/media/allegro-dvt/allegro-mail.c
157
158 static ssize_t
159 allegro_enc_create_channel(u32 *dst, struct mcu_msg_create_channel *msg)
160 {
161 unsigned int i = 0;
162
163 dst[i++] = msg->user_id;
164
165 memcpy(&dst[i], msg->blob, msg->blob_size);
166 i += msg->blob_size / sizeof(*dst);
167
168 return i * sizeof(*dst);
169 }
170
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org