All of lore.kernel.org
 help / color / mirror / Atom feed
* [acrn:6.17/linux 3121/3134] drivers/i2c/i2c-core-acpi.c:321:1: error: label at end of compound statement
@ 2026-03-07  5:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-07  5:51 UTC (permalink / raw)
  To: Khai Wen Ng; +Cc: oe-kbuild-all, sys_oak, Yew, Chang Ching

tree:   https://github.com/projectacrn/acrn-kernel 6.17/linux
head:   d2ae39d099178698dc32d2165a32f4d6d13d107b
commit: f5ccdd6257bea670f612e8bdabe5052d698dd031 [3121/3134] i2c: i2c-core-acpi: clear dependency for MUX or ATR adapters
config: arm64-randconfig-004-20260307 (https://download.01.org/0day-ci/archive/20260307/202603071342.3StYPDF8-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260307/202603071342.3StYPDF8-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/202603071342.3StYPDF8-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/i2c/i2c-core-acpi.c: In function 'i2c_acpi_register_device':
>> drivers/i2c/i2c-core-acpi.c:321:1: error: label at end of compound statement
    err:
    ^~~


vim +321 drivers/i2c/i2c-core-acpi.c

   276	
   277	static void i2c_acpi_register_device(struct i2c_adapter *adapter,
   278					     struct acpi_device *adev,
   279					     struct i2c_board_info *info)
   280	{
   281		/*
   282		 * Skip registration on boards where the ACPI tables are
   283		 * known to contain bogus I2C devices.
   284		 */
   285		if (acpi_quirk_skip_i2c_client_enumeration(adev))
   286			return;
   287	
   288		/* Check if Device is on ATR or MUX adapter */
   289		if (adapter->is_atr || adapter->is_mux) {
   290			u32 channel;
   291	
   292			if (fwnode_property_present(&adev->fwnode, "channel")) {
   293				if (fwnode_property_read_u32(&adev->fwnode, "channel", &channel)) {
   294					dev_err(&adev->dev, "failed to read channel property\n");
   295					return;
   296				}
   297	
   298				if (adapter->chan_id != channel) {
   299					dev_err(&adev->dev, "device is not on current adapter %d\n",
   300						adapter->chan_id);
   301					goto err;
   302				} else {
   303					acpi_dev_clear_dependencies(ACPI_COMPANION(adapter->dev.parent));
   304				}
   305	
   306				if (adev->dep_unmet) {
   307					dev_err(&adev->dev, "device has unmet dependencies\n");
   308					return;
   309				}
   310			} else {
   311				dev_err(&adev->dev, "channel property not present\n");
   312				return;
   313			}
   314		}
   315	
   316		adev->power.flags.ignore_parent = true;
   317		acpi_device_set_enumerated(adev);
   318	
   319		if (IS_ERR(i2c_new_client_device(adapter, info)))
   320			adev->power.flags.ignore_parent = false;
 > 321	err:
   322	}
   323	

-- 
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-03-07  5:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-07  5:51 [acrn:6.17/linux 3121/3134] drivers/i2c/i2c-core-acpi.c:321:1: error: label at end of compound statement 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.