tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.6 head: beebb009c05fd5a89617327a9cfb724f19cecf1b commit: 4ffed2cbfe6b56df802236a5b5671dd89ba23308 [396/989] drm/amd/dal: Treat warnings as errors config: x86_64-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430 reproduce: git checkout 4ffed2cbfe6b56df802236a5b5671dd89ba23308 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_hwmgr.c:102:22: error: 'PP_ClockStretchAmountConversion' defined but not used [-Werror=unused-const-variable=] static const uint8_t PP_ClockStretchAmountConversion[2][6] = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_hwmgr.c:97:23: error: 'PP_ClockStretcherDDTTable' defined but not used [-Werror=unused-const-variable=] static const uint32_t PP_ClockStretcherDDTTable[2][4][4] = { ^~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_hwmgr.c:92:23: error: 'PP_ClockStretcherLookupTable' defined but not used [-Werror=unused-const-variable=] static const uint16_t PP_ClockStretcherLookupTable[2][4] = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/PP_ClockStretchAmountConversion +102 drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_hwmgr.c c82baa28 yanyang1 2015-08-18 86 #define MC_SEQ_MISC0_GDDR5_MASK 0xf0000000 c82baa28 yanyang1 2015-08-18 87 #define MC_SEQ_MISC0_GDDR5_VALUE 5 c82baa28 yanyang1 2015-08-18 88 c82baa28 yanyang1 2015-08-18 89 typedef uint32_t PECI_RegistryValue; c82baa28 yanyang1 2015-08-18 90 c82baa28 yanyang1 2015-08-18 91 /* [2.5%,~2.5%] Clock stretched is multiple of 2.5% vs not and [Fmin, Fmax, LDO_REFSEL, USE_FOR_LOW_FREQ] */ 426d506e Nils Wallménius 2016-04-10 @92 static const uint16_t PP_ClockStretcherLookupTable[2][4] = { c82baa28 yanyang1 2015-08-18 93 {600, 1050, 3, 0}, c82baa28 yanyang1 2015-08-18 94 {600, 1050, 6, 1} }; c82baa28 yanyang1 2015-08-18 95 c82baa28 yanyang1 2015-08-18 96 /* [FF, SS] type, [] 4 voltage ranges, and [Floor Freq, Boundary Freq, VID min , VID max] */ 426d506e Nils Wallménius 2016-04-10 @97 static const uint32_t PP_ClockStretcherDDTTable[2][4][4] = { c82baa28 yanyang1 2015-08-18 98 { {265, 529, 120, 128}, {325, 650, 96, 119}, {430, 860, 32, 95}, {0, 0, 0, 31} }, c82baa28 yanyang1 2015-08-18 99 { {275, 550, 104, 112}, {319, 638, 96, 103}, {360, 720, 64, 95}, {384, 768, 32, 63} } }; c82baa28 yanyang1 2015-08-18 100 c82baa28 yanyang1 2015-08-18 101 /* [Use_For_Low_freq] value, [0%, 5%, 10%, 7.14%, 14.28%, 20%] (coming from PWR_CKS_CNTL.stretch_amount reg spec) */ 426d506e Nils Wallménius 2016-04-10 @102 static const uint8_t PP_ClockStretchAmountConversion[2][6] = { c82baa28 yanyang1 2015-08-18 103 {0, 1, 3, 2, 4, 5}, c82baa28 yanyang1 2015-08-18 104 {0, 2, 4, 5, 6, 5} }; c82baa28 yanyang1 2015-08-18 105 :::::: The code at line 102 was first introduced by commit :::::: 426d506e17afc5a07b44e6ca8098b54ea4cc566c drm/amd: Mark some tables as const :::::: TO: Nils Wallménius <nils.wallmenius@xxxxxxxxx> :::::: CC: Alex Deucher <alexander.deucher@xxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel