lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204082206.73JkRYwL-lkp@intel.com>
Date:   Fri, 8 Apr 2022 23:02:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dave Stevenson <dave.stevenson@...pberrypi.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Dom Cobley <popcornmix@...il.com>
Subject: [l1k:smsc95xx_5.17 578/887]
 drivers/gpu/drm/panel/panel-sitronix-st7701.c:677: undefined reference to
 `spi_setup'

tree:   https://github.com/l1k/linux smsc95xx_5.17
head:   05d68ced287b30f62f18f95b5476135ef669804a
commit: 72c355c6c7656888e6124c1356c3f68cb9cf5b35 [578/887] drm/panel/panel-sitronix-st7701: Support SPI config and RGB data
config: i386-randconfig-a012 (https://download.01.org/0day-ci/archive/20220408/202204082206.73JkRYwL-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
        # https://github.com/l1k/linux/commit/72c355c6c7656888e6124c1356c3f68cb9cf5b35
        git remote add l1k https://github.com/l1k/linux
        git fetch --no-tags l1k smsc95xx_5.17
        git checkout 72c355c6c7656888e6124c1356c3f68cb9cf5b35
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   ld: drivers/gpu/drm/panel/panel-sitronix-st7701.o: in function `st7701_spi_probe':
>> drivers/gpu/drm/panel/panel-sitronix-st7701.c:677: undefined reference to `spi_setup'
   ld: drivers/gpu/drm/panel/panel-sitronix-st7701.o: in function `st7701_disable':
>> drivers/gpu/drm/panel/panel-sitronix-st7701.c:390: undefined reference to `spi_sync'
   ld: drivers/gpu/drm/panel/panel-sitronix-st7701.o: in function `st7701_enable':
   drivers/gpu/drm/panel/panel-sitronix-st7701.c:373: undefined reference to `spi_sync'
   ld: drivers/gpu/drm/panel/panel-sitronix-st7701.o: in function `st7701_unprepare':
   drivers/gpu/drm/panel/panel-sitronix-st7701.c:406: undefined reference to `spi_sync'
   ld: drivers/gpu/drm/panel/panel-sitronix-st7701.o: in function `txw210001b0_init_sequence':
   drivers/gpu/drm/panel/panel-sitronix-st7701.c:240: undefined reference to `spi_sync'
>> ld: drivers/gpu/drm/panel/panel-sitronix-st7701.c:244: undefined reference to `spi_sync'
   ld: drivers/gpu/drm/panel/panel-sitronix-st7701.o:drivers/gpu/drm/panel/panel-sitronix-st7701.c:247: more undefined references to `spi_sync' follow
   ld: drivers/gpu/drm/panel/panel-sitronix-st7701.o: in function `panel_st7701_init':
>> drivers/gpu/drm/panel/panel-sitronix-st7701.c:724: undefined reference to `__spi_register_driver'


vim +677 drivers/gpu/drm/panel/panel-sitronix-st7701.c

   669	
   670	static int st7701_spi_probe(struct spi_device *spi)
   671	{
   672		struct st7701 *st7701;
   673		int ret;
   674	
   675		spi->mode = SPI_MODE_3;
   676		spi->bits_per_word = 9;
 > 677		ret = spi_setup(spi);
   678		if (ret < 0) {
   679			dev_err(&spi->dev, "failed to setup SPI: %d\n", ret);
   680			return ret;
   681		}
   682	
   683		ret = st7701_probe(&spi->dev, &st7701);
   684	
   685		if (ret)
   686			return ret;
   687	
   688		spi_set_drvdata(spi, st7701);
   689		st7701->spi = spi;
   690	
   691		return 0;
   692	}
   693	
   694	static int st7701_spi_remove(struct spi_device *spi)
   695	{
   696		struct st7701 *ctx = spi_get_drvdata(spi);
   697	
   698		drm_panel_remove(&ctx->panel);
   699	
   700		return 0;
   701	}
   702	
   703	static const struct spi_device_id st7701_spi_ids[] = {
   704		{ "txw210001b0", 0 },
   705		{ "hyperpixel2round", 0 },
   706		{ /* sentinel */ }
   707	};
   708	MODULE_DEVICE_TABLE(spi, st7701_spi_ids);
   709	
   710	static struct spi_driver st7701_spi_driver = {
   711		.probe = st7701_spi_probe,
   712		.remove = st7701_spi_remove,
   713		.driver = {
   714			.name = "st7701",
   715			.of_match_table = st7701_spi_of_match,
   716		},
   717		.id_table = st7701_spi_ids,
   718	};
   719	
   720	static int __init panel_st7701_init(void)
   721	{
   722		int err;
   723	
 > 724		err = spi_register_driver(&st7701_spi_driver);
   725		if (err < 0)
   726			return err;
   727	
   728		if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
   729			err = mipi_dsi_driver_register(&st7701_dsi_driver);
   730			if (err < 0)
   731				goto err_did_spi_register;
   732		}
   733	
   734		return 0;
   735	
   736	err_did_spi_register:
   737		spi_unregister_driver(&st7701_spi_driver);
   738	
   739		return err;
   740	}
   741	module_init(panel_st7701_init);
   742	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ