linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [mszyprow:v5.18-next-20220511-dsi-rework 30/35] drivers/gpu/drm/drm_mipi_dsi.c:1233: warning: expecting prototype for mipi_dsi_init(). Prototype was for mipi_dsi_host_init() instead
@ 2022-05-11 21:35 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-05-11 21:35 UTC (permalink / raw)
  To: Marek Szyprowski; +Cc: kbuild-all, linux-kernel

tree:   https://github.com/mszyprow/linux.git v5.18-next-20220511-dsi-rework
head:   d29c9c083847e486080eaa98808c232b9937f85f
commit: b34dc79ad31fa0497197519a9060be3ef2e72484 [30/35] drm/mipi-dsi: add support for host initialize callbacks
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220512/202205120512.Q6FPhYo7-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/mszyprow/linux/commit/b34dc79ad31fa0497197519a9060be3ef2e72484
        git remote add mszyprow https://github.com/mszyprow/linux.git
        git fetch --no-tags mszyprow v5.18-next-20220511-dsi-rework
        git checkout b34dc79ad31fa0497197519a9060be3ef2e72484
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/gpu/drm/

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_mipi_dsi.c:1233: warning: expecting prototype for mipi_dsi_init(). Prototype was for mipi_dsi_host_init() instead


vim +1233 drivers/gpu/drm/drm_mipi_dsi.c

  1225	
  1226	/**
  1227	 * mipi_dsi_init() - initialize MIPI DSI host
  1228	 * @dsi: DSI peripheral device
  1229	 *
  1230	 * Return: 0 on success or a negative error code on failure.
  1231	 */
  1232	int mipi_dsi_host_init(struct mipi_dsi_device *dsi)
> 1233	{
  1234		const struct mipi_dsi_host_ops *ops = dsi->host->ops;
  1235	
  1236		if (!ops)
  1237			return -ENOSYS;
  1238		if (!ops->init)
  1239			return 0;
  1240	
  1241		return ops->init(dsi->host);
  1242	}
  1243	EXPORT_SYMBOL(mipi_dsi_host_init);
  1244	

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

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

* [mszyprow:v5.18-next-20220511-dsi-rework 30/35] drivers/gpu/drm/drm_mipi_dsi.c:1233: warning: expecting prototype for mipi_dsi_init(). Prototype was for mipi_dsi_host_init() instead
@ 2022-05-12  8:50 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-05-12  8:50 UTC (permalink / raw)
  To: Marek Szyprowski; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://github.com/mszyprow/linux.git v5.18-next-20220511-dsi-rework
head:   d29c9c083847e486080eaa98808c232b9937f85f
commit: b34dc79ad31fa0497197519a9060be3ef2e72484 [30/35] drm/mipi-dsi: add support for host initialize callbacks
config: x86_64-randconfig-a001-20220509 (https://download.01.org/0day-ci/archive/20220512/202205121652.A7CaHuUB-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 18dd123c56754edf62c7042dcf23185c3727610f)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/mszyprow/linux/commit/b34dc79ad31fa0497197519a9060be3ef2e72484
        git remote add mszyprow https://github.com/mszyprow/linux.git
        git fetch --no-tags mszyprow v5.18-next-20220511-dsi-rework
        git checkout b34dc79ad31fa0497197519a9060be3ef2e72484
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_mipi_dsi.c:1233: warning: expecting prototype for mipi_dsi_init(). Prototype was for mipi_dsi_host_init() instead


vim +1233 drivers/gpu/drm/drm_mipi_dsi.c

  1225	
  1226	/**
  1227	 * mipi_dsi_init() - initialize MIPI DSI host
  1228	 * @dsi: DSI peripheral device
  1229	 *
  1230	 * Return: 0 on success or a negative error code on failure.
  1231	 */
  1232	int mipi_dsi_host_init(struct mipi_dsi_device *dsi)
> 1233	{
  1234		const struct mipi_dsi_host_ops *ops = dsi->host->ops;
  1235	
  1236		if (!ops)
  1237			return -ENOSYS;
  1238		if (!ops->init)
  1239			return 0;
  1240	
  1241		return ops->init(dsi->host);
  1242	}
  1243	EXPORT_SYMBOL(mipi_dsi_host_init);
  1244	

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

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

end of thread, other threads:[~2022-05-12  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 21:35 [mszyprow:v5.18-next-20220511-dsi-rework 30/35] drivers/gpu/drm/drm_mipi_dsi.c:1233: warning: expecting prototype for mipi_dsi_init(). Prototype was for mipi_dsi_host_init() instead kernel test robot
2022-05-12  8:50 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).