CC: [email protected] TO: [email protected] tree: https://android.googlesource.com/kernel/common android-5.4 head: 2aa2175f27463e9bbc49c062813f890a491e901a commit: 695cfeb08863e147e56b4895443440692cfcebff [6/10] ANDROID: dm: add support for passing through inline crypto support :::::: branch date: 5 months ago :::::: commit date: 5 months ago config: x86_64-randconfig-s032-20200609 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-247-gcadbd124-dirty git checkout 695cfeb08863e147e56b4895443440692cfcebff # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) drivers/md/dm.c:520:12: sparse: sparse: context imbalance in 'dm_prepare_ioctl' - wrong count at exit drivers/md/dm.c:555:13: sparse: sparse: context imbalance in 'dm_unprepare_ioctl' - wrong count at exit drivers/md/dm.c:1136:13: sparse: sparse: context imbalance in 'dm_dax_supported' - different lock contexts for basic block >> drivers/md/dm.c:2275:12: sparse: sparse: context imbalance in >> 'dm_keyslot_evict' - different lock contexts for basic block arch/x86/include/asm/bitops.h:77:37: sparse: sparse: cast truncates bits from constant value (ffffff7f becomes 7f) git remote add android-common https://android.googlesource.com/kernel/common git remote update android-common git checkout 695cfeb08863e147e56b4895443440692cfcebff vim +/dm_keyslot_evict +2275 drivers/md/dm.c 695cfeb08863e1 Eric Biggers 2020-01-21 2270 695cfeb08863e1 Eric Biggers 2020-01-21 2271 /* 695cfeb08863e1 Eric Biggers 2020-01-21 2272 * When an inline encryption key is evicted from a device-mapper device, evict 695cfeb08863e1 Eric Biggers 2020-01-21 2273 * it from all the underlying devices. 695cfeb08863e1 Eric Biggers 2020-01-21 2274 */ 695cfeb08863e1 Eric Biggers 2020-01-21 @2275 static int dm_keyslot_evict(struct keyslot_manager *ksm, 695cfeb08863e1 Eric Biggers 2020-01-21 2276 const struct blk_crypto_key *key, unsigned int slot) 695cfeb08863e1 Eric Biggers 2020-01-21 2277 { 695cfeb08863e1 Eric Biggers 2020-01-21 2278 struct mapped_device *md = keyslot_manager_private(ksm); 695cfeb08863e1 Eric Biggers 2020-01-21 2279 struct dm_keyslot_evict_args args = { key }; 695cfeb08863e1 Eric Biggers 2020-01-21 2280 struct dm_table *t; 695cfeb08863e1 Eric Biggers 2020-01-21 2281 int srcu_idx; 695cfeb08863e1 Eric Biggers 2020-01-21 2282 int i; 695cfeb08863e1 Eric Biggers 2020-01-21 2283 struct dm_target *ti; 695cfeb08863e1 Eric Biggers 2020-01-21 2284 695cfeb08863e1 Eric Biggers 2020-01-21 2285 t = dm_get_live_table(md, &srcu_idx); 695cfeb08863e1 Eric Biggers 2020-01-21 2286 if (!t) 695cfeb08863e1 Eric Biggers 2020-01-21 2287 return 0; 695cfeb08863e1 Eric Biggers 2020-01-21 2288 for (i = 0; i < dm_table_get_num_targets(t); i++) { 695cfeb08863e1 Eric Biggers 2020-01-21 2289 ti = dm_table_get_target(t, i); 695cfeb08863e1 Eric Biggers 2020-01-21 2290 if (!ti->type->iterate_devices) 695cfeb08863e1 Eric Biggers 2020-01-21 2291 continue; 695cfeb08863e1 Eric Biggers 2020-01-21 2292 ti->type->iterate_devices(ti, dm_keyslot_evict_callback, &args); 695cfeb08863e1 Eric Biggers 2020-01-21 2293 } 695cfeb08863e1 Eric Biggers 2020-01-21 2294 dm_put_live_table(md, srcu_idx); 695cfeb08863e1 Eric Biggers 2020-01-21 2295 return args.err; 695cfeb08863e1 Eric Biggers 2020-01-21 2296 } 695cfeb08863e1 Eric Biggers 2020-01-21 2297 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
