Hi Peng,
FYI, the error/warning still remains.
tree:
https://github.com/Freescale/linux-fslc pr/256
head: 833dfde20a84e72abea15e51e24b5027091c864c
commit: ad144fec7a113f7abafcf29e24aa841782d40935 [8790/16397] MLK-23754-19 remoteproc: add
rproc_memcpy
config: i386-randconfig-p001-20210213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/Freescale/linux-fslc/commit/ad144fec7a113f7abafcf29e24...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/256
git checkout ad144fec7a113f7abafcf29e24aa841782d40935
# 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(a)intel.com>
All errors (new ones prefixed by >>):
drivers/remoteproc/remoteproc_core.c: In function 'rproc_memcpy':
> drivers/remoteproc/remoteproc_core.c:85:59: error: macro
"memcpy" passed 5 arguments, but takes just 3
85 | return
rproc->ops->memcpy(rproc, dest, src, count, flags);
| ^
In file included from arch/x86/include/asm/string.h:3,
from include/linux/string.h:20,
from arch/x86/include/asm/page_32.h:35,
from arch/x86/include/asm/page.h:14,
from arch/x86/include/asm/thread_info.h:12,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:10,
from drivers/remoteproc/remoteproc_core.c:20:
arch/x86/include/asm/string_32.h:182: note: macro "memcpy" defined here
182 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
|
drivers/remoteproc/remoteproc_core.c: In function
'rproc_find_carveout_by_name':
drivers/remoteproc/remoteproc_core.c:271:2: warning: function
'rproc_find_carveout_by_name' might be a candidate for 'gnu_printf' format
attribute [-Wsuggest-attribute=format]
271 | vsnprintf(_name, sizeof(_name), name, args);
| ^~~~~~~~~
drivers/remoteproc/remoteproc_core.c: In function 'rproc_mem_entry_init':
drivers/remoteproc/remoteproc_core.c:1000:2: warning: function
'rproc_mem_entry_init' might be a candidate for 'gnu_printf' format
attribute [-Wsuggest-attribute=format]
1000 | vsnprintf(mem->name, sizeof(mem->name), name, args);
| ^~~~~~~~~
drivers/remoteproc/remoteproc_core.c: In function
'rproc_of_resm_mem_entry_init':
drivers/remoteproc/remoteproc_core.c:1036:2: warning: function
'rproc_of_resm_mem_entry_init' might be a candidate for 'gnu_printf'
format attribute [-Wsuggest-attribute=format]
1036 | vsnprintf(mem->name, sizeof(mem->name), name, args);
| ^~~~~~~~~
vim +/memcpy +85 drivers/remoteproc/remoteproc_core.c
73
74 /*
75 * rproc_memcpy() - memcpy verison for remoteproc usage
76 * @flags:
77 * - 0 means to DA
78 * - 1 means from DA
79 *
80 */
81 void *rproc_memcpy(struct rproc *rproc, void *dest,
82 const void *src, size_t count, int flags)
83 {
84 if (rproc->ops->memcpy)
85 return rproc->ops->memcpy(rproc, dest, src, count, flags);
86
87 return memcpy(dest, src, count);
88 }
89 EXPORT_SYMBOL(rproc_memcpy);
90
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org