arch/microblaze/kernel/unwind.c:168: warning: Function parameter or member 'loglvl' not described in 'unwind_trap'

From: kernel test robot
Date: Tue Sep 12 2023 - 11:46:01 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
commit: 77530a5277bcab0433d0f68af11e04a5c4d79039 microblaze: add loglvl to microblaze_unwind_inner()
date: 3 years, 3 months ago
config: microblaze-alldefconfig (https://download.01.org/0day-ci/archive/20230912/202309122318.VLgfp802-lkp@xxxxxxxxx/config)
compiler: microblaze-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230912/202309122318.VLgfp802-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309122318.VLgfp802-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

arch/microblaze/kernel/unwind.c:168: warning: Function parameter or member 'task' not described in 'unwind_trap'
arch/microblaze/kernel/unwind.c:168: warning: Function parameter or member 'pc' not described in 'unwind_trap'
arch/microblaze/kernel/unwind.c:168: warning: Function parameter or member 'fp' not described in 'unwind_trap'
arch/microblaze/kernel/unwind.c:168: warning: Function parameter or member 'trace' not described in 'unwind_trap'
>> arch/microblaze/kernel/unwind.c:168: warning: Function parameter or member 'loglvl' not described in 'unwind_trap'


vim +168 arch/microblaze/kernel/unwind.c

ce3266c0473894 Steven J. Magnani 2010-04-27 153
ce3266c0473894 Steven J. Magnani 2010-04-27 154 static void microblaze_unwind_inner(struct task_struct *task,
ce3266c0473894 Steven J. Magnani 2010-04-27 155 unsigned long pc, unsigned long fp,
ce3266c0473894 Steven J. Magnani 2010-04-27 156 unsigned long leaf_return,
77530a5277bcab Dmitry Safonov 2020-06-08 157 struct stack_trace *trace,
77530a5277bcab Dmitry Safonov 2020-06-08 158 const char *loglvl);
ce3266c0473894 Steven J. Magnani 2010-04-27 159
ce3266c0473894 Steven J. Magnani 2010-04-27 160 /**
ce3266c0473894 Steven J. Magnani 2010-04-27 161 * unwind_trap - Unwind through a system trap, that stored previous state
ce3266c0473894 Steven J. Magnani 2010-04-27 162 * on the stack.
ce3266c0473894 Steven J. Magnani 2010-04-27 163 */
ce3266c0473894 Steven J. Magnani 2010-04-27 164 #ifdef CONFIG_MMU
ce3266c0473894 Steven J. Magnani 2010-04-27 165 static inline void unwind_trap(struct task_struct *task, unsigned long pc,
77530a5277bcab Dmitry Safonov 2020-06-08 166 unsigned long fp, struct stack_trace *trace,
77530a5277bcab Dmitry Safonov 2020-06-08 167 const char *loglvl)
ce3266c0473894 Steven J. Magnani 2010-04-27 @168 {
ce3266c0473894 Steven J. Magnani 2010-04-27 169 /* To be implemented */
ce3266c0473894 Steven J. Magnani 2010-04-27 170 }
ce3266c0473894 Steven J. Magnani 2010-04-27 171 #else
ce3266c0473894 Steven J. Magnani 2010-04-27 172 static inline void unwind_trap(struct task_struct *task, unsigned long pc,
77530a5277bcab Dmitry Safonov 2020-06-08 173 unsigned long fp, struct stack_trace *trace,
77530a5277bcab Dmitry Safonov 2020-06-08 174 const char *loglvl)
ce3266c0473894 Steven J. Magnani 2010-04-27 175 {
ce3266c0473894 Steven J. Magnani 2010-04-27 176 const struct pt_regs *regs = (const struct pt_regs *) fp;
77530a5277bcab Dmitry Safonov 2020-06-08 177 microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace, loglvl);
ce3266c0473894 Steven J. Magnani 2010-04-27 178 }
ce3266c0473894 Steven J. Magnani 2010-04-27 179 #endif
ce3266c0473894 Steven J. Magnani 2010-04-27 180

:::::: The code at line 168 was first introduced by commit
:::::: ce3266c047389443d5f433d605c769e878cbe46e microblaze: Add stack unwinder

:::::: TO: Steven J. Magnani <steve@xxxxxxxxxxxxxxx>
:::::: CC: Michal Simek <monstr@xxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki