[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210211628.OejOWfeI-lkp@intel.com>
Date: Fri, 21 Oct 2022 16:23:56 +0800
From: kernel test robot <lkp@...el.com>
To: Sweet Tea Dorminy <sweettea-kernel@...miny.me>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
David Sterba <dsterba@...e.com>
Subject: [kdave-btrfs-devel:ext/sweettea/fscrypt-v3 45/46]
fs/btrfs/verity.c:299:13: error: 'ciphertext_page' undeclared
tree: https://github.com/kdave/btrfs-devel.git ext/sweettea/fscrypt-v3
head: 4303e47e934b3af3940fbccf09515645b7084d78
commit: ffa77d855249656a98c19997ae6b771bdcfcfbda [45/46] btrfs: encrypt verity items
config: i386-randconfig-a005
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/kdave/btrfs-devel/commit/ffa77d855249656a98c19997ae6b771bdcfcfbda
git remote add kdave-btrfs-devel https://github.com/kdave/btrfs-devel.git
git fetch --no-tags kdave-btrfs-devel ext/sweettea/fscrypt-v3
git checkout ffa77d855249656a98c19997ae6b771bdcfcfbda
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/btrfs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
fs/btrfs/verity.c: In function 'write_key_bytes':
>> fs/btrfs/verity.c:299:13: error: 'ciphertext_page' undeclared (first use in this function)
299 | if (ciphertext_page) {
| ^~~~~~~~~~~~~~~
fs/btrfs/verity.c:299:13: note: each undeclared identifier is reported only once for each function it appears in
In file included from <command-line>:
>> fs/btrfs/verity.c:300:30: error: 'ciphertext_buf' undeclared (first use in this function)
300 | kunmap_local(ciphertext_buf);
| ^~~~~~~~~~~~~~
include/linux/compiler_types.h:337:23: note: in definition of macro '__compiletime_assert'
337 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:357:9: note: in expansion of macro '_compiletime_assert'
357 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/linux/highmem-internal.h:283:9: note: in expansion of macro 'BUILD_BUG_ON'
283 | BUILD_BUG_ON(__same_type((__addr), struct page *)); \
| ^~~~~~~~~~~~
include/linux/highmem-internal.h:283:22: note: in expansion of macro '__same_type'
283 | BUILD_BUG_ON(__same_type((__addr), struct page *)); \
| ^~~~~~~~~~~
fs/btrfs/verity.c:300:17: note: in expansion of macro 'kunmap_local'
300 | kunmap_local(ciphertext_buf);
| ^~~~~~~~~~~~
vim +/ciphertext_page +299 fs/btrfs/verity.c
267
268 /* 1 for the new item being inserted */
269 trans = btrfs_start_transaction(root, 1);
270 if (IS_ERR(trans)) {
271 ret = PTR_ERR(trans);
272 break;
273 }
274
275 key.objectid = btrfs_ino(inode);
276 key.type = key_type;
277 key.offset = offset;
278
279 ret = btrfs_insert_empty_item(trans, root, path, &key, copy_bytes);
280 if (ret) {
281 btrfs_end_transaction(trans);
282 break;
283 }
284
285 leaf = path->nodes[0];
286
287 data_pos = btrfs_item_ptr(leaf, path->slots[0], void);
288 write_extent_buffer(leaf, data,
289 (unsigned long)data_pos, copy_bytes);
290 offset += copy_bytes;
291 src_offset += copy_bytes;
292 len -= min_t(u64, copy_bytes, len);
293
294 btrfs_release_path(path);
295 btrfs_end_transaction(trans);
296 }
297
298 btrfs_free_path(path);
> 299 if (ciphertext_page) {
> 300 kunmap_local(ciphertext_buf);
301 __free_page(ciphertext_page);
302 }
303
304 return ret;
305 }
306
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (154867 bytes)
Powered by blists - more mailing lists