[PATCH 10/10] crypto: sun8i-ce - implement request batching

kernel test robot lkp at intel.com
Thu Jun 19 20:00:18 PDT 2025


Hi Ovidiu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on herbert-cryptodev-2.6/master]
[also build test WARNING on next-20250619]
[cannot apply to sunxi/sunxi/for-next herbert-crypto-2.6/master linus/master v6.16-rc2]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ovidiu-Panait/crypto-sun8i-ce-remove-channel-timeout-field/20250619-202957
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
patch link:    https://lore.kernel.org/r/20250619122316.2587236-11-ovidiu.panait.oss%40gmail.com
patch subject: [PATCH 10/10] crypto: sun8i-ce - implement request batching
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20250620/202506201006.eQ2P1PuC-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250620/202506201006.eQ2P1PuC-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506201006.eQ2P1PuC-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c: In function 'sun8i_ce_dump_task_descriptors':
>> drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c:178:52: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=]
     178 |                 snprintf(task, sizeof(task), "TASK %d:", i);
         |                                                    ^~
   drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c:178:46: note: directive argument in the range [-2147483641, 2147483646]
     178 |                 snprintf(task, sizeof(task), "TASK %d:", i);
         |                                              ^~~~~~~~~~
   drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c:178:17: note: 'snprintf' output between 8 and 18 bytes into a destination of size 12
     178 |                 snprintf(task, sizeof(task), "TASK %d:", i);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +178 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c

   171	
   172	static void sun8i_ce_dump_task_descriptors(struct sun8i_ce_flow *chan)
   173	{
   174		for (int i = 0; i < chan->reqs_no; ++i) {
   175			struct ce_task *cet = &chan->tl[i];
   176			char task[CE_MAX_TASK_DESCR_DUMP_MSG_SIZE];
   177	
 > 178			snprintf(task, sizeof(task), "TASK %d:", i);
   179			print_hex_dump(KERN_INFO, task, DUMP_PREFIX_NONE, 16, 4,
   180				       cet, sizeof(struct ce_task), false);
   181		}
   182	}
   183	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list