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: <202203311955.w1yVgOkn-lkp@intel.com>
Date:   Thu, 31 Mar 2022 19:17:26 +0800
From:   kernel test robot <lkp@...el.com>
To:     John Stultz <john.stultz@...aro.org>
Cc:     kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org, Todd Kjos <tkjos@...gle.com>,
        Xu YiPing <xuyiping@...ilicon.com>
Subject: [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2022-01
 1118/9999] drivers/gpu/drm/hisilicon/kirin/kirin_drm_dsi.c:33:6: warning: no
 previous prototype for 'dsi_set_output_client'

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10-2022-01
head:   1a4c05014bbef75d3878daa66540412c500f697b
commit: 34ebaf13befc0cd9274a190affbeae8e94f16ced [1118/9999] ANDROID: drm: kirin: Introduce kirin960
config: arm64-buildonly-randconfig-r005-20220331 (https://download.01.org/0day-ci/archive/20220331/202203311955.w1yVgOkn-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.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-2022-01
        git checkout 34ebaf13befc0cd9274a190affbeae8e94f16ced
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/hisilicon/kirin/

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ