Re: [PATCH v3 09/13] serial: sh-sci: Introduced sci_of_data

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

 



Hi Thierry,

kernel test robot noticed the following build errors:

[auto build test ERROR on tty/tty-testing]
[also build test ERROR on tty/tty-next next-20250227]
[cannot apply to geert-renesas-drivers/renesas-clk tty/tty-linus geert-renesas-devel/next linus/master v6.14-rc4]
[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/Thierry-Bultel/dt-bindings-clock-Add-cpg-for-the-Renesas-RZ-T2H-SoC/20250226-221033
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
patch link:    https://lore.kernel.org/r/20250226130935.3029927-10-thierry.bultel.yh%40bp.renesas.com
patch subject: [PATCH v3 09/13] serial: sh-sci: Introduced sci_of_data
config: sh-randconfig-002-20250227 (https://download.01.org/0day-ci/archive/20250227/202502272137.JyS2vQml-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250227/202502272137.JyS2vQml-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/202502272137.JyS2vQml-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/tty/serial/sh-sci.c: In function 'sci_probe_earlyprintk':
>> drivers/tty/serial/sh-sci.c:3249:31: error: initialization of 'struct sci_port *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    3249 |         struct sci_port *sp = pdev->id;
         |                               ^~~~


vim +3249 drivers/tty/serial/sh-sci.c

  3245	
  3246	static int sci_probe_earlyprintk(struct platform_device *pdev)
  3247	{
  3248		const struct plat_sci_port *cfg = dev_get_platdata(&pdev->dev);
> 3249		struct sci_port *sp = pdev->id;
  3250	
  3251		if (early_serial_console.data)
  3252			return -EEXIST;
  3253	
  3254		early_serial_console.index = pdev->id;
  3255	
  3256		sp->params = sci_probe_regmap(cfg, sp);
  3257		if (!sp->params)
  3258			return -ENODEV;
  3259	
  3260		sci_init_single(pdev, &sci_ports[pdev->id], pdev->id, cfg, true);
  3261	
  3262		if (!strstr(early_serial_buf, "keep"))
  3263			early_serial_console.flags |= CON_BOOT;
  3264	
  3265		register_console(&early_serial_console);
  3266		return 0;
  3267	}
  3268	#endif
  3269	

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




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux