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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A416FC6FD18 for ; Thu, 20 Apr 2023 00:54:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3629C280001; Wed, 19 Apr 2023 20:54:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 312E86B0074; Wed, 19 Apr 2023 20:54:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1DA3B280001; Wed, 19 Apr 2023 20:54:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0EBE86B0072 for ; Wed, 19 Apr 2023 20:54:16 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D718CA0306 for ; Thu, 20 Apr 2023 00:54:15 +0000 (UTC) X-FDA: 80699948070.04.A8D2855 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf01.hostedemail.com (Postfix) with ESMTP id B19BA40010 for ; Thu, 20 Apr 2023 00:54:12 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=T+DOMnFU; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681952053; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=U4+6dPvMq4ueqWNxOxo4gRd/zbUxFGjiQd11hWd3YJA=; b=PUKpDBV614Qz2NX82X9RQ2b9BQcDr8H4ADj1S6UmIFYHDrFPMV/MAV2c8Gn0w+1I57mhxP ZS9A8lLeyUcABnq1/c2EsP50HRKi5KGm6KYB2juTWO0TwKdc5Fht3f54FN0tGjz8rjdRZ1 sVsdabFxaAKS52BEZlj7QjyPqUIRTMI= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=T+DOMnFU; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681952053; a=rsa-sha256; cv=none; b=70wfnyzNTDYFbmUqgC5f273g1kf6CJmamaRaIiZU0dr+GF8+bH0591cHZVr0BvQJaYOCsB qzVYGtMOljpsC0Yxh5GOngbjbE1lA6jX5BvZ3fkAOrEcg5MewwO+Ng1Dki75LFcVqPlGXc r160+kVGDUHAkkJu57/Opp81aZdCj80= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681952052; x=1713488052; h=date:from:to:cc:subject:message-id:mime-version; bh=lKG4Qpjze+YSShuxJXnKNCLquArvTLixSwdG/WCauIo=; b=T+DOMnFUo0tRINa76nejfjUKOgcqcyEOw/h9f/kGFCAmGJyhYVsRyWaq paafatMDtK33BHxlL2ODixugOTfFvID0ovcZbqfXGytiWQtt2f/+F3Sjh 25EPZeZ8V3Gzj/KDIvwASjNZpjVA1R+PjGoUz/K/NqKqZgaTQJhXdPECN 6nQKlDpFf+Gek5KcZA2W3MayhLODPUugYQzfGpITl41uj87yyV0FHM7AQ iShZ7FySPPYtPwRmTglJRGCnAAy/R4hpDBi6MXWZu2JcQZWoZa1HgN2/U JuMOl9FbJ+BFGhIGJ3Q8DT83/LRc7hxy1etr4G7HLclO6rwt1371Q+Dhx w==; X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="408511420" X-IronPort-AV: E=Sophos;i="5.99,210,1677571200"; d="scan'208";a="408511420" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2023 17:54:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="691710363" X-IronPort-AV: E=Sophos;i="5.99,210,1677571200"; d="scan'208";a="691710363" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 19 Apr 2023 17:54:08 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1ppIYp-000fIs-2U; Thu, 20 Apr 2023 00:54:07 +0000 Date: Thu, 20 Apr 2023 08:53:21 +0800 From: kernel test robot To: Leon Huang Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alex Deucher , Rodrigo Siqueira Subject: [linux-next:master 12500/13075] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c:138:15: warning: variable 'feature_support' set but not used Message-ID: <202304200812.6UqNDVZy-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: B19BA40010 X-Stat-Signature: 74tjmadcxssq7jm1km8jgdfnpeuknozp X-HE-Tag: 1681952052-766980 X-HE-Meta: U2FsdGVkX1/ifApfdgxN05wWpmgp13WME61Q/hZodwmPYiUQKFEp4a4TCYhpkVKnponNZovqxa6DYZCgakoepz/703YzTnimXQDXAgYy7c2T+ASTAsqQnNRRLx7lsAvnVCNbkrlHFYx92Gty4tKyqfe6/hZiS7GiEmYNeFskv3S78EZofuKfmCYDaF4C8Cvtlhvpx0Ga6SQar4r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MvMmKQ2sH7kN4EUzRqw7bSR2rhkug3WSFBODBaCEulhzWfLQBk/UT29RXBIjoz3SsuHkHOr9Yx93KIJbQGLS0ohwqBmndoVYIlQrfPZBCmJS1KSMp1aqC643Q5GSywXnduQQiyzj8TNybFXQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 3cdbc01c40e34c57697f8934f2727a88551696be commit: b8fe56375f78835db47565d91ea9d21767fe3c08 [12500/13075] drm/amd/display: Refactor ABM feature config: arm64-randconfig-r036-20230416 (https://download.01.org/0day-ci/archive/20230420/202304200812.6UqNDVZy-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/next/linux-next.git/commit/?id=b8fe56375f78835db47565d91ea9d21767fe3c08 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout b8fe56375f78835db47565d91ea9d21767fe3c08 # 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/amd/amdgpu/ drivers/gpu/drm/amd/display/dc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304200812.6UqNDVZy-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c:138:15: warning: variable 'feature_support' set but not used [-Wunused-but-set-variable] unsigned int feature_support; ^ 1 warning generated. -- >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:83:6: warning: no previous prototype for function 'dmub_abm_init' [-Wmissing-prototypes] void dmub_abm_init(struct abm *abm, uint32_t backlight) ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void dmub_abm_init(struct abm *abm, uint32_t backlight) ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:124:14: warning: no previous prototype for function 'dmub_abm_get_current_backlight' [-Wmissing-prototypes] unsigned int dmub_abm_get_current_backlight(struct abm *abm) ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit unsigned int dmub_abm_get_current_backlight(struct abm *abm) ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:135:14: warning: no previous prototype for function 'dmub_abm_get_target_backlight' [-Wmissing-prototypes] unsigned int dmub_abm_get_target_backlight(struct abm *abm) ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:135:1: note: declare 'static' if the function is not intended to be used outside of this translation unit unsigned int dmub_abm_get_target_backlight(struct abm *abm) ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:146:6: warning: no previous prototype for function 'dmub_abm_set_level' [-Wmissing-prototypes] bool dmub_abm_set_level(struct abm *abm, uint32_t level, uint8_t panel_mask) ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:146:1: note: declare 'static' if the function is not intended to be used outside of this translation unit bool dmub_abm_set_level(struct abm *abm, uint32_t level, uint8_t panel_mask) ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:167:6: warning: no previous prototype for function 'dmub_abm_set_ambient_level' [-Wmissing-prototypes] void dmub_abm_set_ambient_level(struct abm *abm, unsigned int ambient_lux, uint8_t panel_mask) ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:167:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void dmub_abm_set_ambient_level(struct abm *abm, unsigned int ambient_lux, uint8_t panel_mask) ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:189:6: warning: no previous prototype for function 'dmub_abm_init_config' [-Wmissing-prototypes] void dmub_abm_init_config(struct abm *abm, ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:189:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void dmub_abm_init_config(struct abm *abm, ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:221:6: warning: no previous prototype for function 'dmub_abm_set_pause' [-Wmissing-prototypes] bool dmub_abm_set_pause(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_inst) ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:221:1: note: declare 'static' if the function is not intended to be used outside of this translation unit bool dmub_abm_set_pause(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_inst) ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:241:6: warning: no previous prototype for function 'dmub_abm_set_pipe' [-Wmissing-prototypes] bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t option, uint32_t panel_inst) ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:241:1: note: declare 'static' if the function is not intended to be used outside of this translation unit bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t option, uint32_t panel_inst) ^ static >> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:263:6: warning: no previous prototype for function 'dmub_abm_set_backlight_level' [-Wmissing-prototypes] bool dmub_abm_set_backlight_level(struct abm *abm, ^ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm_lcd.c:263:1: note: declare 'static' if the function is not intended to be used outside of this translation unit bool dmub_abm_set_backlight_level(struct abm *abm, ^ static 9 warnings generated. vim +/feature_support +138 drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_abm.c 133 134 static bool dmub_abm_set_event_ex(struct abm *abm, unsigned int full_screen, unsigned int video_mode, 135 unsigned int hdr_mode, unsigned int panel_inst) 136 { 137 bool ret = false; > 138 unsigned int feature_support; 139 140 feature_support = abm_feature_support(abm, panel_inst); 141 142 return ret; 143 } 144 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests