From: kernel test robot <lkp@intel.com>
To: Steen Hegelund <steen.hegelund@microchip.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
Linux Memory Management List <linux-mm@kvack.org>,
Vinod Koul <vkoul@kernel.org>,
Bjarni Jonasson <bjarni.jonasson@microchip.com>,
Andrew Lunn <andrew@lunn.ch>,
Alexandre Belloni <alexandre.belloni@bootlin.com>
Subject: [linux-next:master 4207/6863] drivers/phy/microchip/sparx5_serdes.c:1807:12: warning: stack frame size of 1032 bytes in function 'sparx5_sd25g28_config'
Date: Thu, 25 Mar 2021 17:12:33 +0800 [thread overview]
Message-ID: <202103251726.sDbwzhoC-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2732 bytes --]
Hi Steen,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 20f1b5f9c07ca3a49e869327d4705b4254258756
commit: 2ff8a1eeb5aa8bb471f3756a695b8b69841eb61f [4207/6863] phy: Add Sparx5 ethernet serdes PHY driver
config: mips-randconfig-r001-20210325 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d6b4aa80d6df62b924a12af030c5ded868ee4f1)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-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=mips
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/phy/microchip/sparx5_serdes.c:1807:12: warning: stack frame size of 1032 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, ¶ms);
1825 sparx5_sd25g28_reset(macro->priv->regs, ¶ms, macro->stpidx);
1826 return sparx5_sd25g28_apply_params(macro->priv->dev,
1827 macro->priv->regs,
1828 ¶ms,
1829 macro->stpidx);
1830 }
1831
---
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: 28489 bytes --]
reply other threads:[~2021-03-25 9:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202103251726.sDbwzhoC-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andrew@lunn.ch \
--cc=bjarni.jonasson@microchip.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=steen.hegelund@microchip.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).