public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 1113/9999] drivers/gpu/drm/hisilicon/kirin/kirin_drm_dsi.c:33:6: warning: no previous prototype for 'dsi_set_output_client'
@ 2022-09-10  1:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-10  1:57 UTC (permalink / raw)
  To: Ammar Faizi, GNU/Weeb Mailing List; +Cc: kbuild-all

Hi John,

FYI, the error/warning still remains.

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10-2021-12
head:   dbbb7b2f16b9fa3c706fe5b8c234431b97108bec
commit: 34ebaf13befc0cd9274a190affbeae8e94f16ced [1113/9999] ANDROID: drm: kirin: Introduce kirin960
config: arm64-buildonly-randconfig-r005-20220907 (https://download.01.org/0day-ci/archive/20220910/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 12.1.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/ammarfaizi2/linux-block/commit/34ebaf13befc0cd9274a190affbeae8e94f16ced
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10-2021-12
        git checkout 34ebaf13befc0cd9274a190affbeae8e94f16ced
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/ arch/arm64/kvm/ drivers/gpu/drm/hisilicon/kirin/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> cc1: warning: include/drm: No such file or directory [-Wmissing-include-dirs]
--
>> cc1: warning: include/drm: No such file or directory [-Wmissing-include-dirs]
>> drivers/gpu/drm/hisilicon/kirin/kirin_drm_dsi.c:33:6: warning: no previous prototype for 'dsi_set_output_client' [-Wmissing-prototypes]
      33 | void dsi_set_output_client(struct drm_device *dev)
         |      ^~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/hisilicon/kirin/kirin_drm_dsi.c:28:
   drivers/gpu/drm/hisilicon/kirin/kirin_drm_dsi.h:39:35: warning: 'dphy_range_info' defined but not used [-Wunused-const-variable=]
      39 | static const struct dsi_phy_range dphy_range_info[] = {
         |                                   ^~~~~~~~~~~~~~~


vim +/dsi_set_output_client +33 drivers/gpu/drm/hisilicon/kirin/kirin_drm_dsi.c

    32	
  > 33	void dsi_set_output_client(struct drm_device *dev)
    34	{
    35		enum dsi_output_client client;
    36		struct drm_connector *connector;
    37		struct drm_encoder *encoder;
    38		struct drm_connector_list_iter conn_iter;
    39		struct dw_dsi *dsi;
    40	
    41		mutex_lock(&dev->mode_config.mutex);
    42	
    43		/* find dsi encoder */
    44		drm_for_each_encoder(encoder, dev)
    45			if (encoder->encoder_type == DRM_MODE_ENCODER_DSI)
    46				break;
    47		dsi = encoder_to_dsi(encoder);
    48	
    49		/* find HDMI connector */
    50		drm_connector_list_iter_begin(dev, &conn_iter);
    51		drm_for_each_connector_iter(connector, &conn_iter)
    52			if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)
    53				break;
    54		drm_connector_list_iter_end(&conn_iter);
    55	
    56		/*
    57		 * set the proper dsi output client
    58		 */
    59		client = connector->status == connector_status_connected ? OUT_HDMI :
    60									   OUT_PANEL;
    61		if (client != dsi->cur_client) {
    62			/*
    63			 * set the switch ic to select the HDMI or MIPI_DSI
    64			 */
    65			if (hisi_dsi_ops->version == KIRIN960_DSI)
    66				gpiod_set_value_cansleep(dsi->gpio_mux, client);
    67	
    68			dsi->cur_client = client;
    69			/* let the userspace know panel connector status has changed */
    70			drm_sysfs_hotplug_event(dev);
    71			DRM_INFO("client change to %s\n",
    72				 client == OUT_HDMI ? "HDMI" : "panel");
    73		}
    74	
    75		mutex_unlock(&dev->mode_config.mutex);
    76	}
    77	EXPORT_SYMBOL_GPL(dsi_set_output_client);
    78	/************************for the panel attach to dsi*****************************/
    79	static int dsi_connector_get_modes(struct drm_connector *connector)
    80	{
    81		struct dw_dsi *dsi = connector_to_dsi(connector);
    82	
    83		return drm_panel_get_modes(dsi->panel, connector);
    84	}
    85	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-10  1:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-10  1:57 [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 1113/9999] drivers/gpu/drm/hisilicon/kirin/kirin_drm_dsi.c:33:6: warning: no previous prototype for 'dsi_set_output_client' 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