drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:249:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 9c7c85f7ea1fe55e9406858e3ca32a51494bd02e drm/amdgpu: add pmu counters
date: 12 months ago
config: arc-randconfig-r036-20200617 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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 checkout 9c7c85f7ea1fe55e9406858e3ca32a51494bd02e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c: In function 'amdgpu_pmu_init':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:249:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
249 | int ret = 0;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:28:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
In file included from include/linux/perf_event.h:25,
from drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:26:
arch/arc/include/asm/perf_event.h:130:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
130 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:95:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
95 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
vim +/ret +249 drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c
245
246 /* init amdgpu_pmu */
247 int amdgpu_pmu_init(struct amdgpu_device *adev)
248 {
> 249 int ret = 0;
250
251 switch (adev->asic_type) {
252 case CHIP_VEGA20:
253 /* init df */
254 ret = init_pmu_by_type(adev, df_v3_6_attr_groups,
255 "DF", "amdgpu_df", PERF_TYPE_AMDGPU_DF,
256 DF_V3_6_MAX_COUNTERS);
257
258 /* other pmu types go here*/
259 break;
260 default:
261 return 0;
262 }
263
264 return 0;
265 }
266
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.19 61/62] kernel/sched/core.c:6813:29: error: use of undeclared identifier 'CPU_ACTIVATE'; did you mean
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: d2eeef58809494b0ea811ce578163de7a2478a22
commit: 231822f7cf3229131789ef0315fe70050be7bb6c [61/62] FIXUP: FROMLIST: sched/fair: core wide vruntime comparison
config: x86_64-randconfig-a001-20200617 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 231822f7cf3229131789ef0315fe70050be7bb6c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
kernel/sched/core.c:1980:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/core.c:1980:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
kernel/sched/core.c:4613:35: warning: no previous prototype for function 'schedule_user' [-Wmissing-prototypes]
asmlinkage __visible void __sched schedule_user(void)
^
kernel/sched/core.c:4613:22: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage __visible void __sched schedule_user(void)
^
static
kernel/sched/core.c:4752:35: warning: no previous prototype for function 'preempt_schedule_irq' [-Wmissing-prototypes]
asmlinkage __visible void __sched preempt_schedule_irq(void)
^
kernel/sched/core.c:4752:22: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage __visible void __sched preempt_schedule_irq(void)
^
static
>> kernel/sched/core.c:6813:29: error: use of undeclared identifier 'CPU_ACTIVATE'; did you mean 'PGACTIVATE'?
core_sched_cpu_update(cpu, CPU_ACTIVATE);
^~~~~~~~~~~~
PGACTIVATE
include/linux/vm_event_item.h:29:11: note: 'PGACTIVATE' declared here
PGFREE, PGACTIVATE, PGDEACTIVATE, PGLAZYFREE,
^
>> kernel/sched/core.c:6865:29: error: use of undeclared identifier 'CPU_DEACTIVATE'; did you mean 'PGDEACTIVATE'?
core_sched_cpu_update(cpu, CPU_DEACTIVATE);
^~~~~~~~~~~~~~
PGDEACTIVATE
include/linux/vm_event_item.h:29:23: note: 'PGDEACTIVATE' declared here
PGFREE, PGACTIVATE, PGDEACTIVATE, PGLAZYFREE,
^
3 warnings and 2 errors generated.
vim +6813 kernel/sched/core.c
e761b772523427 kernel/sched.c Max Krasnyansky 2008-07-15 6800
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6801 int sched_cpu_activate(unsigned int cpu)
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6802 {
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6803 struct rq *rq = cpu_rq(cpu);
8a8c69c3277886 kernel/sched/core.c Peter Zijlstra 2016-10-04 6804 struct rq_flags rf;
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6805
ba2591a5993eab kernel/sched/core.c Peter Zijlstra 2018-05-29 6806 #ifdef CONFIG_SCHED_SMT
ba2591a5993eab kernel/sched/core.c Peter Zijlstra 2018-05-29 6807 /*
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6808) * When going up, increment the number of cores with SMT present.
ba2591a5993eab kernel/sched/core.c Peter Zijlstra 2018-05-29 6809 */
56b6a5dcf7349d kernel/sched/core.c Peter Zijlstra 2019-02-18 6810 if (cpumask_weight(cpu_smt_mask(cpu)) == 2) {
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6811) static_branch_inc_cpuslocked(&sched_smt_present);
56b6a5dcf7349d kernel/sched/core.c Peter Zijlstra 2019-02-18 6812 }
cfff5c5f9c0a9b kernel/sched/core.c Tim Chen 2020-01-07 @6813 core_sched_cpu_update(cpu, CPU_ACTIVATE);
ba2591a5993eab kernel/sched/core.c Peter Zijlstra 2018-05-29 6814 #endif
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6815 set_cpu_active(cpu, true);
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6816
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6817 if (sched_smp_initialized) {
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6818 sched_domains_numa_masks_set(cpu);
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6819 cpuset_cpu_active();
e761b772523427 kernel/sched.c Max Krasnyansky 2008-07-15 6820 }
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6821
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6822 /*
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6823 * Put the rq online, if not already. This happens:
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6824 *
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6825 * 1) In the early boot process, because we build the real domains
d1ccc66df8bfe3 kernel/sched/core.c Ingo Molnar 2017-02-01 6826 * after all CPUs have been brought up.
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6827 *
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6828 * 2) At runtime, if cpuset_cpu_active() fails to rebuild the
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6829 * domains.
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6830 */
8a8c69c3277886 kernel/sched/core.c Peter Zijlstra 2016-10-04 6831 rq_lock_irqsave(rq, &rf);
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6832 if (rq->rd) {
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6833 BUG_ON(!cpumask_test_cpu(cpu, rq->rd->span));
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6834 set_rq_online(rq);
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6835 }
8a8c69c3277886 kernel/sched/core.c Peter Zijlstra 2016-10-04 6836 rq_unlock_irqrestore(rq, &rf);
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6837
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6838 update_max_interval();
7d97669933eb94 kernel/sched/core.c Thomas Gleixner 2016-03-10 6839
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6840 return 0;
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6841 }
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6842
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6843 int sched_cpu_deactivate(unsigned int cpu)
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6844 {
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6845 int ret;
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6846
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6847 set_cpu_active(cpu, false);
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6848 /*
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6849 * We've cleared cpu_active_mask, wait for all preempt-disabled and RCU
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6850 * users of this state to go away such that all new such users will
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6851 * observe it.
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6852 *
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6853 * Do sync before park smpboot threads to take care the rcu boost case.
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6854 */
b2454caa8977ad kernel/sched/core.c Peter Zijlstra 2016-03-10 6855 synchronize_rcu_mult(call_rcu, call_rcu_sched);
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6856
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6857) #ifdef CONFIG_SCHED_SMT
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6858) /*
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6859) * When going down, decrement the number of cores with SMT present.
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6860) */
56b6a5dcf7349d kernel/sched/core.c Peter Zijlstra 2019-02-18 6861 if (cpumask_weight(cpu_smt_mask(cpu)) == 2) {
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6862) static_branch_dec_cpuslocked(&sched_smt_present);
56b6a5dcf7349d kernel/sched/core.c Peter Zijlstra 2019-02-18 6863
56b6a5dcf7349d kernel/sched/core.c Peter Zijlstra 2019-02-18 6864 }
cfff5c5f9c0a9b kernel/sched/core.c Tim Chen 2020-01-07 @6865 core_sched_cpu_update(cpu, CPU_DEACTIVATE);
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6866) #endif
a2c094816f894b kernel/sched/core.c Peter Zijlstra (Intel 2018-11-25 6867)
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6868 if (!sched_smp_initialized)
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6869 return 0;
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6870
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6871 ret = cpuset_cpu_inactive(cpu);
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6872 if (ret) {
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6873 set_cpu_active(cpu, true);
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6874 return ret;
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6875 }
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6876 sched_domains_numa_masks_clear(cpu);
40190a78f85fec kernel/sched/core.c Thomas Gleixner 2016-03-10 6877 return 0;
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6878 }
135fb3e19773e6 kernel/sched/core.c Thomas Gleixner 2016-03-10 6879
:::::: The code at line 6813 was first introduced by commit
:::::: cfff5c5f9c0a9b899e38ed65fb7d925d6b5a5bfa FROMLIST: sched/core: Update core scheduler queue when taking cpu online/offline
:::::: TO: Tim Chen <tim.c.chen(a)linux.intel.com>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:225:10: warning: comparison of unsigned expression < 0 is always false
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 80381d40c9bf5218db06a7d7246c5478c95987ee drm/amd/powerplay: fix pre-check condition for setting clock range
date: 3 months ago
config: ia64-randconfig-r003-20200617 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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 checkout 80381d40c9bf5218db06a7d7246c5478c95987ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/mm.h:94,
from arch/ia64/include/asm/uaccess.h:38,
from include/linux/uaccess.h:11,
from arch/ia64/include/asm/sections.h:11,
from include/linux/interrupt.h:20,
from include/linux/pci.h:38,
from drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:24:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
137 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c: In function 'smu_set_soft_freq_range':
>> drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:225:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
225 | if (min < 0 && max < 0)
| ^
drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:225:21: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
225 | if (min < 0 && max < 0)
| ^
drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c: At top level:
drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:1703:5: warning: no previous prototype for 'smu_adjust_power_state_dynamic' [-Wmissing-prototypes]
1703 | int smu_adjust_power_state_dynamic(struct smu_context *smu,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:31:
drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smu_v11_0.h:68:43: warning: 'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
68 | static const struct smu_temperature_range smu11_thermal_policy[] =
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:27:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:177:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
177 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +225 drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c
219
220 int smu_set_soft_freq_range(struct smu_context *smu, enum smu_clk_type clk_type,
221 uint32_t min, uint32_t max)
222 {
223 int ret = 0;
224
> 225 if (min < 0 && max < 0)
226 return -EINVAL;
227
228 if (!smu_clk_dpm_is_enabled(smu, clk_type))
229 return 0;
230
231 ret = smu_set_soft_freq_limited_range(smu, clk_type, min, max);
232 return ret;
233 }
234
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/acpi/processor_thermal.c:66:1: warning: the frame size of 2272 bytes is larger than 2048 bytes
by kernel test robot
Hi Rafael,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 3000ce3c52f8b8db093e4dc649cd172390f71137 cpufreq: Use per-policy frequency QoS
date: 8 months ago
config: ia64-randconfig-r005-20200617 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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 checkout 3000ce3c52f8b8db093e4dc649cd172390f71137
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/acpi/processor_thermal.c: In function 'cpu_has_cpufreq':
>> drivers/acpi/processor_thermal.c:66:1: warning: the frame size of 2272 bytes is larger than 2048 bytes [-Wframe-larger-than=]
66 | }
| ^
vim +66 drivers/acpi/processor_thermal.c
2815ab92ba3ab2 Andi Kleen 2012-02-06 59
^1da177e4c3f41 Linus Torvalds 2005-04-16 60 static int cpu_has_cpufreq(unsigned int cpu)
^1da177e4c3f41 Linus Torvalds 2005-04-16 61 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 62 struct cpufreq_policy policy;
d15ce412737acc Viresh Kumar 2019-08-28 63 if (!acpi_processor_cpufreq_init || cpufreq_get_policy(&policy, cpu))
^1da177e4c3f41 Linus Torvalds 2005-04-16 64 return 0;
75b245b3259133 Thomas Renninger 2005-12-21 65 return 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 @66 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 67
:::::: The code at line 66 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1568:6: warning: no previous prototype for 'gfx_v10_0_rlc_stop'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: c6b6a42175f5d36d8e7f85afb8acb6559210641e drm/amdgpu: add navi10 common ip block (v3)
date: 12 months ago
config: ia64-randconfig-r012-20200617 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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 checkout c6b6a42175f5d36d8e7f85afb8acb6559210641e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1568:6: warning: no previous prototype for 'gfx_v10_0_rlc_stop' [-Wmissing-prototypes]
1568 | void gfx_v10_0_rlc_stop(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:25:
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c: In function 'gfx_v10_0_set_gfx_eop_interrupt_state':
drivers/gpu/drm/amd/amdgpu/amdgpu.h:1027:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
1027 | #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:4568:3: note: in expansion of macro 'WREG32'
4568 | WREG32(cp_int_cntl_reg, cp_int_cntl);
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:4569:2: note: here
4569 | case AMDGPU_IRQ_STATE_ENABLE:
| ^~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:25:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/gfx_v10_0_rlc_stop +1568 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
a644d85a5cd4ef Hawking Zhang 2019-03-04 1567
a644d85a5cd4ef Hawking Zhang 2019-03-04 @1568 void gfx_v10_0_rlc_stop(struct amdgpu_device *adev)
a644d85a5cd4ef Hawking Zhang 2019-03-04 1569 {
a644d85a5cd4ef Hawking Zhang 2019-03-04 1570 u32 tmp = RREG32_SOC15(GC, 0, mmRLC_CNTL);
a644d85a5cd4ef Hawking Zhang 2019-03-04 1571
a644d85a5cd4ef Hawking Zhang 2019-03-04 1572 tmp = REG_SET_FIELD(tmp, RLC_CNTL, RLC_ENABLE_F32, 0);
a644d85a5cd4ef Hawking Zhang 2019-03-04 1573 WREG32_SOC15(GC, 0, mmRLC_CNTL, tmp);
a644d85a5cd4ef Hawking Zhang 2019-03-04 1574
a644d85a5cd4ef Hawking Zhang 2019-03-04 1575 gfx_v10_0_enable_gui_idle_interrupt(adev, false);
a644d85a5cd4ef Hawking Zhang 2019-03-04 1576 }
a644d85a5cd4ef Hawking Zhang 2019-03-04 1577
:::::: The code at line 1568 was first introduced by commit
:::::: a644d85a5cd4efbb1eb62751ef8a98a70d9794bc drm/amdgpu: add gfx v10 implementation (v10)
:::::: TO: Hawking Zhang <Hawking.Zhang(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 2/2] usb: dwc3: Host wake up support from system suspend
by kernel test robot
In-Reply-To: <1591885683-29514-3-git-send-email-sanm(a)codeaurora.org>
References: <1591885683-29514-3-git-send-email-sanm(a)codeaurora.org>
TO: Sandeep Maheswaram <sanm(a)codeaurora.org>
TO: Andy Gross <agross(a)kernel.org>
TO: Bjorn Andersson <bjorn.andersson(a)linaro.org>
TO: "Greg Kroah-Hartman" <gregkh(a)linuxfoundation.org>
TO: Rob Herring <robh+dt(a)kernel.org>
TO: Mark Rutland <mark.rutland(a)arm.com>
TO: Felipe Balbi <balbi(a)kernel.org>
TO: Stephen Boyd <swboyd(a)chromium.org>
TO: Doug Anderson <dianders(a)chromium.org>
TO: Matthias Kaehlcke <mka(a)chromium.org>
TO: Michael Turquette <mturquette(a)baylibre.com>
Hi Sandeep,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on balbi-usb/testing/next]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Sandeep-Maheswaram/usb-dwc3-Host...
base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
config: mips-randconfig-r013-20200617 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ld.lld: error: undefined symbol: usb_hcd_is_primary_hcd
>>> referenced by core.c
>>> usb/dwc3/core.o:(dwc3_suspend_common) in archive drivers/built-in.a
--
>> ld.lld: error: undefined symbol: usb_wakeup_enabled_descendants
>>> referenced by core.c
>>> usb/dwc3/core.o:(dwc3_suspend_common) in archive drivers/built-in.a
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:338:6: warning: no previous prototype for 'amdgpu_virt_access_debugfs_is_mmio'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: d32709dac627e5602fb3e66bcf4316906356120d drm/amdgpu: resume kiq access debugfs
date: 9 weeks ago
config: ia64-randconfig-r012-20200617 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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 checkout d32709dac627e5602fb3e66bcf4316906356120d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:338:6: warning: no previous prototype for 'amdgpu_virt_access_debugfs_is_mmio' [-Wmissing-prototypes]
338 | bool amdgpu_virt_access_debugfs_is_mmio(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:343:6: warning: no previous prototype for 'amdgpu_virt_access_debugfs_is_kiq' [-Wmissing-prototypes]
343 | bool amdgpu_virt_access_debugfs_is_kiq(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:28:
drivers/gpu/drm/amd/amdgpu/amdgpu.h:177:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
177 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/amdgpu_virt_access_debugfs_is_mmio +338 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
337
> 338 bool amdgpu_virt_access_debugfs_is_mmio(struct amdgpu_device *adev)
339 {
340 return amdgpu_sriov_is_debug(adev) ? true : false;
341 }
342
> 343 bool amdgpu_virt_access_debugfs_is_kiq(struct amdgpu_device *adev)
344 {
345 return amdgpu_sriov_is_normal(adev) ? true : false;
346 }
347
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[saeed:net-next-mlx5 8/49] drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:153:12: error: implicit declaration of function 'sk_rx_queue_get'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git net-next-mlx5
head: 8da28234fdc1b6b67a99169b7ffb5c223dfa0e6a
commit: 8200fbfffdb59611884f165cd1769ec03de405ef [8/49] net/mlx5e: kTLS, Add kTLS RX HW offload support
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.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 checkout 8200fbfffdb59611884f165cd1769ec03de405ef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/xtensa/include/asm/processor.h:15,
from arch/xtensa/include/asm/atomic.h:18,
from include/linux/atomic.h:7,
from include/linux/refcount.h:95,
from include/net/act_api.h:9,
from include/net/tc_act/tc_gact.h:5,
from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:33:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
arch/xtensa/include/asm/page.h:201:32: note: in expansion of macro 'pfn_valid'
201 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/refcount.h:96,
from include/net/act_api.h:9,
from include/net/tc_act/tc_gact.h:5,
from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:33:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); | ^~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:49:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h: In function 'mlx5e_accel_sk_get_rxq':
>> drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:153:12: error: implicit declaration of function 'sk_rx_queue_get'; did you mean 'sk_rx_queue_set'? [-Werror=implicit-function-declaration]
153 | int rxq = sk_rx_queue_get(sk);
| ^~~~~~~~~~~~~~~
| sk_rx_queue_set
cc1: some warnings being treated as errors
vim +153 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
150
151 static inline int mlx5e_accel_sk_get_rxq(struct sock *sk)
152 {
> 153 int rxq = sk_rx_queue_get(sk);
154
155 if (unlikely(rxq == -1))
156 rxq = 0;
157
158 return rxq;
159 }
160
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[peterz-queue:locking/irqstate 14/17] arch/powerpc/include/asm/lppaca.h:145:14: error: 'SLB_NUM_BOLTED' undeclared here (not in a function)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/irqstate
head: a6725b65bba0aa1d329b2a2b79aa968d5a8424a8
commit: 7eb951b5f72bd1a69007f417399a91f73b156898 [14/17] powerpc64: Break asm/percpu.h vs spinlock_types.h dependency
config: powerpc-mpc83xx_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.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 checkout 7eb951b5f72bd1a69007f417399a91f73b156898
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/powerpc/include/asm/dtl.h:4,
from arch/powerpc/kernel/time.c:72:
>> arch/powerpc/include/asm/lppaca.h:145:14: error: 'SLB_NUM_BOLTED' undeclared here (not in a function)
145 | } save_area[SLB_NUM_BOLTED];
| ^~~~~~~~~~~~~~
vim +/SLB_NUM_BOLTED +145 arch/powerpc/include/asm/lppaca.h
f13c13a005127b arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 132
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 133 /*
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 134 * SLB shadow buffer structure as defined in the PAPR. The save_area
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 135 * contains adjacent ESID and VSID pairs for each shadowed SLB. The
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 136 * ESID is stored in the lower 64bits, then the VSID.
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 137 */
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 138 struct slb_shadow {
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 139 __be32 persistent; /* Number of persistent SLBs */
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 140 __be32 buffer_length; /* Total shadow buffer length */
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 141 __be64 reserved;
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 142 struct {
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 143 __be64 esid;
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 144 __be64 vsid;
59c19cb2f6a792 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2012-04-10 @145 } save_area[SLB_NUM_BOLTED];
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 146 } ____cacheline_aligned;
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 147
:::::: The code at line 145 was first introduced by commit
:::::: 59c19cb2f6a7928a2fd3afd22bfe988e025b41d8 powerpc: Reformat lppaca.h
:::::: TO: Anton Blanchard <anton(a)samba.org>
:::::: CC: Benjamin Herrenschmidt <benh(a)kernel.crashing.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[linux-next:master 831/2089] drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:779:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fcb9628fd1227a5f11d87171cb1b8b5c414d9d9
commit: b455159c053130d0658e9e7f8cb61e9bf6603f22 [831/2089] drm/amdgpu/powerplay: add initial swSMU support for sienna_cichlid (v2)
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout b455159c053130d0658e9e7f8cb61e9bf6603f22
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c: In function 'sienna_cichlid_is_dpm_running':
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:779:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
779 | int ret = 0;
| ^~~
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c: In function 'sienna_cichlid_set_power_profile_mode':
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:934:12: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
934 | if (size < 0)
| ^
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:32:
At top level:
drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smu_v11_0.h:68:43: warning: 'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
68 | static const struct smu_temperature_range smu11_thermal_policy[] =
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:27:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/ret +779 drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c
776
777 static bool sienna_cichlid_is_dpm_running(struct smu_context *smu)
778 {
> 779 int ret = 0;
780 uint32_t feature_mask[2];
781 unsigned long feature_enabled;
782 ret = smu_feature_get_enabled_mask(smu, feature_mask, 2);
783 feature_enabled = (unsigned long)((uint64_t)feature_mask[0] |
784 ((uint64_t)feature_mask[1] << 32));
785 return !!(feature_enabled & SMC_DPM_FEATURE);
786 }
787
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months