All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/crypto/amlogic/amlogic-gxl-core.c:166:42: error: implicit declaration of function 'devm_crypto_engine_alloc_init'; did you mean 'crypto_engine_alloc_init'?
@ 2026-08-31  1:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-31  1:28 UTC (permalink / raw)
  To: Mohamad Raizudeen; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Mohamad-Raizudeen/crypto-amlogic-Use-devm-APIs-for-clock-and-engine-management/20260821-204303
head:   9f703793f0a723cf495c90aed76fb7f1e99e02b1
commit: 9f703793f0a723cf495c90aed76fb7f1e99e02b1 crypto: amlogic: Use devm APIs for clock and engine management
date:   8 days ago
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260831/202608310329.QgxCCMs1-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260831/202608310329.QgxCCMs1-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608310329.QgxCCMs1-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/crypto/amlogic/amlogic-gxl-core.c: In function 'meson_allocate_chanlist':
>> drivers/crypto/amlogic/amlogic-gxl-core.c:166:42: error: implicit declaration of function 'devm_crypto_engine_alloc_init'; did you mean 'crypto_engine_alloc_init'? [-Wimplicit-function-declaration]
     166 |                 mc->chanlist[i].engine = devm_crypto_engine_alloc_init(mc->dev, true);
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                          crypto_engine_alloc_init
>> drivers/crypto/amlogic/amlogic-gxl-core.c:166:40: error: assignment to 'struct crypto_engine *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     166 |                 mc->chanlist[i].engine = devm_crypto_engine_alloc_init(mc->dev, true);
         |                                        ^


vim +166 drivers/crypto/amlogic/amlogic-gxl-core.c

   150	
   151	/*
   152	 * Allocate the channel list structure
   153	 */
   154	static int meson_allocate_chanlist(struct meson_dev *mc)
   155	{
   156		int i, err;
   157	
   158		mc->chanlist = devm_kcalloc(mc->dev, MAXFLOW,
   159					    sizeof(struct meson_flow), GFP_KERNEL);
   160		if (!mc->chanlist)
   161			return -ENOMEM;
   162	
   163		for (i = 0; i < MAXFLOW; i++) {
   164			init_completion(&mc->chanlist[i].complete);
   165	
 > 166			mc->chanlist[i].engine = devm_crypto_engine_alloc_init(mc->dev, true);
   167			if (!mc->chanlist[i].engine) {
   168				dev_err(mc->dev, "Cannot allocate engine\n");
   169				i--;
   170				err = -ENOMEM;
   171				goto error_engine;
   172			}
   173			err = crypto_engine_start(mc->chanlist[i].engine);
   174			if (err) {
   175				dev_err(mc->dev, "Cannot start engine\n");
   176				goto error_engine;
   177			}
   178			mc->chanlist[i].tl = dma_alloc_coherent(mc->dev,
   179								sizeof(struct meson_desc) * MAXDESC,
   180								&mc->chanlist[i].t_phy,
   181								GFP_KERNEL);
   182			if (!mc->chanlist[i].tl) {
   183				err = -ENOMEM;
   184				goto error_engine;
   185			}
   186		}
   187		return 0;
   188	error_engine:
   189		meson_free_chanlist(mc, i);
   190		return err;
   191	}
   192	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-31  1:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31  1:28 drivers/crypto/amlogic/amlogic-gxl-core.c:166:42: error: implicit declaration of function 'devm_crypto_engine_alloc_init'; did you mean 'crypto_engine_alloc_init'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.