drivers/media/dvb-frontends/nxt200x.c:1087:12: warning: stack frame size of 17760 bytes in function 'nxt200x_init'

From: kernel test robot
Date: Thu May 06 2021 - 12:46:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8404c9fbc84b741f66cff7d4934a25dd2c344452
commit: 02c587733c8161355a43e6e110c2e29bd0acff72 kasan: remove redundant config option
date: 3 weeks ago
config: arm64-randconfig-r034-20210506 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=02c587733c8161355a43e6e110c2e29bd0acff72
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 02c587733c8161355a43e6e110c2e29bd0acff72
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64

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

All warnings (new ones prefixed by >>):

>> drivers/media/dvb-frontends/nxt200x.c:1087:12: warning: stack frame size of 17760 bytes in function 'nxt200x_init' [-Wframe-larger-than=]
static int nxt200x_init(struct dvb_frontend* fe)
^
>> drivers/media/dvb-frontends/nxt200x.c:519:12: warning: stack frame size of 10560 bytes in function 'nxt200x_setup_frontend_parameters' [-Wframe-larger-than=]
static int nxt200x_setup_frontend_parameters(struct dvb_frontend *fe)
^
2 warnings generated.
--
>> drivers/media/dvb-frontends/stv090x.c:4685:12: warning: stack frame size of 8224 bytes in function 'stv090x_init' [-Wframe-larger-than=]
static int stv090x_init(struct dvb_frontend *fe)
^
drivers/media/dvb-frontends/stv090x.c:1976:12: warning: stack frame size of 14240 bytes in function 'stv090x_blind_search' [-Wframe-larger-than=]
static int stv090x_blind_search(struct stv090x_state *state)
^
2 warnings generated.


vim +/nxt200x_init +1087 drivers/media/dvb-frontends/nxt200x.c

04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1086
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 @1087 static int nxt200x_init(struct dvb_frontend* fe)
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1088 {
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1089 struct nxt200x_state* state = fe->demodulator_priv;
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1090 int ret = 0;
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1091
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1092 if (!state->initialised) {
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1093 switch (state->demod_chip) {
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1094 case NXT2002:
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1095 ret = nxt2002_init(fe);
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1096 break;
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1097 case NXT2004:
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1098 ret = nxt2004_init(fe);
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1099 break;
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1100 default:
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1101 return -EINVAL;
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1102 }
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1103 state->initialised = 1;
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1104 }
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1105 return ret;
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1106 }
04a45929e7f00e drivers/media/dvb/frontends/nxt200x.c Kirk Lapray 2005-11-08 1107

:::::: The code at line 1087 was first introduced by commit
:::::: 04a45929e7f00ed4fc7b1d375397f808c8a5d0eb [PATCH] dvb: add nxt200x frontend module

:::::: TO: Kirk Lapray <kirk.lapray@xxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip