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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A87EC7618E for ; Wed, 26 Apr 2023 19:06:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235605AbjDZTGQ (ORCPT ); Wed, 26 Apr 2023 15:06:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbjDZTGO (ORCPT ); Wed, 26 Apr 2023 15:06:14 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F09C23C39 for ; Wed, 26 Apr 2023 12:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682535972; x=1714071972; h=date:from:to:cc:subject:message-id:mime-version; bh=x8KLFWw2JkSBQzqKINgr2vPWIaic9sd5l78AGWxwD+M=; b=JNAl0w2naCdSIKasxg8G5cPPBkqVLQMfLmyJvb60yvuCN70ybfewehcw 2fUF6yZVC3b6dWnA0PxiXDaaEDGxcI0fBILGMBEMi0mgNl76FTPsSUsCS /b1DhJwxTcvI4P4A9fk1eUBekpJSATUeySgFtdUp/jiVHrfvPJL9imKNx arFbIp/4AJ7EiKGZK/e5VA/YC2dqu37rCeqzlRfES8OxWqS6IVdbgKPRj Mbpl38EmqP5gmNs26Lxt62rZg9fJQFM6jf9QmBQpI/Xy3h8Po65SpJSvm 76OfNE84Ne+sEgEXXEl+NSSzc1HMmmHyWjkYNfBWsLfdVHxFKEF29B59a Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="433498973" X-IronPort-AV: E=Sophos;i="5.99,229,1677571200"; d="scan'208";a="433498973" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 12:06:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="726682190" X-IronPort-AV: E=Sophos;i="5.99,229,1677571200"; d="scan'208";a="726682190" Received: from lkp-server01.sh.intel.com (HELO 041f065c1b1b) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 26 Apr 2023 12:05:51 -0700 Received: from kbuild by 041f065c1b1b with local (Exim 4.96) (envelope-from ) id 1prkSc-0000T8-1U; Wed, 26 Apr 2023 19:05:50 +0000 Date: Thu, 27 Apr 2023 03:05:17 +0800 From: kernel test robot To: "Nancy.Lin" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Chun-Kuang Hu , AngeloGioacchino Del Regno Subject: drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c:415:10: warning: cast to smaller integer type 'enum mtk_ovl_adaptor_comp_type' from 'const void *' Message-ID: <202304270202.860mmUdY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nancy.Lin, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cfd8703e7da687924371e9bc77a025bdeba9637 commit: 453c3364632a1f305db7d425dc9f8d6711cd3491 drm/mediatek: Add ovl_adaptor support for MT8195 date: 5 weeks ago config: arm64-buildonly-randconfig-r005-20230426 (https://download.01.org/0day-ci/archive/20230427/202304270202.860mmUdY-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661) 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=453c3364632a1f305db7d425dc9f8d6711cd3491 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 453c3364632a1f305db7d425dc9f8d6711cd3491 # 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 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/mediatek/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304270202.860mmUdY-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c:415:10: warning: cast to smaller integer type 'enum mtk_ovl_adaptor_comp_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] type = (enum mtk_ovl_adaptor_comp_type)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. vim +415 drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c 391 392 static int ovl_adaptor_comp_init(struct device *dev, struct component_match **match) 393 { 394 struct mtk_disp_ovl_adaptor *priv = dev_get_drvdata(dev); 395 struct device_node *node, *parent; 396 struct platform_device *comp_pdev; 397 398 parent = dev->parent->parent->of_node->parent; 399 400 for_each_child_of_node(parent, node) { 401 const struct of_device_id *of_id; 402 enum mtk_ovl_adaptor_comp_type type; 403 int id; 404 405 of_id = of_match_node(mtk_ovl_adaptor_comp_dt_ids, node); 406 if (!of_id) 407 continue; 408 409 if (!of_device_is_available(node)) { 410 dev_dbg(dev, "Skipping disabled component %pOF\n", 411 node); 412 continue; 413 } 414 > 415 type = (enum mtk_ovl_adaptor_comp_type)of_id->data; 416 id = ovl_adaptor_comp_get_id(dev, node, type); 417 if (id < 0) { 418 dev_warn(dev, "Skipping unknown component %pOF\n", 419 node); 420 continue; 421 } 422 423 comp_pdev = of_find_device_by_node(node); 424 if (!comp_pdev) 425 return -EPROBE_DEFER; 426 427 priv->ovl_adaptor_comp[id] = &comp_pdev->dev; 428 429 drm_of_component_match_add(dev, match, compare_of, node); 430 dev_dbg(dev, "Adding component match for %pOF\n", node); 431 } 432 433 if (!*match) { 434 dev_err(dev, "No match device for ovl_adaptor\n"); 435 return -ENODEV; 436 } 437 438 return 0; 439 } 440 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests