tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 2db8add7871ad9a3a9a0d79a35333cd57a7b3c34
commit: 2db8add7871ad9a3a9a0d79a35333cd57a7b3c34 [10/10] ANDROID: Initial commit of
Incremental FS
config: nios2-allyesconfig (attached as .config)
compiler: nios2-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 2db8add7871ad9a3a9a0d79a35333cd57a7b3c34
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:15,
from include/linux/crypto.h:16,
from include/crypto/hash.h:11,
from fs/incfs/integrity.c:6:
fs/incfs/integrity.c: In function 'incfs_validate_pkcs7_signature':
> fs/incfs/integrity.c:24:12: warning: format '%ld' expects
argument of type 'long int', but argument 4 has type 'size_t' {aka
'unsigned int'} [-Wformat=]
24 | pr_debug("PKCS#7 parsing
error. ptr=%p size=%ld err=%ld\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:283:21: note: in definition of macro 'pr_fmt'
283 | #define pr_fmt(fmt) fmt
| ^~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro
'__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro
'_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:331:2: note: in expansion of macro 'dynamic_pr_debug'
331 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
fs/incfs/integrity.c:24:3: note: in expansion of macro 'pr_debug'
24 | pr_debug("PKCS#7 parsing error. ptr=%p size=%ld err=%ld\n",
| ^~~~~~~~
fs/incfs/integrity.c:24:49: note: format string is defined here
24 | pr_debug("PKCS#7 parsing error. ptr=%p size=%ld err=%ld\n",
| ~~^
| |
| long int
| %d
--
In file included from fs/incfs/vfs.c:22:
fs/incfs/data_mgmt.h: In function 'get_incfs_node':
fs/incfs/data_mgmt.h:263:27: warning: comparison is always true due to limited range of
data type [-Wtype-limits]
263 | if (inode->i_sb->s_magic != INCFS_MAGIC_NUMBER) {
| ^~
fs/incfs/vfs.c: In function 'ioctl_create_file':
fs/incfs/vfs.c:1324:4: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
1324 | (struct incfs_file_signature_info __user *)
| ^
fs/incfs/vfs.c: At top level:
> fs/incfs/vfs.c:2058:16: warning: no previous prototype for
'incfs_mount_fs' [-Wmissing-prototypes]
2058 | struct dentry
*incfs_mount_fs(struct file_system_type *type, int flags,
| ^~~~~~~~~~~~~~
In file included from fs/incfs/vfs.c:19:
fs/incfs/vfs.c: In function 'incfs_mount_fs':
include/uapi/linux/incrementalfs.h:21:28: warning: conversion from 'long long
unsigned int' to 'long unsigned int' changes value from '357661101641'
to '1178816073' [-Woverflow]
21 | #define INCFS_MAGIC_NUMBER (0x5346434e49ul)
| ^
fs/incfs/vfs.c:2076:16: note: in expansion of macro 'INCFS_MAGIC_NUMBER'
2076 | sb->s_magic = INCFS_MAGIC_NUMBER;
| ^~~~~~~~~~~~~~~~~~
fs/incfs/vfs.c: At top level:
> fs/incfs/vfs.c:2177:6: warning: no previous prototype for
'incfs_kill_sb' [-Wmissing-prototypes]
2177 | void incfs_kill_sb(struct
super_block *sb)
| ^~~~~~~~~~~~~
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 2db8add7871ad9a3a9a0d79a35333cd57a7b3c34
vim +24 fs/incfs/integrity.c
6 #include <crypto/hash.h>
7 #include
<linux/err.h>
8 #include <linux/version.h>
9 #include <crypto/pkcs7.h>
10
11 #include "integrity.h"
12
13 int incfs_validate_pkcs7_signature(struct mem_range pkcs7_blob,
14 struct mem_range root_hash, struct mem_range add_data)
15 {
16 struct pkcs7_message *pkcs7 = NULL;
17 const void *data = NULL;
18 size_t data_len = 0;
19 const char *p;
20 int err;
21
22 pkcs7 = pkcs7_parse_message(pkcs7_blob.data, pkcs7_blob.len);
23 if (IS_ERR(pkcs7)) {
24 pr_debug("PKCS#7 parsing error. ptr=%p size=%ld
err=%ld\n",
25 pkcs7_blob.data, pkcs7_blob.len, -PTR_ERR(pkcs7));
26 return PTR_ERR(pkcs7);
27 }
28
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org