From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DFE78C77B61 for ; Thu, 13 Apr 2023 04:15:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rTy7p+lpCkcRly1V+cAr1e2dZqHTHuk+J5ZESjSBz50=; b=aPz800OtOayOMARvuKQG/aTAfT ABxYgrTp9txpy5z3dZgpsOOf41RtSybPp+KuZQE6j/Sa7sZ4H+y9aOLlSywI2Q/zWTE2gc/esUBbY 3VRfmMQaxI6cz4bA4gaBwgAc4fLqdVJ3Rz+iImqREgul8+5fAf5EDuDS+2rS+GFrjpn3yFtVgHCI9 IGB5fuR0KkdgrxGIhiFCHJjN2TJxIDTpQnuLwscdPJcB5K/HA2nBqq8Tt/z2KV/FBjzKO7vVAp3ay 82M8WE/z9uzKZ1W9P6j2s1XMdAEDAlCtT/z7eEw09Ac4xmbX9xO+ixF939vIG+WDqetInSl6YILdP 94Y1zdvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmoNA-004z3T-00; Thu, 13 Apr 2023 04:15:48 +0000 Received: from mga06b.intel.com ([134.134.136.31] helo=mga06.intel.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmoN5-004z2J-1p; Thu, 13 Apr 2023 04:15:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681359343; x=1712895343; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Hud/tEH/bO4ykSDB5vwIzW+i0/5nC8j5l6CjYVfUw8w=; b=YGpAiY6hud9bnT69BtSoKck1G+PNQ/6FS8Z/yr+Gs3w7/J3Z2NEJrabe JSgNnG3jKQ/Osv+IKyn2YewGN3Swy0iKx/bIlb48oef9bFkrmy46EUdkr jMXQ+nosVbWpJJLk+toMK63xVe/BAhB6nQPWH2Is6bTJEgWOh0sRYUGt7 AJyDGbju9xBeqVy4H+YQrBmFIuIDtj8FOgZQFECWl+eciIs2mA/vgIC7T kz0c7A4lfX5uEpWJOS2CaObAs340tqIVFuurUqC7iyiTS+ARbBLsXX2XW yueOBEaXeOzp+HnO1kcOOch+pUB2tr0kF+GG39n5Dqwknw5P+W/QWSqej Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="406919613" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="406919613" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 21:15:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="682736293" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="682736293" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 12 Apr 2023 21:15:34 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pmoMv-000YKr-2w; Thu, 13 Apr 2023 04:15:33 +0000 Date: Thu, 13 Apr 2023 12:15:09 +0800 From: kernel test robot To: Nikita Zhandarovich , David Airlie Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-fbdev@vger.kernel.org, lvc-project@linuxtesting.org, dri-devel@lists.freedesktop.org, Matthias Brugger , Helge Deller , amd-gfx@lists.freedesktop.org, Nikita Zhandarovich , Chun-Kuang Hu , Thomas Zimmermann , intel-gfx@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Rodrigo Vivi , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , Tvrtko Ursulin , linux-kernel@vger.kernel.org Subject: Re: [PATCH] video/hdmi: minor fixes for *_infoframe_init functions Message-ID: <202304131234.hT3mzkju-lkp@intel.com> References: <20230412152910.9486-1-n.zhandarovich@fintech.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230412152910.9486-1-n.zhandarovich@fintech.ru> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230412_211543_670566_5B9F8715 X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Hi Nikita, kernel test robot noticed the following build errors: [auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on tegra/for-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes linus/master v6.3-rc6 next-20230412] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Nikita-Zhandarovich/video-hdmi-minor-fixes-for-_infoframe_init-functions/20230412-232947 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20230412152910.9486-1-n.zhandarovich%40fintech.ru patch subject: [PATCH] video/hdmi: minor fixes for *_infoframe_init functions config: x86_64-randconfig-a005-20230410 (https://download.01.org/0day-ci/archive/20230413/202304131234.hT3mzkju-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/intel-lab-lkp/linux/commit/36210f5b0ac3046f4c1c1d0c6e392eab40811699 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Nikita-Zhandarovich/video-hdmi-minor-fixes-for-_infoframe_init-functions/20230412-232947 git checkout 36210f5b0ac3046f4c1c1d0c6e392eab40811699 # 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 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304131234.hT3mzkju-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/i915/display/intel_hdmi.c:769:37: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] if (drm_WARN_ON(encoder->base.dev, ret)) ^~~ include/drm/drm_print.h:630:19: note: expanded from macro 'drm_WARN_ON' drm_WARN((drm), (x), "%s", \ ^ include/drm/drm_print.h:620:7: note: expanded from macro 'drm_WARN' WARN(condition, "%s %s: " format, \ ^~~~~~~~~ include/asm-generic/bug.h:131:25: note: expanded from macro 'WARN' int __ret_warn_on = !!(condition); \ ^~~~~~~~~ drivers/gpu/drm/i915/display/intel_hdmi.c:756:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 1 error generated. vim +/ret +769 drivers/gpu/drm/i915/display/intel_hdmi.c b055c8f3ef9f7b drivers/gpu/drm/i915/intel_hdmi.c Jesse Barnes 2011-07-08 748 fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 749 static bool fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 750 intel_hdmi_compute_spd_infoframe(struct intel_encoder *encoder, fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 751 struct intel_crtc_state *crtc_state, fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 752 struct drm_connector_state *conn_state) c0864cb39c6869 drivers/gpu/drm/i915/intel_hdmi.c Jesse Barnes 2011-08-03 753 { 7d1675dcb5a16c drivers/gpu/drm/i915/display/intel_hdmi.c Taylor, Clinton A 2022-11-29 754 struct drm_i915_private *i915 = to_i915(encoder->base.dev); fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 755 struct hdmi_spd_infoframe *frame = &crtc_state->infoframes.spd.spd; 5adaea799c1c2c drivers/gpu/drm/i915/intel_hdmi.c Damien Lespiau 2013-08-06 756 int ret; 5adaea799c1c2c drivers/gpu/drm/i915/intel_hdmi.c Damien Lespiau 2013-08-06 757 fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 758 if (!crtc_state->has_infoframe) fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 759 return true; c0864cb39c6869 drivers/gpu/drm/i915/intel_hdmi.c Jesse Barnes 2011-08-03 760 fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 761 crtc_state->infoframes.enable |= fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 762 intel_hdmi_infoframe_enable(HDMI_INFOFRAME_TYPE_SPD); c0864cb39c6869 drivers/gpu/drm/i915/intel_hdmi.c Jesse Barnes 2011-08-03 763 7d1675dcb5a16c drivers/gpu/drm/i915/display/intel_hdmi.c Taylor, Clinton A 2022-11-29 764 if (IS_DGFX(i915)) 36210f5b0ac304 drivers/gpu/drm/i915/display/intel_hdmi.c Nikita Zhandarovich 2023-04-12 765 hdmi_spd_infoframe_init(frame, "Intel", "Discrete gfx"); 7d1675dcb5a16c drivers/gpu/drm/i915/display/intel_hdmi.c Taylor, Clinton A 2022-11-29 766 else 36210f5b0ac304 drivers/gpu/drm/i915/display/intel_hdmi.c Nikita Zhandarovich 2023-04-12 767 hdmi_spd_infoframe_init(frame, "Intel", "Integrated gfx"); 7d1675dcb5a16c drivers/gpu/drm/i915/display/intel_hdmi.c Taylor, Clinton A 2022-11-29 768 3a47ae201e0749 drivers/gpu/drm/i915/display/intel_hdmi.c Pankaj Bharadiya 2020-01-15 @769 if (drm_WARN_ON(encoder->base.dev, ret)) fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 770 return false; fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 771 fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 772 frame->sdi = HDMI_SPD_SDI_PC; fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 773 fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 774 ret = hdmi_spd_infoframe_check(frame); 3a47ae201e0749 drivers/gpu/drm/i915/display/intel_hdmi.c Pankaj Bharadiya 2020-01-15 775 if (drm_WARN_ON(encoder->base.dev, ret)) fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 776 return false; fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 777 fbf08556ed4344 drivers/gpu/drm/i915/intel_hdmi.c Ville Syrjälä 2019-02-25 778 return true; c0864cb39c6869 drivers/gpu/drm/i915/intel_hdmi.c Jesse Barnes 2011-08-03 779 } c0864cb39c6869 drivers/gpu/drm/i915/intel_hdmi.c Jesse Barnes 2011-08-03 780 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests