GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [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'
Date: Sat, 10 Sep 2022 09:57:34 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

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

                 reply	other threads:[~2022-09-10  1:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox