From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gnuweeb.org (Postfix) with ESMTPS id 8827380866 for ; Sat, 10 Sep 2022 01:58:33 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=FGr18mkr; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662775113; x=1694311113; h=date:from:to:cc:subject:message-id:mime-version; bh=NS0X6vS/1jg+Rwr2/admr7kugfRWxfPNfZ2O3qM6S3w=; b=FGr18mkr0AJrgHyVeMClWcJpVVbBlvcu2CxrBkhUd0/29bUfKfDfqbop SbroRyKWVMEWl+Bs7/nSZWtmSAK0B5vDQwXqu+T2yCTHBPWIEalnePSqp B1s9nO5BLTuzEdkcgB3q0EOfPbU0tBDQh5m+QYOTHC/ZLbu9qjr549hxQ q7Q+FR45W4ZExHxSyXKfcg80OgTWwT0Ff1yHV+xRdZDdFu+d5IIwAw8O2 cWiAhSL+FsNyqpe6YOPl72OZm6kAEL4gGme1WLNeP/XB9n7wgUXfHTSkD e7l1HC50FxDD44SjpxaOJE8gV342BqaGr4XTVLOkWJhFDIEy+tqMpv/3J g==; X-IronPort-AV: E=McAfee;i="6500,9779,10465"; a="383901006" X-IronPort-AV: E=Sophos;i="5.93,304,1654585200"; d="scan'208";a="383901006" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2022 18:58:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,304,1654585200"; d="scan'208";a="592821407" Received: from lkp-server02.sh.intel.com (HELO b2938d2e5c5a) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 09 Sep 2022 18:58:23 -0700 Received: from kbuild by b2938d2e5c5a with local (Exim 4.96) (envelope-from ) id 1oWplG-0001zR-1K; Sat, 10 Sep 2022 01:58:22 +0000 Date: Sat, 10 Sep 2022 09:57:34 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org 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' Message-ID: <202209100914.bmDPVGjH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: 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/202209100914.bmDPVGjH-lkp@intel.com/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 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