[linux-next:master 4650/5787] drivers/phy/microchip/sparx5_serdes.c:1807:12: warning: stack frame size of 1056 bytes in function 'sparx5_sd25g28_config'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f00397ee41c79b6155b9b44abd0055b2c0621349
commit: 2ff8a1eeb5aa8bb471f3756a695b8b69841eb61f [4650/5787] phy: Add Sparx5 ethernet serdes PHY driver
config: powerpc64-randconfig-r003-20210320 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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/next/linux-next.git/commit/?id=2ff8a1eeb5aa8bb471f3756a695b8b69841eb61f
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 2ff8a1eeb5aa8bb471f3756a695b8b69841eb61f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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/phy/microchip/sparx5_serdes.c:1807:12: warning: stack frame size of 1056 bytes in function 'sparx5_sd25g28_config' [-Wframe-larger-than=]
   static int sparx5_sd25g28_config(struct sparx5_serdes_macro *macro, bool reset)
              ^
   1 warning generated.


vim +/sparx5_sd25g28_config +1807 drivers/phy/microchip/sparx5_serdes.c

  1806	
> 1807	static int sparx5_sd25g28_config(struct sparx5_serdes_macro *macro, bool reset)
  1808	{
  1809		struct sparx5_sd25g28_mode_preset mode;
  1810		struct sparx5_sd25g28_media_preset media = media_presets_25g[macro->media];
  1811		struct sparx5_sd25g28_args args = {
  1812			.rxinvert = 1,
  1813			.txinvert = 0,
  1814			.txswing = 240,
  1815			.com_pll_reserve = 0xf,
  1816			.reg_rst = reset,
  1817		};
  1818		struct sparx5_sd25g28_params params;
  1819		int err;
  1820	
  1821		err = sparx5_sd10g25_get_mode_preset(macro, &mode);
  1822		if (err)
  1823			return err;
  1824		sparx5_sd25g28_get_params(macro, &media, &mode, &args, &params);
  1825		sparx5_sd25g28_reset(macro->priv->regs, &params, macro->stpidx);
  1826		return sparx5_sd25g28_apply_params(macro->priv->dev,
  1827						   macro->priv->regs,
  1828						   &params,
  1829						   macro->stpidx);
  1830	}
  1831	

---
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