All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: ChunAn Wu <an.wu@canonical.com>,
	linux-serial@vger.kernel.org,
	platform-driver-x86@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-kernel@vger.kernel.org, markus.probst@posteo.de,
	gregkh@linuxfoundation.org, jirislaby@kernel.org,
	hansg@kernel.org, ilpo.jarvinen@linux.intel.com,
	mpearson-lenovo@squebb.ca, derekjohn.clark@gmail.com
Subject: Re: [PATCH v4] platform/x86: dell-uart-backlight: Bind through normal serdev matching
Date: Sun, 25 Oct 2026 01:42:26 +0800	[thread overview]
Message-ID: <202610250118.t0UAW41j-lkp@intel.com> (raw)
In-Reply-To: <20261024022930.2704030-3-an.wu@canonical.com>

Hi ChunAn,

kernel test robot noticed the following build errors:

[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on driver-core/driver-core-next driver-core/driver-core-linus linus/master v7.3 next-20261023]
[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/ChunAn-Wu/platform-x86-dell-uart-backlight-Bind-through-normal-serdev-matching/20261024-102929
base:   driver-core/driver-core-testing
patch link:    https://lore.kernel.org/r/20261024022930.2704030-3-an.wu%40canonical.com
patch subject: [PATCH v4] platform/x86: dell-uart-backlight: Bind through normal serdev matching
config: x86_64-randconfig-1014-20261024 (https://download.01.org/0day-ci/archive/20261025/202610250118.t0UAW41j-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261025/202610250118.t0UAW41j-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/202610250118.t0UAW41j-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/platform/x86/dell/dell-uart-backlight.c:328:60: error: array has incomplete element type 'const struct serdev_device_id'
     328 | static const struct serdev_device_id dell_uart_bl_serdev_id[] = {
         |                                                            ^
   drivers/platform/x86/dell/dell-uart-backlight.c:328:21: note: forward declaration of 'struct serdev_device_id'
     328 | static const struct serdev_device_id dell_uart_bl_serdev_id[] = {
         |                     ^
>> drivers/platform/x86/dell/dell-uart-backlight.c:363:34: error: too many arguments to function call, expected 1, have 2
     363 |         ret = serdev_device_add(serdev, KBUILD_MODNAME);
         |               ~~~~~~~~~~~~~~~~~         ^~~~~~~~~~~~~~
   <command line>:8:24: note: expanded from macro 'KBUILD_MODNAME'
       8 | #define KBUILD_MODNAME "dell_uart_backlight"
         |                        ^~~~~~~~~~~~~~~~~~~~~
   include/linux/serdev.h:161:5: note: 'serdev_device_add' declared here
     161 | int serdev_device_add(struct serdev_device *);
         |     ^                 ~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +328 drivers/platform/x86/dell/dell-uart-backlight.c

   327	
 > 328	static const struct serdev_device_id dell_uart_bl_serdev_id[] = {
   329		{ KBUILD_MODNAME },
   330		{ }
   331	};
   332	
   333	static struct serdev_device_driver dell_uart_bl_serdev_driver = {
   334		.probe = dell_uart_bl_serdev_probe,
   335		.driver = {
   336			.name = KBUILD_MODNAME,
   337		},
   338		.id_table = dell_uart_bl_serdev_id,
   339	};
   340	
   341	static int dell_uart_bl_pdev_probe(struct platform_device *pdev)
   342	{
   343		enum acpi_backlight_type bl_type;
   344		struct serdev_device *serdev;
   345		struct device *ctrl_dev;
   346		int ret;
   347	
   348		bl_type = acpi_video_get_backlight_type();
   349		if (bl_type != acpi_backlight_dell_uart) {
   350			dev_dbg(&pdev->dev, "Not loading (ACPI backlight type = %d)\n", bl_type);
   351			return -ENODEV;
   352		}
   353	
   354		ctrl_dev = get_serdev_controller("DELL0501", NULL, 0, "serial0");
   355		if (IS_ERR(ctrl_dev))
   356			return PTR_ERR(ctrl_dev);
   357	
   358		serdev = serdev_device_alloc(to_serdev_controller(ctrl_dev));
   359		put_device(ctrl_dev);
   360		if (!serdev)
   361			return -ENOMEM;
   362	
 > 363		ret = serdev_device_add(serdev, KBUILD_MODNAME);
   364		if (ret) {
   365			dev_err(&pdev->dev, "error %d adding serdev\n", ret);
   366			serdev_device_put(serdev);
   367			return ret;
   368		}
   369	
   370		ret = serdev_device_driver_register(&dell_uart_bl_serdev_driver);
   371		if (ret)
   372			goto err_remove_serdev;
   373	
   374		/* So that dell_uart_bl_pdev_remove() can remove the serdev */
   375		platform_set_drvdata(pdev, serdev);
   376		return 0;
   377	
   378	err_remove_serdev:
   379		serdev_device_remove(serdev);
   380		return ret;
   381	}
   382	

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

  parent reply	other threads:[~2026-10-24 17:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-24  2:29 [PATCH v4 0/3] serdev: handle devices without an ACPI or device tree node ChunAn Wu
2026-10-24  2:29 ` [PATCH v4 1/3] " ChunAn Wu
2026-10-24  4:09   ` sashiko-bot
2026-10-24  2:29 ` [PATCH v4] platform/x86: dell-uart-backlight: Bind through normal serdev matching ChunAn Wu
2026-10-24  2:35   ` sashiko-bot
2026-10-24 11:59   ` kernel test robot
2026-10-24 12:03     ` Markus Probst
2026-10-24 17:42   ` kernel test robot [this message]
2026-10-24  2:29 ` [PATCH v4 3/3] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: " ChunAn Wu
2026-10-24  4:07   ` sashiko-bot
2026-10-24  3:50 ` [PATCH v4 2/3] platform/x86: dell-uart-backlight: " ChunAn Wu
2026-10-24  4:02   ` sashiko-bot
2026-10-24  8:40 ` [PATCH v4 0/3] serdev: handle devices without an ACPI or device tree node An Wu
2026-10-24 11:48   ` Markus Probst

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=202610250118.t0UAW41j-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=an.wu@canonical.com \
    --cc=derekjohn.clark@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jirislaby@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=markus.probst@posteo.de \
    --cc=mpearson-lenovo@squebb.ca \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=platform-driver-x86@vger.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 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.