All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Cc: <oe-kbuild-all@lists.linux.dev>, 0day robot <lkp@intel.com>
Subject: drivers/gpio/gpiolib-kunit.c:914:48: warning: implicit conversion from 'enum gpio_lookup_flags' to 'enum gpiod_flags'
Date: Sat, 3 Oct 2026 22:44:18 +0800	[thread overview]
Message-ID: <asEUwrldKdkrdEKL@rli9-mobl> (raw)

tree:   https://github.com/intel-lab-lkp/linux/commits/Bartosz-Golaszewski/gpio-kunit-fix-the-label-of-the-dummy-GPIO-chip/20261001-144053
head:   a3de9e52abf8088aa329337733ae4ad3cdb6f10f
commit: a3de9e52abf8088aa329337733ae4ad3cdb6f10f gpio: kunit: add a test case for platform lookup tables
config: sparc-randconfig-1000-20261002 (https://download.01.org/0day-ci/archive/20261002/202610021118.3YnVbQoU-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261002/202610021118.3YnVbQoU-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/r/202610021118.3YnVbQoU-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpio/gpiolib-kunit.c: In function 'gpio_lookup_table_global':
>> drivers/gpio/gpiolib-kunit.c:914:48: warning: implicit conversion from 'enum gpio_lookup_flags' to 'enum gpiod_flags' [-Wenum-conversion]
     914 |         desc = gpiod_get_index(NULL, "foo", 0, GPIO_ACTIVE_HIGH);
         |                                                ^~~~~~~~~~~~~~~~
>> drivers/gpio/gpiolib-kunit.c:897:42: warning: unused variable 'pdata' [-Wunused-variable]
     897 |         struct gpio_test_consumer_pdata *pdata;
         |                                          ^~~~~


vim +914 drivers/gpio/gpiolib-kunit.c

a3de9e52abf808 Bartosz Golaszewski 2026-10-01  894  
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  895  static void gpio_lookup_table_global(struct kunit *test)
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  896  {
a3de9e52abf808 Bartosz Golaszewski 2026-10-01 @897  	struct gpio_test_consumer_pdata *pdata;
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  898  	struct platform_device_info pdevinfo;
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  899  	struct platform_device *pdev;
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  900  	struct gpio_desc *desc;
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  901  	int ret;
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  902  
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  903  	ret = kunit_gpiod_add_lookup_table(test, &gpio_test_lookup_table_global);
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  904  	KUNIT_ASSERT_EQ(test, ret, 0);
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  905  
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  906  	pdevinfo = (struct platform_device_info){
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  907  		.name = GPIO_TEST_PROVIDER,
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  908  		.id = PLATFORM_DEVID_NONE,
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  909  	};
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  910  
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  911  	pdev = kunit_platform_device_register_full(test, &pdevinfo);
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  912  	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev);
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  913  
a3de9e52abf808 Bartosz Golaszewski 2026-10-01 @914  	desc = gpiod_get_index(NULL, "foo", 0, GPIO_ACTIVE_HIGH);
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  915  	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, desc);
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  916  
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  917  	gpiod_put(desc);
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  918  }
a3de9e52abf808 Bartosz Golaszewski 2026-10-01  919  

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


             reply	other threads:[~2026-10-03 14:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03 14:44 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-10-02  3:35 drivers/gpio/gpiolib-kunit.c:914:48: warning: implicit conversion from 'enum gpio_lookup_flags' to 'enum gpiod_flags' 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=asEUwrldKdkrdEKL@rli9-mobl \
    --to=lkp@intel.com \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.