CC: [email protected]
In-Reply-To: <20210203190518.nlwghesq75enas6n@treble>
References: <20210203190518.nlwghesq75enas6n@treble>
TO: Josh Poimboeuf <[email protected]>
TO: Ivan Babrou <[email protected]>
CC: Peter Zijlstra <[email protected]>
CC: "kernel-team" <[email protected]>
CC: Ignat Korchagin <[email protected]>
CC: Hailong liu <[email protected]>
CC: Andrey Ryabinin <[email protected]>
CC: Alexander Potapenko <[email protected]>
CC: Dmitry Vyukov <[email protected]>
CC: Andrew Morton <[email protected]>
CC: Linux Memory Management List <[email protected]>

Hi Josh,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.11-rc6 next-20210125]
[cannot apply to tip/x86/core hnaz-linux-mm/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/Josh-Poimboeuf/Subject-PATCH-x86-unwind-Add-unwind_debug-cmdline/20210204-030642
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
3aaf0a27ffc29b19a62314edd684b9bc6346f9a8
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-m021-20210202 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
arch/x86/kernel/dumpstack.c:63 unwind_dump() warn: argument 3 to lx specifier 
is cast from pointer

vim +63 arch/x86/kernel/dumpstack.c

2ff14e8a881542 Josh Poimboeuf 2021-02-03  39  
2ff14e8a881542 Josh Poimboeuf 2021-02-03  40  void unwind_dump(struct 
unwind_state *state)
2ff14e8a881542 Josh Poimboeuf 2021-02-03  41  {
2ff14e8a881542 Josh Poimboeuf 2021-02-03  42    unsigned long word, *sp;
2ff14e8a881542 Josh Poimboeuf 2021-02-03  43    struct stack_info stack_info = 
{0};
2ff14e8a881542 Josh Poimboeuf 2021-02-03  44    unsigned long visit_mask = 0;
2ff14e8a881542 Josh Poimboeuf 2021-02-03  45  
2ff14e8a881542 Josh Poimboeuf 2021-02-03  46    printk_deferred("unwinder dump: 
stack type:%d next_sp:%p mask:0x%lx graph_idx:%d\n",
2ff14e8a881542 Josh Poimboeuf 2021-02-03  47                    
state->stack_info.type, state->stack_info.next_sp,
2ff14e8a881542 Josh Poimboeuf 2021-02-03  48                    
state->stack_mask, state->graph_idx);
2ff14e8a881542 Josh Poimboeuf 2021-02-03  49  
2ff14e8a881542 Josh Poimboeuf 2021-02-03  50    sp = state->task == current ? 
__builtin_frame_address(0)
2ff14e8a881542 Josh Poimboeuf 2021-02-03  51                                : 
(void *)state->task->thread.sp;
2ff14e8a881542 Josh Poimboeuf 2021-02-03  52  
2ff14e8a881542 Josh Poimboeuf 2021-02-03  53    for (; sp; sp = 
PTR_ALIGN(stack_info.next_sp, sizeof(long))) {
2ff14e8a881542 Josh Poimboeuf 2021-02-03  54            if (get_stack_info(sp, 
state->task, &stack_info, &visit_mask))
2ff14e8a881542 Josh Poimboeuf 2021-02-03  55                    break;
2ff14e8a881542 Josh Poimboeuf 2021-02-03  56  
2ff14e8a881542 Josh Poimboeuf 2021-02-03  57            for (; sp < 
stack_info.end; sp++) {
2ff14e8a881542 Josh Poimboeuf 2021-02-03  58  
2ff14e8a881542 Josh Poimboeuf 2021-02-03  59                    word = 
READ_ONCE_NOCHECK(*sp);
2ff14e8a881542 Josh Poimboeuf 2021-02-03  60  
2ff14e8a881542 Josh Poimboeuf 2021-02-03  61                    
printk_deferred("%0*lx: %0*lx (%pB)\n", BITS_PER_LONG/4,
2ff14e8a881542 Josh Poimboeuf 2021-02-03  62                                    
(unsigned long)sp, BITS_PER_LONG/4,
2ff14e8a881542 Josh Poimboeuf 2021-02-03 @63                                    
word, (void *)word);
2ff14e8a881542 Josh Poimboeuf 2021-02-03  64            }
2ff14e8a881542 Josh Poimboeuf 2021-02-03  65    }
2ff14e8a881542 Josh Poimboeuf 2021-02-03  66  }
2ff14e8a881542 Josh Poimboeuf 2021-02-03  67  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to