drivers/media/dvb-frontends/stv090x.c:4685:12: warning: stack frame size of 8224 bytes in function 'stv090x_init'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/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 +/stv090x_init +4685 drivers/media/dvb-frontends/stv090x.c

6b9e50c463efc5c drivers/media/dvb-frontends/stv090x.c Andreas Regel  2012-03-11  4684  
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06 @4685  static int stv090x_init(struct dvb_frontend *fe)
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4686  {
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4687  	struct stv090x_state *state = fe->demodulator_priv;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4688  	const struct stv090x_config *config = state->config;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4689  	u32 reg;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4690  
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4691  	if (state->internal->mclk == 0) {
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4692  		/* call tuner init to configure the tuner's clock output
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4693  		   divider directly before setting up the master clock of
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4694  		   the stv090x. */
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4695  		if (stv090x_i2c_gate_ctrl(state, 1) < 0)
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4696  			goto err;
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4697  
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4698  		if (config->tuner_init) {
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4699  			if (config->tuner_init(fe) < 0)
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4700  				goto err_gateoff;
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4701  		}
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4702  
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4703  		if (stv090x_i2c_gate_ctrl(state, 0) < 0)
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4704  			goto err;
5817ea0c83665db drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-02-13  4705  
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4706  		stv090x_set_mclk(state, 135000000, config->xtal); /* 135 Mhz */
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4707  		msleep(5);
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4708  		if (stv090x_write_reg(state, STV090x_SYNTCTRL,
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4709  				      0x20 | config->clk_mode) < 0)
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4710  			goto err;
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4711  		stv090x_get_mclk(state);
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4712  	}
9045e729447192a drivers/media/dvb/frontends/stv090x.c Andreas Regel  2010-01-05  4713  
cbc320d2782cbb0 drivers/media/dvb/frontends/stv090x.c Andreas Regel  2009-04-23  4714  	if (stv090x_wakeup(fe) < 0) {
cbc320d2782cbb0 drivers/media/dvb/frontends/stv090x.c Andreas Regel  2009-04-23  4715  		dprintk(FE_ERROR, 1, "Error waking device");
cbc320d2782cbb0 drivers/media/dvb/frontends/stv090x.c Andreas Regel  2009-04-23  4716  		goto err;
cbc320d2782cbb0 drivers/media/dvb/frontends/stv090x.c Andreas Regel  2009-04-23  4717  	}
cbc320d2782cbb0 drivers/media/dvb/frontends/stv090x.c Andreas Regel  2009-04-23  4718  
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4719  	if (stv090x_ldpc_mode(state, state->demod_mode) < 0)
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4720  		goto err;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4721  
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4722  	reg = STV090x_READ_DEMOD(state, TNRCFG2);
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4723  	STV090x_SETFIELD_Px(reg, TUN_IQSWAP_FIELD, state->inversion);
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4724  	if (STV090x_WRITE_DEMOD(state, TNRCFG2, reg) < 0)
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4725  		goto err;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4726  	reg = STV090x_READ_DEMOD(state, DEMOD);
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4727  	STV090x_SETFIELD_Px(reg, ROLLOFF_CONTROL_FIELD, state->rolloff);
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4728  	if (STV090x_WRITE_DEMOD(state, DEMOD, reg) < 0)
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4729  		goto err;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4730  
19c4ee58325ac7c drivers/media/dvb/frontends/stv090x.c Manu Abraham   2010-01-22  4731  	if (stv090x_i2c_gate_ctrl(state, 1) < 0)
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4732  		goto err;
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4733  
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4734  	if (config->tuner_set_mode) {
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4735  		if (config->tuner_set_mode(fe, TUNER_WAKE) < 0)
2c1f750ba3fbd4a drivers/media/dvb/frontends/stv090x.c Oliver Endriss 2010-01-10  4736  			goto err_gateoff;
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4737  	}
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4738  
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4739  	if (config->tuner_init) {
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4740  		if (config->tuner_init(fe) < 0)
2c1f750ba3fbd4a drivers/media/dvb/frontends/stv090x.c Oliver Endriss 2010-01-10  4741  			goto err_gateoff;
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4742  	}
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4743  
19c4ee58325ac7c drivers/media/dvb/frontends/stv090x.c Manu Abraham   2010-01-22  4744  	if (stv090x_i2c_gate_ctrl(state, 0) < 0)
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4745  		goto err;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4746  
6b9e50c463efc5c drivers/media/dvb-frontends/stv090x.c Andreas Regel  2012-03-11  4747  	if (state->device == STV0900) {
6b9e50c463efc5c drivers/media/dvb-frontends/stv090x.c Andreas Regel  2012-03-11  4748  		if (stv0900_set_tspath(state) < 0)
27d403214317d42 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-05-02  4749  			goto err;
6b9e50c463efc5c drivers/media/dvb-frontends/stv090x.c Andreas Regel  2012-03-11  4750  	} else {
6b9e50c463efc5c drivers/media/dvb-frontends/stv090x.c Andreas Regel  2012-03-11  4751  		if (stv0903_set_tspath(state) < 0)
6b9e50c463efc5c drivers/media/dvb-frontends/stv090x.c Andreas Regel  2012-03-11  4752  			goto err;
6b9e50c463efc5c drivers/media/dvb-frontends/stv090x.c Andreas Regel  2012-03-11  4753  	}
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4754  
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4755  	return 0;
2c1f750ba3fbd4a drivers/media/dvb/frontends/stv090x.c Oliver Endriss 2010-01-10  4756  
2c1f750ba3fbd4a drivers/media/dvb/frontends/stv090x.c Oliver Endriss 2010-01-10  4757  err_gateoff:
19c4ee58325ac7c drivers/media/dvb/frontends/stv090x.c Manu Abraham   2010-01-22  4758  	stv090x_i2c_gate_ctrl(state, 0);
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4759  err:
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4760  	dprintk(FE_ERROR, 1, "I/O error");
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4761  	return -1;
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4762  }
e415c689a884267 drivers/media/dvb/frontends/stv090x.c Manu Abraham   2009-04-06  4763  

:::::: The code at line 4685 was first introduced by commit
:::::: e415c689a8842670e161581f060575c14957f073 V4L/DVB (11579): Initial go at TT S2-1600

:::::: TO: Manu Abraham <abraham.manu@xxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux