[linux-next:pending-fixes 265/302] arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head: 2413b547bbb10e9b0d9da0e15040d2228ef17a76
commit: 98ec2edf58c820ef953fbdfcf98d706aa804b822 [265/302] ARCv2: save ABI registers across signal handling
config: arc-randconfig-r001-20210610 (attached as .config)
compiler: arceb-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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next pending-fixes
git checkout 98ec2edf58c820ef953fbdfcf98d706aa804b822
# 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 errors (new ones prefixed by >>):
arch/arc/kernel/signal.c: In function 'stash_usr_regs':
>> arch/arc/kernel/signal.c:101:21: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
101 | v2abi.r30 = regs->r30;
| ^~~
| r10
arch/arc/kernel/signal.c: In function 'restore_usr_regs':
arch/arc/kernel/signal.c:134:9: error: 'struct pt_regs' has no member named 'r30'; did you mean 'r10'?
134 | regs->r30 = v2abi.r30;
| ^~~
| r10
arch/arc/kernel/signal.c: At top level:
arch/arc/kernel/signal.c:387:6: warning: no previous prototype for 'do_signal' [-Wmissing-prototypes]
387 | void do_signal(struct pt_regs *regs)
| ^~~~~~~~~
arch/arc/kernel/signal.c:420:6: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
420 | void do_notify_resume(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~
vim +101 arch/arc/kernel/signal.c
63
64 static int
65 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,
66 sigset_t *set)
67 {
68 int err;
69 struct user_regs_struct uregs;
70
71 uregs.scratch.bta = regs->bta;
72 uregs.scratch.lp_start = regs->lp_start;
73 uregs.scratch.lp_end = regs->lp_end;
74 uregs.scratch.lp_count = regs->lp_count;
75 uregs.scratch.status32 = regs->status32;
76 uregs.scratch.ret = regs->ret;
77 uregs.scratch.blink = regs->blink;
78 uregs.scratch.fp = regs->fp;
79 uregs.scratch.gp = regs->r26;
80 uregs.scratch.r12 = regs->r12;
81 uregs.scratch.r11 = regs->r11;
82 uregs.scratch.r10 = regs->r10;
83 uregs.scratch.r9 = regs->r9;
84 uregs.scratch.r8 = regs->r8;
85 uregs.scratch.r7 = regs->r7;
86 uregs.scratch.r6 = regs->r6;
87 uregs.scratch.r5 = regs->r5;
88 uregs.scratch.r4 = regs->r4;
89 uregs.scratch.r3 = regs->r3;
90 uregs.scratch.r2 = regs->r2;
91 uregs.scratch.r1 = regs->r1;
92 uregs.scratch.r0 = regs->r0;
93 uregs.scratch.sp = regs->sp;
94
95 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch,
96 sizeof(sf->uc.uc_mcontext.regs.scratch));
97
98 if (is_isa_arcv2()) {
99 struct user_regs_arcv2 v2abi;
100
> 101 v2abi.r30 = regs->r30;
102 #ifdef CONFIG_ARC_HAS_ACCL_REGS
103 v2abi.r58 = regs->r58;
104 v2abi.r59 = regs->r59;
105 #else
106 v2abi.r58 = v2abi.r59 = 0;
107 #endif
108 err |= __copy_to_user(&(sf->uc.uc_mcontext.v2abi), &v2abi,
109 sizeof(sf->uc.uc_mcontext.v2abi));
110 }
111
112 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t));
113
114 return err ? -EFAULT : 0;
115 }
116
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH 03/17] media: camss: csiphy-3ph: add support for SM8250 CSI DPHY
by kernel test robot
In-Reply-To: <20210608223513.23193-4-jonathan(a)marek.ca>
References: <20210608223513.23193-4-jonathan(a)marek.ca>
TO: Jonathan Marek <jonathan(a)marek.ca>
TO: linux-arm-msm(a)vger.kernel.org
CC: robert.foss(a)linaro.org
CC: andrey.konovalov(a)linaro.org
CC: Todor Tomov <todor.too(a)gmail.com>
CC: Andy Gross <agross(a)kernel.org>
CC: Bjorn Andersson <bjorn.andersson(a)linaro.org>
CC: Mauro Carvalho Chehab <mchehab(a)kernel.org>
CC: linux-media(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org
Hi Jonathan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on v5.13-rc5]
[also build test WARNING on next-20210609]
[cannot apply to linuxtv-media/master]
[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/0day-ci/linux/commits/Jonathan-Marek/CAMSS-SM8250-supp...
base: 614124bea77e452aa6df7a8714e8bc820b489922
config: x86_64-randconfig-a001-20210609 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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
# https://github.com/0day-ci/linux/commit/8e450ba9fedaeea7d66b4de3310053605...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jonathan-Marek/CAMSS-SM8250-support-and-some-fixes/20210609-064108
git checkout 8e450ba9fedaeea7d66b4de3310053605c4cf1d3
# 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 warnings (new ones prefixed by >>):
>> drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.o: warning: objtool: csiphy_lanes_enable()+0x5ae: sibling call from callable instruction with modified stack frame
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-next:master 6924/8476] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_smu.c:98:5: warning: no previous prototype for function 'dcn31_smu_send_msg_with_param'
by kernel test robot
Hi Nicholas,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b0795f0f47d7425836ff90b96aea3bd5b73505b2
commit: 38ddc4babe032e67a554ef46e398aac1af5f724e [6924/8476] drm/amd/display: Add DC DCN3.1 support to Kconfig
config: powerpc-randconfig-r006-20210610 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
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 38ddc4babe032e67a554ef46e398aac1af5f724e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_smu.c:26:
In file included from include/linux/delay.h:22:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_smu.c:98:5: warning: no previous prototype for function 'dcn31_smu_send_msg_with_param' [-Wmissing-prototypes]
int dcn31_smu_send_msg_with_param(
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_smu.c:98:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dcn31_smu_send_msg_with_param(
^
static
2 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:28:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dccg.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:32:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:30:
In file included from include/linux/kgdb.h:18:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:54:5: warning: no previous prototype for function 'dcn31_get_active_display_cnt_wa' [-Wmissing-prototypes]
int dcn31_get_active_display_cnt_wa(
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:54:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dcn31_get_active_display_cnt_wa(
^
static
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:491:6: warning: no previous prototype for function 'dcn31_clk_mgr_helper_populate_bw_params' [-Wmissing-prototypes]
void dcn31_clk_mgr_helper_populate_bw_params(
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c:491:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dcn31_clk_mgr_helper_populate_bw_params(
^
static
3 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn31/irq_service_dcn31.c:26:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:30:
In file included from include/linux/kgdb.h:18:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn31/irq_service_dcn31.c:39:20: warning: no previous prototype for function 'to_dal_irq_source_dcn31' [-Wmissing-prototypes]
enum dc_irq_source to_dal_irq_source_dcn31(
^
drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn31/irq_service_dcn31.c:39:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
enum dc_irq_source to_dal_irq_source_dcn31(
^
static
2 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:27:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:32:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:30:
In file included from include/linux/kgdb.h:18:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:2106:13: warning: stack frame size of 3024 bytes in function 'DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation' [-Wframe-larger-than=]
static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation(struct display_mode_lib *mode_lib)
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:3954:6: warning: stack frame size of 3424 bytes in function 'dml31_ModeSupportAndSystemConfigurationFull' [-Wframe-larger-than=]
void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib)
^
3 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:28:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/../display_mode_lib.h:28:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:30:
In file included from include/linux/kgdb.h:18:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:1009:15: warning: variable 'dispclk_delay_subtotal' set but not used [-Wunused-but-set-variable]
unsigned int dispclk_delay_subtotal;
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:1008:15: warning: variable 'dppclk_delay_subtotal' set but not used [-Wunused-but-set-variable]
unsigned int dppclk_delay_subtotal;
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:1678:6: warning: stack frame size of 2288 bytes in function 'dml31_rq_dlg_get_dlg_reg' [-Wframe-larger-than=]
void dml31_rq_dlg_get_dlg_reg(
^
4 warnings generated.
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:27:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:30:
In file included from include/linux/kgdb.h:18:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:465:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
stream_enc_regs(0),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:106:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:83:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:465:2: note: previous initialization is here
stream_enc_regs(0),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:101:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:33:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:465:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
stream_enc_regs(0),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:107:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(HDMI_METADATA_PACKET_CONTROL, DIG, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:93:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:465:2: note: previous initialization is here
stream_enc_regs(0),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:102:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(HDMI_METADATA_PACKET_CONTROL, DIG, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:43:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:465:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
stream_enc_regs(0),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:108:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(DIG_FE_CNTL, DIG, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:103:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:465:2: note: previous initialization is here
stream_enc_regs(0),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:50:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(DIG_FE_CNTL, DIG, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:14:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:466:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
stream_enc_regs(1),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:106:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:219:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:466:2: note: previous initialization is here
stream_enc_regs(1),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:101:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(DP_SEC_METADATA_TRANSMISSION, DP, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:263:25: note: expanded from macro 'BASE_INNER'
#define BASE_INNER(seg) DCN_BASE__INST0_SEG ## seg
^
<scratch space>:169:1: note: expanded from here
DCN_BASE__INST0_SEG2
^
drivers/gpu/drm/amd/amdgpu/../include/yellow_carp_offset.h:388:52: note: expanded from macro 'DCN_BASE__INST0_SEG2'
#define DCN_BASE__INST0_SEG2 0x000034C0
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:466:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
stream_enc_regs(1),
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:461:2: note: expanded from macro 'stream_enc_regs'
SE_DCN3_REG_LIST(id)\
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dio_stream_encoder.h:107:2: note: expanded from macro 'SE_DCN3_REG_LIST'
SRI(HDMI_METADATA_PACKET_CONTROL, DIG, id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:272:14: note: expanded from macro 'SRI'
.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
..
vim +/dcn31_smu_send_msg_with_param +98 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn31/dcn31_smu.c
118a331516581c Nicholas Kazlauskas 2021-05-19 97
118a331516581c Nicholas Kazlauskas 2021-05-19 @98 int dcn31_smu_send_msg_with_param(
118a331516581c Nicholas Kazlauskas 2021-05-19 99 struct clk_mgr_internal *clk_mgr,
118a331516581c Nicholas Kazlauskas 2021-05-19 100 unsigned int msg_id, unsigned int param)
118a331516581c Nicholas Kazlauskas 2021-05-19 101 {
118a331516581c Nicholas Kazlauskas 2021-05-19 102 uint32_t result;
118a331516581c Nicholas Kazlauskas 2021-05-19 103
118a331516581c Nicholas Kazlauskas 2021-05-19 104 result = dcn31_smu_wait_for_response(clk_mgr, 10, 200000);
118a331516581c Nicholas Kazlauskas 2021-05-19 105 ASSERT(result == VBIOSSMC_Result_OK);
118a331516581c Nicholas Kazlauskas 2021-05-19 106
118a331516581c Nicholas Kazlauskas 2021-05-19 107 if (result == VBIOSSMC_Status_BUSY) {
118a331516581c Nicholas Kazlauskas 2021-05-19 108 return -1;
118a331516581c Nicholas Kazlauskas 2021-05-19 109 }
118a331516581c Nicholas Kazlauskas 2021-05-19 110
118a331516581c Nicholas Kazlauskas 2021-05-19 111 /* First clear response register */
118a331516581c Nicholas Kazlauskas 2021-05-19 112 REG_WRITE(MP1_SMN_C2PMSG_91, VBIOSSMC_Status_BUSY);
118a331516581c Nicholas Kazlauskas 2021-05-19 113
118a331516581c Nicholas Kazlauskas 2021-05-19 114 /* Set the parameter register for the SMU message, unit is Mhz */
118a331516581c Nicholas Kazlauskas 2021-05-19 115 REG_WRITE(MP1_SMN_C2PMSG_83, param);
118a331516581c Nicholas Kazlauskas 2021-05-19 116
118a331516581c Nicholas Kazlauskas 2021-05-19 117 /* Trigger the message transaction by writing the message ID */
118a331516581c Nicholas Kazlauskas 2021-05-19 118 REG_WRITE(MP1_SMN_C2PMSG_67, msg_id);
118a331516581c Nicholas Kazlauskas 2021-05-19 119
118a331516581c Nicholas Kazlauskas 2021-05-19 120 result = dcn31_smu_wait_for_response(clk_mgr, 10, 200000);
118a331516581c Nicholas Kazlauskas 2021-05-19 121
118a331516581c Nicholas Kazlauskas 2021-05-19 122 if (IS_SMU_TIMEOUT(result)) {
118a331516581c Nicholas Kazlauskas 2021-05-19 123 ASSERT(0);
118a331516581c Nicholas Kazlauskas 2021-05-19 124 dm_helpers_smu_timeout(CTX, msg_id, param, 10 * 200000);
118a331516581c Nicholas Kazlauskas 2021-05-19 125 }
118a331516581c Nicholas Kazlauskas 2021-05-19 126
118a331516581c Nicholas Kazlauskas 2021-05-19 127 return REG_READ(MP1_SMN_C2PMSG_83);
118a331516581c Nicholas Kazlauskas 2021-05-19 128 }
118a331516581c Nicholas Kazlauskas 2021-05-19 129
:::::: The code at line 98 was first introduced by commit
:::::: 118a331516581c3acf1279857b0f663a54b7f31b drm/amd/display: Add DCN3.1 clock manager support
:::::: TO: Nicholas Kazlauskas <nicholas.kazlauskas(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
1 year, 3 months
fs/reiserfs/do_balan.c:1220:13: warning: stack frame size of 1408 bytes in function 'balance_leaf_new_nodes'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cd1245d75ce93b8fd206f4b34eb58bcfe156d5e9
commit: 97e4910232fa1f81e806aa60c25a0450276d99a2 linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*
date: 3 months ago
config: powerpc-randconfig-r031-20210610 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 97e4910232fa1f81e806aa60c25a0450276d99a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
In file included from fs/reiserfs/do_balan.c:15:
In file included from fs/reiserfs/reiserfs.h:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:96:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/reiserfs/do_balan.c:15:
In file included from fs/reiserfs/reiserfs.h:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:98:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/reiserfs/do_balan.c:15:
In file included from fs/reiserfs/reiserfs.h:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:100:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/reiserfs/do_balan.c:15:
In file included from fs/reiserfs/reiserfs.h:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:102:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/reiserfs/do_balan.c:15:
In file included from fs/reiserfs/reiserfs.h:10:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:104:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> fs/reiserfs/do_balan.c:1220:13: warning: stack frame size of 1408 bytes in function 'balance_leaf_new_nodes' [-Wframe-larger-than=]
static void balance_leaf_new_nodes(struct tree_balance *tb,
^
8 warnings generated.
vim +/balance_leaf_new_nodes +1220 fs/reiserfs/do_balan.c
9d496552b95e95 Jeff Mahoney 2014-04-23 1218
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1219 /* Fill new nodes that appear in place of S[0] */
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 @1220 static void balance_leaf_new_nodes(struct tree_balance *tb,
27d0e5bc85f334 Jeff Mahoney 2014-08-04 1221 struct item_head * const ih,
27d0e5bc85f334 Jeff Mahoney 2014-08-04 1222 const char * const body,
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1223 struct item_head *insert_key,
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1224 struct buffer_head **insert_ptr,
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1225 int flag)
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1226 {
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1227 int i;
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1228 for (i = tb->blknum[0] - 2; i >= 0; i--) {
b54b8c91841537 Jeff Mahoney 2014-04-23 1229 BUG_ON(flag != M_INSERT && flag != M_PASTE);
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1230
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1231 RFALSE(!tb->snum[i],
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1232 "PAP-12200: snum[%d] == %d. Must be > 0", i,
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1233 tb->snum[i]);
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1234
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1235 /* here we shift from S to S_new nodes */
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1236
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1237 tb->S_new[i] = get_FEB(tb);
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1238
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1239 /* initialized block type and tree level */
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1240 set_blkh_level(B_BLK_HEAD(tb->S_new[i]), DISK_LEAF_NODE_LEVEL);
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1241
b54b8c91841537 Jeff Mahoney 2014-04-23 1242 if (flag == M_INSERT)
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1243 balance_leaf_new_nodes_insert(tb, ih, body, insert_key,
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1244 insert_ptr, i);
b54b8c91841537 Jeff Mahoney 2014-04-23 1245 else /* M_PASTE */
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1246 balance_leaf_new_nodes_paste(tb, ih, body, insert_key,
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1247 insert_ptr, i);
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1248
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1249 memcpy(insert_key + i, leaf_key(tb->S_new[i], 0), KEY_SIZE);
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1250 insert_ptr[i] = tb->S_new[i];
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1251
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1252 RFALSE(!buffer_journaled(tb->S_new[i])
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1253 || buffer_journal_dirty(tb->S_new[i])
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1254 || buffer_dirty(tb->S_new[i]),
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1255 "PAP-12247: S_new[%d] : (%b)",
19ef1229bc2e24 Jan Kara 2014-06-11 1256 i, tb->S_new[i]);
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1257 }
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1258 }
0080e9f9d3ac71 Jeff Mahoney 2014-04-23 1259
:::::: The code at line 1220 was first introduced by commit
:::::: 0080e9f9d3ac717537dbd6db1fc8ef72ce0b9cc1 reiserfs: balance_leaf refactor, pull out balance_leaf{left, right, new_nodes, finish_node}
:::::: TO: Jeff Mahoney <jeffm(a)suse.com>
:::::: CC: Jan Kara <jack(a)suse.cz>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/soc/samsung/s3c-pm-debug.c:30:2: warning: function 's3c_pm_dbg' might be a candidate for 'gnu_printf' format attribute
by kernel test robot
Hi Arnd,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 368094df48e680fa51cedb68537408cfa64b788e
commit: 17132da70eb766785b9b4677bacce18cc11ea442 ARM: samsung: move pm check code to drivers/soc
date: 10 months ago
config: arm-randconfig-r031-20210609 (attached as .config)
compiler: arm-linux-gnueabi-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 17132da70eb766785b9b4677bacce18cc11ea442
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
drivers/soc/samsung/s3c-pm-debug.c: In function 's3c_pm_dbg':
>> drivers/soc/samsung/s3c-pm-debug.c:30:2: warning: function 's3c_pm_dbg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
30 | vsnprintf(buff, sizeof(buff), fmt, va);
| ^~~~~~~~~
vim +30 drivers/soc/samsung/s3c-pm-debug.c
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 23
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 24 void s3c_pm_dbg(const char *fmt, ...)
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 25 {
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 26 va_list va;
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 27 char buff[256];
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 28
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 29 va_start(va, fmt);
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 @30 vsnprintf(buff, sizeof(buff), fmt, va);
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 31 va_end(va);
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 32
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 33 printascii(buff);
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 34 }
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 35
:::::: The code at line 30 was first introduced by commit
:::::: 72551f6cf13e2f3a1d273b7007b5d7d7fd69c554 ARM: SAMSUNG: Move Samsung PM debug code into separate file
:::::: TO: Tomasz Figa <t.figa(a)samsung.com>
:::::: CC: Kukjin Kim <kgene.kim(a)samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
arch/x86/lib/copy_mc.c:30:1: warning: no previous prototype for 'copy_mc_fragile_handle_tail'
by kernel test robot
Hi Dan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 368094df48e680fa51cedb68537408cfa64b788e
commit: ec6347bb43395cb92126788a1a5b25302543f815 x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()
date: 8 months ago
config: x86_64-randconfig-r025-20210610 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ec6347bb43395cb92126788a1a5b25302543f815
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
>> arch/x86/lib/copy_mc.c:30:1: warning: no previous prototype for 'copy_mc_fragile_handle_tail' [-Wmissing-prototypes]
30 | copy_mc_fragile_handle_tail(char *to, char *from, unsigned len)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/copy_mc_fragile_handle_tail +30 arch/x86/lib/copy_mc.c
24
25 /*
26 * Similar to copy_user_handle_tail, probe for the write fault point, or
27 * source exception point.
28 */
29 __visible notrace unsigned long
> 30 copy_mc_fragile_handle_tail(char *to, char *from, unsigned len)
31 {
32 for (; len; --len, to++, from++)
33 if (copy_mc_fragile(to, from, 1))
34 break;
35 return len;
36 }
37 #else
38 /*
39 * No point in doing careful copying, or consulting a static key when
40 * there is no #MC handler in the CONFIG_X86_MCE=n case.
41 */
42 void enable_copy_mc_fragile(void)
43 {
44 }
45 #define copy_mc_fragile_enabled (0)
46 #endif
47
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months