[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201261425.poUnqNur-lkp@intel.com>
Date: Wed, 26 Jan 2022 14:17:42 +0800
From: kernel test robot <lkp@...el.com>
To: Victor Zhao <Victor.Zhao@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Alex Deucher <alexander.deucher@....com>
Subject: [agd5f:drm-next 181/190]
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is
not defined, evaluates to 0
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 63e583c8843f305a3e334a96d5de00435f4d38a2
commit: 6131c5e0ffa8e616ac27c10f3fae3b431c54f232 [181/190] drm/amdgpu: add determine passthrough under arm64
config: sparc64-buildonly-randconfig-r002-20220124 (https://download.01.org/0day-ci/archive/20220126/202201261425.poUnqNur-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
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
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 6131c5e0ffa8e616ac27c10f3fae3b431c54f232
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/gpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:42:
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:27:
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
At top level:
drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:110:37: warning: 'amdgpu_rap_debugfs_ops' defined but not used [-Wunused-const-variable=]
110 | static const struct file_operations amdgpu_rap_debugfs_ops = {
| ^~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c:27:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:26:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
At top level:
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:38:34: warning: 'clocks' defined but not used [-Wunused-const-variable=]
38 | static const struct cg_flag_name clocks[] = {
| ^~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm_internal.c:24:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm_internal.c: At top level:
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm_internal.c:29:6: warning: no previous prototype for 'amdgpu_dpm_get_active_displays' [-Wmissing-prototypes]
29 | void amdgpu_dpm_get_active_displays(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_dpm_internal.c:76:5: warning: no previous prototype for 'amdgpu_dpm_get_vrefresh' [-Wmissing-prototypes]
76 | u32 amdgpu_dpm_get_vrefresh(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:35:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2921:26: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
2921 | uint64_t temp;
| ^~~~
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:44:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'dm_dmub_hw_init':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1030:20: warning: unused variable 'dc' [-Wunused-variable]
1030 | struct dc *dc = adev->dm.dc;
| ^~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/link_enc_cfg.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:32:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:127:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=]
127 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA";
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
123 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:31:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:43:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2921:26: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
2921 | uint64_t temp;
| ^~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/dc_link_ddc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:38:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:127:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=]
127 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA";
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
123 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_services.c:32:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_trace.h:40,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_services.c:36:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:127:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=]
127 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA";
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
123 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:35:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c: At top level:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:962:6: warning: no previous prototype for 'dm_helpers_enable_periodic_detection' [-Wmissing-prototypes]
962 | void dm_helpers_enable_periodic_detection(struct dc_context *ctx, bool enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:42:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:127:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=]
127 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA";
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
123 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:93,
from drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:38:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h: In function 'is_virtual_machine':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_virt.h:299:7: warning: "CONFIG_ARM64" is not defined, evaluates to 0 [-Wundef]
299 | #elif CONFIG_ARM64
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:40:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2921:26: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
2921 | uint64_t temp;
| ^~~~
vim +/CONFIG_ARM64 +299 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
294
295 static inline bool is_virtual_machine(void)
296 {
297 #ifdef CONFIG_X86
298 return boot_cpu_has(X86_FEATURE_HYPERVISOR);
> 299 #elif CONFIG_ARM64
300 return !is_kernel_in_hyp_mode();
301 #else
302 return false;
303 #endif
304 }
305
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists