net/ceph/messenger_v2.c:2808:5: warning: stack frame size of 2192 bytes in function 'ceph_con_v2_try_read'
From: kernel test robot
Date: Sun May 30 2021 - 00:31:59 EST
Hi Ilya,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: df8c66c4cfb91f2372d138b9b714f6df6f506966
commit: cd1a677cad994021b19665ed476aea63f5d54f31 libceph, ceph: implement msgr2.1 protocol (crc and secure modes)
date: 6 months ago
config: powerpc-randconfig-r034-20210530 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bc6799f2f79f0ae87e9f1ebf9d25ba799fbd25a9)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cd1a677cad994021b19665ed476aea63f5d54f31
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout cd1a677cad994021b19665ed476aea63f5d54f31
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
In file included from net/ceph/messenger_v2.c:10:
In file included from include/crypto/aead.h:11:
In file included from include/linux/crypto.h:15:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> net/ceph/messenger_v2.c:2808:5: warning: stack frame size of 2192 bytes in function 'ceph_con_v2_try_read' [-Wframe-larger-than=]
int ceph_con_v2_try_read(struct ceph_connection *con)
^
2 warnings generated.
vim +/ceph_con_v2_try_read +2808 net/ceph/messenger_v2.c
2807
> 2808 int ceph_con_v2_try_read(struct ceph_connection *con)
2809 {
2810 int ret;
2811
2812 dout("%s con %p state %d need %zu\n", __func__, con, con->state,
2813 iov_iter_count(&con->v2.in_iter));
2814
2815 if (con->state == CEPH_CON_S_PREOPEN)
2816 return 0;
2817
2818 /*
2819 * We should always have something pending here. If not,
2820 * avoid calling populate_in_iter() as if we read something
2821 * (ceph_tcp_recv() would immediately return 1).
2822 */
2823 if (WARN_ON(!iov_iter_count(&con->v2.in_iter)))
2824 return -ENODATA;
2825
2826 for (;;) {
2827 ret = ceph_tcp_recv(con);
2828 if (ret <= 0)
2829 return ret;
2830
2831 ret = populate_in_iter(con);
2832 if (ret <= 0) {
2833 if (ret && ret != -EAGAIN && !con->error_msg)
2834 con->error_msg = "read processing error";
2835 return ret;
2836 }
2837 }
2838 }
2839
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip