Hi Roberto,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on hnaz-mm/master]
[also build test ERROR on linus/master fscrypt/fsverity v5.16-rc1]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Roberto-Sassu/shmem-fsverity-Pre...
base:
https://github.com/hnaz/linux-mm master
config: i386-randconfig-c021-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/b954223b18edd435d0bc93893ee4fa0fe...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Roberto-Sassu/shmem-fsverity-Prepare-for-mandatory-integrity-enforcement/20211112-204742
git checkout b954223b18edd435d0bc93893ee4fa0fe47261d2
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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 >>):
ld: fs/verity/open.o: in function `fsverity_get_file_digest':
> fs/verity/open.c:232: undefined reference to
`hash_algo_name'
> ld: fs/verity/open.c:237: undefined reference to `hash_digest_size'
ld:
fs/verity/open.c:242: undefined reference to `hash_digest_size'
vim +232 fs/verity/open.c
220
221 /*
222 * Copy the file digest and associated algorithm taken from the passed
223 * fsverity_info structure to the locations supplied by the caller.
224 *
225 * Return: the digest size on success, a negative value on error
226 */
227 ssize_t fsverity_get_file_digest(struct fsverity_info *info, u8 *buf,
228 size_t bufsize, enum hash_algo *algo)
229 {
230 enum hash_algo a;
231
232 a = match_string(hash_algo_name, HASH_ALGO__LAST,
233 info->tree_params.hash_alg->name);
234 if (a < 0)
235 return a;
236
237 if (bufsize < hash_digest_size[a])
238 return
-ERANGE;
239
240 *algo = a;
241 memcpy(buf, info->file_digest, hash_digest_size[*algo]);
242 return hash_digest_size[*algo];
243 }
244
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org