Re: [PATCH] pinctrl: amd: isp411: Add amdisp GPIO pinctrl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pratap,

kernel test robot noticed the following build errors:

[auto build test ERROR on linusw-pinctrl/devel]
[also build test ERROR on linusw-pinctrl/for-next linus/master v6.14-rc4 next-20250228]
[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/Pratap-Nirujogi/pinctrl-amd-isp411-Add-amdisp-GPIO-pinctrl/20250301-011050
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/20250228165749.3476210-1-pratap.nirujogi%40amd.com
patch subject: [PATCH] pinctrl: amd: isp411: Add amdisp GPIO pinctrl
config: hexagon-randconfig-r072-20250302 (https://download.01.org/0day-ci/archive/20250302/202503020937.17QhMxc9-lkp@xxxxxxxxx/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 14170b16028c087ca154878f5ed93d3089a965c6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250302/202503020937.17QhMxc9-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503020937.17QhMxc9-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/pinctrl/pinctrl-amdisp.c:196:6: error: no member named 'of_node' in 'struct gpio_chip'; did you mean 'fwnode'?
     196 |         gc->of_node             = pdev->dev.of_node;
         |             ^~~~~~~
         |             fwnode
   include/linux/gpio/driver.h:421:24: note: 'fwnode' declared here
     421 |         struct fwnode_handle    *fwnode;
         |                                  ^
   1 error generated.


vim +196 drivers/pinctrl/pinctrl-amdisp.c

   173	
   174	static int amdisp_gpiochip_add(struct platform_device *pdev,
   175				       struct amdisp_pinctrl *pctrl)
   176	{
   177		struct gpio_chip *gc = &pctrl->gc;
   178		struct pinctrl_gpio_range *grange = &pctrl->gpio_range;
   179		int ret;
   180	
   181		gc->label		= dev_name(pctrl->dev);
   182		gc->owner		= THIS_MODULE;
   183		gc->parent		= &pdev->dev;
   184		gc->names		= amdisp_range_pins_name;
   185		gc->request		= gpiochip_generic_request;
   186		gc->free		= gpiochip_generic_free;
   187		gc->get_direction	= amdisp_gpio_get_direction;
   188		gc->direction_input	= amdisp_gpio_direction_input;
   189		gc->direction_output	= amdisp_gpio_direction_output;
   190		gc->get			= amdisp_gpio_get;
   191		gc->set			= amdisp_gpio_set;
   192		gc->set_config		= amdisp_gpio_set_config;
   193		gc->base		= -1;
   194		gc->ngpio		= ARRAY_SIZE(amdisp_range_pins);
   195	#if defined(CONFIG_OF_GPIO)
 > 196		gc->of_node		= pdev->dev.of_node;
   197		gc->of_gpio_n_cells	= 2;
   198	#endif
   199	
   200		grange->id		= 0;
   201		grange->pin_base	= 0;
   202		grange->base		= 0;
   203		grange->pins		= amdisp_range_pins;
   204		grange->npins		= ARRAY_SIZE(amdisp_range_pins);
   205		grange->name		= gc->label;
   206		grange->gc		= gc;
   207	
   208		ret = devm_gpiochip_add_data(&pdev->dev, gc, pctrl);
   209		if (ret)
   210			return ret;
   211	
   212		pinctrl_add_gpio_range(pctrl->pctrl, grange);
   213	
   214		dev_info(&pdev->dev, "register amdisp gpio controller\n");
   215		return 0;
   216	}
   217	#endif
   218	

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




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux