Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [robh:for-kernelci 13/21] drivers/net/ethernet/airoha/airoha_npu.c:430:65: error: expected ';' after expression
Date: Wed, 7 May 2025 05:36:38 +0800	[thread overview]
Message-ID: <202505070505.K7VO14tM-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-kernelci
head:   c9f24a593a0afe40f6b37f868ce7d6453c97839b
commit: 187439642c68be0ad8084f0156064c4fa443225c [13/21] net: Use of_reserved_mem_region_to_resource{_byname}() for "memory-region"
config: i386-buildonly-randconfig-2002-20250506 (https://download.01.org/0day-ci/archive/20250507/202505070505.K7VO14tM-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505070505.K7VO14tM-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/202505070505.K7VO14tM-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/airoha/airoha_npu.c:430:65: error: expected ';' after expression
     430 |         err = of_reserved_mem_region_to_resource(dev->of_node, 0, &res)
         |                                                                        ^
         |                                                                        ;
>> drivers/net/ethernet/airoha/airoha_npu.c:465:43: error: use of undeclared identifier 'rmem'
     465 |         err = airoha_npu_run_firmware(dev, base, rmem);
         |                                                  ^
   2 errors generated.


vim +430 drivers/net/ethernet/airoha/airoha_npu.c

   403	
   404	static int airoha_npu_probe(struct platform_device *pdev)
   405	{
   406		struct device *dev = &pdev->dev;
   407		struct airoha_npu *npu;
   408		struct resource res;
   409		void __iomem *base;
   410		int i, irq, err;
   411	
   412		base = devm_platform_ioremap_resource(pdev, 0);
   413		if (IS_ERR(base))
   414			return PTR_ERR(base);
   415	
   416		npu = devm_kzalloc(dev, sizeof(*npu), GFP_KERNEL);
   417		if (!npu)
   418			return -ENOMEM;
   419	
   420		npu->dev = dev;
   421		npu->ops.ppe_init = airoha_npu_ppe_init;
   422		npu->ops.ppe_deinit = airoha_npu_ppe_deinit;
   423		npu->ops.ppe_flush_sram_entries = airoha_npu_ppe_flush_sram_entries;
   424		npu->ops.ppe_foe_commit_entry = airoha_npu_foe_commit_entry;
   425	
   426		npu->regmap = devm_regmap_init_mmio(dev, base, &regmap_config);
   427		if (IS_ERR(npu->regmap))
   428			return PTR_ERR(npu->regmap);
   429	
 > 430		err = of_reserved_mem_region_to_resource(dev->of_node, 0, &res)
   431		if (err)
   432			return err;
   433	
   434		irq = platform_get_irq(pdev, 0);
   435		if (irq < 0)
   436			return irq;
   437	
   438		err = devm_request_irq(dev, irq, airoha_npu_mbox_handler,
   439				       IRQF_SHARED, "airoha-npu-mbox", npu);
   440		if (err)
   441			return err;
   442	
   443		for (i = 0; i < ARRAY_SIZE(npu->cores); i++) {
   444			struct airoha_npu_core *core = &npu->cores[i];
   445	
   446			spin_lock_init(&core->lock);
   447			core->npu = npu;
   448	
   449			irq = platform_get_irq(pdev, i + 1);
   450			if (irq < 0)
   451				return irq;
   452	
   453			err = devm_request_irq(dev, irq, airoha_npu_wdt_handler,
   454					       IRQF_SHARED, "airoha-npu-wdt", core);
   455			if (err)
   456				return err;
   457	
   458			INIT_WORK(&core->wdt_work, airoha_npu_wdt_work);
   459		}
   460	
   461		err = dma_set_coherent_mask(dev, DMA_BIT_MASK(32));
   462		if (err)
   463			return err;
   464	
 > 465		err = airoha_npu_run_firmware(dev, base, rmem);
   466		if (err)
   467			return dev_err_probe(dev, err, "failed to run npu firmware\n");
   468	
   469		regmap_write(npu->regmap, REG_CR_NPU_MIB(10),
   470			     res.start + NPU_EN7581_FIRMWARE_RV32_MAX_SIZE);
   471		regmap_write(npu->regmap, REG_CR_NPU_MIB(11), 0x40000); /* SRAM 256K */
   472		regmap_write(npu->regmap, REG_CR_NPU_MIB(12), 0);
   473		regmap_write(npu->regmap, REG_CR_NPU_MIB(21), 1);
   474		msleep(100);
   475	
   476		/* setting booting address */
   477		for (i = 0; i < NPU_NUM_CORES; i++)
   478			regmap_write(npu->regmap, REG_CR_BOOT_BASE(i), res.start);
   479		usleep_range(1000, 2000);
   480	
   481		/* enable NPU cores */
   482		/* do not start core3 since it is used for WiFi offloading */
   483		regmap_write(npu->regmap, REG_CR_BOOT_CONFIG, 0xf7);
   484		regmap_write(npu->regmap, REG_CR_BOOT_TRIGGER, 0x1);
   485		msleep(100);
   486	
   487		platform_set_drvdata(pdev, npu);
   488	
   489		return 0;
   490	}
   491	

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

             reply	other threads:[~2025-05-06 21:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-06 21:36 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-01  4:47 [robh:for-kernelci 13/21] drivers/net/ethernet/airoha/airoha_npu.c:430:65: error: expected ';' after expression kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202505070505.K7VO14tM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox