mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [stable:linux-5.4.y 84/946] drivers/usb/host/xhci-debugfs.c:213:12: warning: stack frame size (1184) exceeds limit (1024) in 'xhci_ring_trb_show'
@ 2021-11-06 16:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-06 16:32 UTC (permalink / raw)
  To: Mathias Nyman; +Cc: llvm, kbuild-all, linux-kernel, Greg Kroah-Hartman

[-- Attachment #1: Type: text/plain, Size: 3029 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
head:   c65356f0f7268b1260dd64415c2145e73640872e
commit: d31a4c35b92575eaa4aa0c222fac704844d66e06 [84/946] xhci: fix unsafe memory usage in xhci tracing
config: powerpc64-randconfig-r033-20211027 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=d31a4c35b92575eaa4aa0c222fac704844d66e06
        git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
        git fetch --no-tags stable linux-5.4.y
        git checkout d31a4c35b92575eaa4aa0c222fac704844d66e06
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/usb/host/xhci-debugfs.c:213:12: warning: stack frame size (1184) exceeds limit (1024) in 'xhci_ring_trb_show' [-Wframe-larger-than]
   static int xhci_ring_trb_show(struct seq_file *s, void *unused)
              ^
   1 warning generated.


vim +/xhci_ring_trb_show +213 drivers/usb/host/xhci-debugfs.c

02b6fdc2a153e6 Lu Baolu      2017-10-05  212  
02b6fdc2a153e6 Lu Baolu      2017-10-05 @213  static int xhci_ring_trb_show(struct seq_file *s, void *unused)
02b6fdc2a153e6 Lu Baolu      2017-10-05  214  {
02b6fdc2a153e6 Lu Baolu      2017-10-05  215  	int			i;
fa2dfd0ec22e00 Zhengjun Xing 2018-02-12  216  	struct xhci_ring	*ring = *(struct xhci_ring **)s->private;
02b6fdc2a153e6 Lu Baolu      2017-10-05  217  	struct xhci_segment	*seg = ring->first_seg;
02b6fdc2a153e6 Lu Baolu      2017-10-05  218  
02b6fdc2a153e6 Lu Baolu      2017-10-05  219  	for (i = 0; i < ring->num_segs; i++) {
02b6fdc2a153e6 Lu Baolu      2017-10-05  220  		xhci_ring_dump_segment(s, seg);
02b6fdc2a153e6 Lu Baolu      2017-10-05  221  		seg = seg->next;
02b6fdc2a153e6 Lu Baolu      2017-10-05  222  	}
02b6fdc2a153e6 Lu Baolu      2017-10-05  223  
02b6fdc2a153e6 Lu Baolu      2017-10-05  224  	return 0;
02b6fdc2a153e6 Lu Baolu      2017-10-05  225  }
02b6fdc2a153e6 Lu Baolu      2017-10-05  226  

:::::: The code at line 213 was first introduced by commit
:::::: 02b6fdc2a153e61b957937772a562fb6357dc861 usb: xhci: Add debugfs interface for xHCI driver

:::::: TO: Lu Baolu <baolu.lu@linux.intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30807 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-06 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06 16:32 [stable:linux-5.4.y 84/946] drivers/usb/host/xhci-debugfs.c:213:12: warning: stack frame size (1184) exceeds limit (1024) in 'xhci_ring_trb_show' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®