Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp669460iob; Fri, 13 May 2022 09:51:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4WpTKof2tW38o+CQMhCIM0z0QTIdr4SSLfAI1ZHAKhEkvI92vikfIMdwQwIgcVD7T38ba X-Received: by 2002:a05:6000:1f9a:b0:20c:7a39:1910 with SMTP id bw26-20020a0560001f9a00b0020c7a391910mr4870172wrb.610.1652460685223; Fri, 13 May 2022 09:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652460685; cv=none; d=google.com; s=arc-20160816; b=TgFdsy2zG5Xsv6wIHA2mGS/BNZmUasGRw2G1DgejmYYoC9HxWZNB/j7knrnST9gkYN lUjheuwBJPR3idRrlqKih/xCGBZTmpMQRJZr+SZYR3CZ7WnyQZLbWPHsigx1/39SEMbL a6HQK5Plyh4n9/1eTrH8RkCSKQFUc22M7Y9ZFJdv6+8C1zVBr7lHw7XguRB26zW/VBlj X6OBDvvbDu+3UtEKtwepkeTpHjmg5/hWyNRLQMeACtSkfdRxSpi2JMQIubpOXadDp+rH VvpWKJWoTYmOiEZ8WROXYGIlxnii9vPQ7gTdvaHTR9BgUSq7ChrAuMuxnQfn/C+q/5dF L/XA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Po0LxApU9L9L4kM3MnJkhRZhw+OVBmw7Ge5D1bQABzI=; b=iPhjhOQMCMAHQriG+0yvL+CWTl3/nFEToouz2kq5Mvpo3bQxH7eM4zJTg9kctYJaCj /1VzgfKyjZLd9CXmxdZsujLaxXx8+0OQJ8UUiU+52ShHJCrNrBaLa8PwAfcN6weUVt2V /w2wV408/Cda2mDBcGa0dt3pAFVXUr60Keh/VgT5pQ+LaHPME9O64Ez5i30QxQT/POl6 IdJqfzePUHts//El3ZAPhl061SL2T1AxrBwtXTLVTSKflttB/Ic1auZg+GA0Xw9pnzVE Aj8Ngv9GNPGsFZ/lLcZTGnlVUKmUDt/Ton148iVp+wUJ72lxcMBM/YgCSje70KKovwXL KyKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Do0k0dkg; 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 j25-20020a05600c1c1900b0038e79b62377si6708846wms.52.2022.05.13.09.50.57; Fri, 13 May 2022 09:51:25 -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=Do0k0dkg; 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 S1377976AbiEMH62 (ORCPT + 99 others); Fri, 13 May 2022 03:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356176AbiEMH60 (ORCPT ); Fri, 13 May 2022 03:58:26 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D34A66699 for ; Fri, 13 May 2022 00:58:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652428705; x=1683964705; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mDNirvnpVg2EfPx5OXhFvMMp2oytvT3AbVi8k5j5ehU=; b=Do0k0dkgTR6o7/3MF0G/cyH+t3fvDffbXqbzOu9CMwiZTaYiaCvkhUZa fq35webwVuhL5H9X4Olqe+i/S00HjcQSoJpCuVxy9EyTi9d9lgWC8Evpm W5KqFULF6imvO2JTq+rNd3CNIppxxpATTF4gKAwsOGNoEc9757Wl3thSl SetkOJ3s2B3LkRllvS/yBS4q9DPGl1plQZE8slaJw0oQph/1H4wo/rYZj 8BQtgUTzc4bdqN45yPppevRfdr8rF6OLNt4poi2kilnrggB3XErVQUw41 cWVfOPRZpUvRwD47ZvKVOGo6vpIEeS+BGwKWfWh/VrvNrrTZkITbkV7ID w==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="257792323" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="257792323" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 00:58:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="624774609" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 13 May 2022 00:58:20 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1npQBn-000LW2-Rk; Fri, 13 May 2022 07:58:19 +0000 Date: Fri, 13 May 2022 15:58:09 +0800 From: kernel test robot To: pengfuyuan , Harry Wentland Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Leo Li , Rodrigo Siqueira , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, pengfuyuan Subject: Re: [PATCH] drm/amd/display: Remove macro DC_DEFAULT_LOG_MASK Message-ID: <202205131519.0PPhVMxz-lkp@intel.com> References: <20220512084851.104099-1-pengfuyuan@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220512084851.104099-1-pengfuyuan@kylinos.cn> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Hi pengfuyuan, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on v5.18-rc6 next-20220512] [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] url: https://github.com/intel-lab-lkp/linux/commits/pengfuyuan/drm-amd-display-Remove-macro-DC_DEFAULT_LOG_MASK/20220512-185320 base: git://anongit.freedesktop.org/drm/drm drm-next config: arm-randconfig-r016-20220512 (https://download.01.org/0day-ci/archive/20220513/202205131519.0PPhVMxz-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 9519dacab7b8afd537811fc2abaceb4d14f4e16a) 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 arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/94b3092ea272cf77105cc7b19fcffc44b49e1a71 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review pengfuyuan/drm-amd-display-Remove-macro-DC_DEFAULT_LOG_MASK/20220512-185320 git checkout 94b3092ea272cf77105cc7b19fcffc44b49e1a71 # 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=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:30: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:30: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:40: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw_sequencer.h:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/clock_source.h:31: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/bios_parser_types.h:30: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:35: In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67: drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:862:18: warning: field cursor_copy_src within 'struct dmub_rb_cmd_mall' is less aligned than 'union dmub_addr' and is usually due to 'struct dmub_rb_cmd_mall' being packed, which can lead to unaligned accesses [-Wunaligned-access] union dmub_addr cursor_copy_src; /**< Cursor copy address */ ^ drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:863:18: warning: field cursor_copy_dst within 'struct dmub_rb_cmd_mall' is less aligned than 'union dmub_addr' and is usually due to 'struct dmub_rb_cmd_mall' being packed, which can lead to unaligned accesses [-Wunaligned-access] union dmub_addr cursor_copy_dst; /**< Cursor copy destination */ ^ 2 warnings and 2 errors generated. -- In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:27: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_irq.c:27: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:40: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw_sequencer.h:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/clock_source.h:31: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/bios_parser_types.h:30: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ 2 errors generated. -- In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ 1 error generated. -- In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:28: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:30: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_helpers.h:34: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:3685:25: warning: variable 'ret' set but not used [-Wunused-but-set-variable] enum act_return_status ret; ^ 1 warning and 2 errors generated. -- In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:28: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:30: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1642:6: warning: no previous prototype for function 'is_timing_changed' [-Wmissing-prototypes] bool is_timing_changed(struct dc_stream_state *cur_stream, ^ drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1642:1: note: declare 'static' if the function is not intended to be used outside of this translation unit bool is_timing_changed(struct dc_stream_state *cur_stream, ^ static 1 warning and 2 errors generated. -- In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_enc_cfg.c:25: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/link_enc_cfg.h:33: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_enc_cfg.c:25: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/link_enc_cfg.h:33: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:40: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw_sequencer.h:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/clock_source.h:31: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/bios_parser_types.h:30: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_enc_cfg.c:570:6: warning: variable 'matching_stream_ptrs' set but not used [-Wunused-but-set-variable] int matching_stream_ptrs = 0; ^ 1 warning and 2 errors generated. -- In file included from drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c:28: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:36: In file included from drivers/gpu/drm/amd/amdgpu/../display/include/logger_interface.h:29: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ In file included from drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c:29: In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:31: >> drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h:26:2: error: unterminated conditional directive #ifndef __DAL_LOGGER_TYPES_H__ ^ drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c:1179:15: warning: variable 'average_render_time_in_us' set but not used [-Wunused-but-set-variable] unsigned int average_render_time_in_us = 0; ^ 1 warning and 2 errors generated. vim +26 drivers/gpu/drm/amd/amdgpu/../display/include/logger_types.h 4562236b3bc0a28 Harry Wentland 2017-09-12 @26 #ifndef __DAL_LOGGER_TYPES_H__ 4562236b3bc0a28 Harry Wentland 2017-09-12 27 #define __DAL_LOGGER_TYPES_H__ 4562236b3bc0a28 Harry Wentland 2017-09-12 28 -- 0-DAY CI Kernel Test Service https://01.org/lkp