All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/gpio/gpiolib-kunit.c:914:48: warning: implicit conversion from 'enum gpio_lookup_flags' to 'enum gpiod_flags'
@ 2026-10-02  3:35 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-02  3:35 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Bartosz-Golaszewski/gpio-kunit-fix-the-label-of-the-dummy-GPIO-chip/20261001-144053, commit: a3de9e52abf8088aa329337733ae4ad3cdb6f10f"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
CC: 0day robot <lkp@intel.com>

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
date:   15 hours ago
:::::: branch date: 15 hours ago
:::::: commit date: 15 hours ago
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/gpio/gpiolib-kunit.c:914:48: warning: implicit conversion from 'enum gpio_lookup_flags' to 'enum gpiod_flags'
@ 2026-10-03 14:44 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-03 14:44 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: oe-kbuild-all, 0day robot

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-03 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-03 14:44 drivers/gpio/gpiolib-kunit.c:914:48: warning: implicit conversion from 'enum gpio_lookup_flags' to 'enum gpiod_flags' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-10-02  3:35 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.