Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1103079rwb; Thu, 18 Aug 2022 19:21:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4XiDPRiLqwMbPwa5v4FjRaRJewieaIHhYeZbTTdAWEC5rQWrinqo8cRV/JTxH/mGl4zkBr X-Received: by 2002:a17:907:6d13:b0:731:3be2:9eb with SMTP id sa19-20020a1709076d1300b007313be209ebmr3520919ejc.163.1660875694288; Thu, 18 Aug 2022 19:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660875694; cv=none; d=google.com; s=arc-20160816; b=mXKe2rJdhwB6COB+lOL9d9I1zjqwAciK75Be5eSdOW3Wssk38pI2XVqPN0PihtwYc3 icbGViW+u6bJ1sunM40V1tl7i3+y+Ei6aCdbsloJ7SSDCgpDrsmGjU8AZ0s0hUGCVqh/ epy1cYJkS/tclDPtpm99YT4el+KYTF9Bs/0rd+bZ3VL2oeSjtKcAAj+CR1GP7G17wFzA vqc1VC0wUJ3Glbd7yRiQLWOOV3sa7VJ6nbRWUYfLI7OJgTewZf6PDwwjavy6T8KWyiA9 7fEVKt0GZtYv4OqjJC8BOzmKCU5JOO/gvqeAmyAurAE1OzN2L6MailQ5GRjRzSyXVQfC gAiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=bHVVvRsivPMtCyYmNnjAtjWfrZ3g6eyQP8aSwAy88Wg=; b=lgK1d0SpSNxUOQnMxDrARQMP1Py9c4wnPJKEiqurdx+re5uAfp5T1BW3VJM1K8e6NK cV9+3GDSHdInlpb9bn0RpkYne7ZKwKBpXgf+M0bQE8wRG3sTBMSVpiR7L8dxf77MntzN QrjHSF+V+FPVF/ToMS3b2ESLLC6tduCXcFbvSGM0o7cJTeYOTYJV4NQ6vB3wBITAVmYe uA4EQrbI4P0rydnD/KFtZcvHu3Kpq7qs2HmGxkIyTpfS9R921mpQoAkJBI2VWHGvCl5M iImHaRb+hrNWET0NFHWu2Lsb6VEHqyURhZ1eCFn7KEZZ2CET2BDQthHSEciv1fz38YcK MYSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IZjoHu05; 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 r2-20020aa7c142000000b00445bdec5fa9si1983255edp.406.2022.08.18.19.21.01; Thu, 18 Aug 2022 19:21:34 -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=IZjoHu05; 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 S242308AbiHSCGf (ORCPT + 99 others); Thu, 18 Aug 2022 22:06:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235159AbiHSCGe (ORCPT ); Thu, 18 Aug 2022 22:06:34 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F016D1E33 for ; Thu, 18 Aug 2022 19:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660874793; x=1692410793; h=date:from:to:cc:subject:message-id:mime-version; bh=jQ06/tDX7QJBBTfy6sOVmbpVaLdDkk9llBvg+GKV09M=; b=IZjoHu05GO3l0Ba81nYROAWU0BqVpP4oUWL+8OdamWLfleGu+1HwbJmx ZApLY+u3fhoCCDP/7fCbk8Btp7pEjGK5tOEy/DpgTq3A/Di9dltccvh0V aOrAQ+QpC9QDgXWE7Ta8YrB05i16o9rd15XwX3gcJYg0fgKhovYcJB++h 5qaYByWr1Q5TkueIrf0AvbwBTTom+6oHrrOtJRalxpxA3cKVzUyw3nuOG f1TQxY8gkkekxW+IXaT3gh4xrTWq2AihsP1YDo6Fy+zZtEaJnHgrxheq8 LOyDmwBOJPwX838UnEfis87/Tq0YWRuxqFe1dTLIV4gYoRZdJ/2ovvBoB w==; X-IronPort-AV: E=McAfee;i="6500,9779,10443"; a="292910854" X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="292910854" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2022 19:06:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="676293499" Received: from lkp-server01.sh.intel.com (HELO 44b6dac04a33) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 18 Aug 2022 19:06:23 -0700 Received: from kbuild by 44b6dac04a33 with local (Exim 4.96) (envelope-from ) id 1oOrOw-0000v5-1c; Fri, 19 Aug 2022 02:06:22 +0000 Date: Fri, 19 Aug 2022 10:05:49 +0800 From: kernel test robot To: Moudy Ho Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Hans Verkuil , Ping-Hsun Wu , daoyuan huang Subject: [hverkuil-media-tree:for-v6.1c 3/3] drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:905:10: warning: cast to smaller integer type 'enum mdp_comp_type' from 'const void *' Message-ID: <202208190957.uDT8XE6b-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 tree: git://linuxtv.org/hverkuil/media_tree.git for-v6.1c head: b2273b84e1291c52279edf13b08744833c1faaab commit: b2273b84e1291c52279edf13b08744833c1faaab [3/3] media: platform: mtk-mdp3: add MediaTek MDP3 driver config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220819/202208190957.uDT8XE6b-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project aed5e3bea138ce581d682158eb61c27b3cfdd6ec) 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 git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git git fetch --no-tags hverkuil-media-tree for-v6.1c git checkout b2273b84e1291c52279edf13b08744833c1faaab # 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/media/platform/mediatek/mdp3/ drivers/vfio/pci/hisilicon/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:905:10: warning: cast to smaller integer type 'enum mdp_comp_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] type = (enum mdp_comp_type)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:964:10: warning: cast to smaller integer type 'enum mdp_comp_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] type = (enum mdp_comp_type)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. vim +905 drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c 883 884 static int mdp_comp_sub_create(struct mdp_dev *mdp) 885 { 886 struct device *dev = &mdp->pdev->dev; 887 struct device_node *node, *parent; 888 889 parent = dev->of_node->parent; 890 891 for_each_child_of_node(parent, node) { 892 const struct of_device_id *of_id; 893 enum mdp_comp_type type; 894 int id, alias_id; 895 struct mdp_comp *comp; 896 897 of_id = of_match_node(mdp_sub_comp_dt_ids, node); 898 if (!of_id) 899 continue; 900 if (!of_device_is_available(node)) { 901 dev_dbg(dev, "Skipping disabled sub comp. %pOF\n", node); 902 continue; 903 } 904 > 905 type = (enum mdp_comp_type)of_id->data; 906 alias_id = mdp_comp_alias_id[type]; 907 id = mdp_comp_get_id(type, alias_id); 908 if (id < 0) { 909 dev_err(dev, 910 "Fail to get sub comp. id: type %d alias %d\n", 911 type, alias_id); 912 return -EINVAL; 913 } 914 mdp_comp_alias_id[type]++; 915 916 comp = mdp_comp_create(mdp, node, id); 917 if (IS_ERR(comp)) 918 return PTR_ERR(comp); 919 } 920 921 return 0; 922 } 923 -- 0-DAY CI Kernel Test Service https://01.org/lkp