From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 968E515AC for ; Sun, 31 Jul 2022 09:24:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659259443; x=1690795443; h=date:from:to:cc:subject:message-id:mime-version; bh=1zglDAHHWIbjrrkhX58teupHCItpkmyGYMQsU0QCkco=; b=CWhfYWT7hV/xVynYz7jBWd9SBypjYfsK1ED1K+TLQYZIuB6NFBpJJdiq sIAWytCkvRoRz9/p7Dpz4G/eMT2Dl1yKW49EAxzZLcTZGCQ5v0/DC503U yyUvGgjDfGn46SwGiOCt2c9Ft8KoKx0WJjuhHn5WjOmhpeE3NwHk5yrTZ EVx5mt3HnFEcwGRY5acJwzuEmwXyrZjjKHwnEuC+4R8XjfnVsO1UcE2I/ oDDiI/m6XGqsnePxz2pu7YwjE5dfcORQLNvY7nvVM2A72CL9lmqDvOHLw j/TSmHbwLiLnH8PrUV8UOuQ38wWYozjG/k5khgjCyDfWe02sMz0N8VVyi Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10424"; a="288994943" X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="288994943" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2022 02:24:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="669728529" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 31 Jul 2022 02:24:01 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oI5B2-000Dy9-2B; Sun, 31 Jul 2022 09:24:00 +0000 Date: Sun, 31 Jul 2022 17:23:09 +0800 From: kernel test robot To: Bjorn Andersson Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Steev Klimaszewski Subject: [steev:linux-v5.19.0-rc8-tests 68/182] drivers/gpu/drm/msm/dp/dp_hpd.c:63:53: warning: converting the enum constant to a boolean Message-ID: <202207311753.OE9Jwsti-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/steev/linux linux-v5.19.0-rc8-tests head: 171125613e081f0d0d9aeb710dc7469ce2c6a219 commit: 69fde892d28706172f6cfa4ae11d81712521c84c [68/182] drm/msm/dp: Add typec_mux implementation config: arm64-buildonly-randconfig-r005-20220731 (https://download.01.org/0day-ci/archive/20220731/202207311753.OE9Jwsti-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/steev/linux/commit/69fde892d28706172f6cfa4ae11d81712521c84c git remote add steev https://github.com/steev/linux git fetch --no-tags steev linux-v5.19.0-rc8-tests git checkout 69fde892d28706172f6cfa4ae11d81712521c84c # 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=arm64 SHELL=/bin/bash drivers/gpu/drm/msm/ drivers/interconnect/qcom/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/gpu/drm/msm/dp/dp_hpd.c:63:53: warning: converting the enum constant to a boolean [-Wint-in-bool-context] usbpd->multi_func = pin_assign == DP_PIN_ASSIGN_C || DP_PIN_ASSIGN_E; ^ 1 warning generated. vim +63 drivers/gpu/drm/msm/dp/dp_hpd.c 52 53 static int dp_hpd_mux_set(struct typec_mux_dev *mux, struct typec_mux_state *state) 54 { 55 struct dp_hpd_private *dp_hpd = typec_mux_get_drvdata(mux); 56 struct dp_usbpd *usbpd = &dp_hpd->dp_usbpd; 57 struct typec_displayport_data *dp_data = state->data; 58 int pin_assign = 0; 59 60 if (dp_data) { 61 pin_assign = DP_CONF_GET_PIN_ASSIGN(dp_data->conf); 62 usbpd->hpd_irq = !!(dp_data->status & DP_STATUS_IRQ_HPD); > 63 usbpd->multi_func = pin_assign == DP_PIN_ASSIGN_C || DP_PIN_ASSIGN_E; 64 } 65 66 if (!pin_assign) { 67 if (dp_hpd->connected) { 68 dp_hpd->connected = false; 69 dp_hpd->dp_cb->disconnect(dp_hpd->dev); 70 } 71 } else if (!dp_hpd->connected) { 72 dp_hpd->connected = true; 73 dp_hpd->dp_cb->configure(dp_hpd->dev); 74 } else { 75 dp_hpd->dp_cb->attention(dp_hpd->dev); 76 } 77 78 return 0; 79 } 80 -- 0-DAY CI Kernel Test Service https://01.org/lkp