Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1362931rwl; Wed, 12 Apr 2023 11:36:29 -0700 (PDT) X-Google-Smtp-Source: AKy350b2u2/HcKVy1I1lI5Ch+kMIOGNIoEri/2Vzjp2P5l20Kp8EcMEpYo2BCrPuFFjWjYuGPIzo X-Received: by 2002:a17:906:2451:b0:94a:99a4:58df with SMTP id a17-20020a170906245100b0094a99a458dfmr10331897ejb.25.1681324589144; Wed, 12 Apr 2023 11:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681324589; cv=none; d=google.com; s=arc-20160816; b=l0MGfq6VqryX6NEDFqz65NyWF5yW8Z1LzlEdOE99Ty7uPtfca3njJisXJHuAjNsL6s c6huQt5RW6aVfRRXz8z5Q72AgK1uaxrrpeIHW51du/HowABvnzvS2HkW+fyR97PNGTpp OUWVM0CUccxHBcn6sosZDhAySZRhb5I0mNnlYOfjfJIcNeDho9TvTWJ4ZvAbk3b74W2I 6gTHHMWj2e5E3OetQGAggcBP8/zRQC67dZys1MQEOVixv79CAhUafnq6ME6WOkhsg0Ce /1dKD1pMU5im7bcKZMCuZ2zF6PHk4pn480W63VSjN2o8kVXBf08B7MXfCSeKInmkR0tm e4lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=C01rWoOf/9jiS0CRUgNf/x1VD1q7tz+BVEkU00XFaEc=; b=DDEwjukEOuocfae9hdfqSKc9tDmlsEqYcyuDrjFDKWsDfoqSSOgzkgn8uGi7l+CCkv i/ztp4OQJ27+lbYE2jNtQhSs/kcuaibHFu6ZfXgfprLQ9whtcbN7Uo/Zdih0yCnSJ8X6 iqWp5+nndvW89MEZVp/dU+Ku8IdzmN5h583NDh+DcskkUHnomYyMDyGd+dw7iuZh389H y94YBo/WDD8B1Rg1lStezcQxsYzDxkOYFSxFIvIwbXVa9fW+2kHSFl9jAFqsliRr5L8a k9ZWB00xVpm27fxnGRUrQahYvBd3sArTQS1EIjaqlKbbw8tSpLmK6WoMo95cgl3FFaDY aPXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K91t95Dz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji21-20020a170907981500b0094e732fed4dsi1188601ejc.509.2023.04.12.11.36.03; Wed, 12 Apr 2023 11:36:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K91t95Dz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbjDLS1c (ORCPT + 99 others); Wed, 12 Apr 2023 14:27:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjDLS13 (ORCPT ); Wed, 12 Apr 2023 14:27:29 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 355D240D7; Wed, 12 Apr 2023 11:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681324048; x=1712860048; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=cqKO9TziOmEEhE0gbMgiPkWcojaHbnVzNzEhpsuxk3A=; b=K91t95DziJTYAB42d3jGi3THhWvPbuepNtDpiEcofje+BhqqdMlvIacb WbpJXV1TYDw0x8dqURClCwx4BzeVyPTx5HR3s6fwrdH3FncMOIlKDiZez eveMkCBQXmUp04eO+ZyFVg0X6P8ZZKg2ta9ZLCmn5ayFIDbYjh6AELGrs Deykxph1UFQfF85F9BMGpkcWuTinEq40RH7I4dsohdiNcsAyHPiPVLYh5 isiR0lVkM93+KTILXzFUPvSB5fo0TWGAWV7zp5O4tqfpHmxlx4MeBBzmG N8hx0/p/35MpDn8Ara+YnbNxSrTUTU37CFR/8VU2wcBMv3bcaPiEZvFxF w==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="328099187" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="328099187" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 11:27:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="753646682" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="753646682" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 12 Apr 2023 11:27:21 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pmfBg-000Xyx-2P; Wed, 12 Apr 2023 18:27:20 +0000 Date: Thu, 13 Apr 2023 02:27:20 +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: <202304130224.59cNkdgV-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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nikita, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING 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: i386-randconfig-a005-20230410 (https://download.01.org/0day-ci/archive/20230413/202304130224.59cNkdgV-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=i386 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 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/202304130224.59cNkdgV-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/i915/display/intel_hdmi.c:769:37: warning: variable 'ret' is uninitialized when used here [-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 warning 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