public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ilya Dryomov <idryomov@gmail.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org
Subject: net/ceph/messenger_v2.c:2808:5: warning: stack frame size of 2192 bytes in function 'ceph_con_v2_try_read'
Date: Sun, 30 May 2021 11:56:08 +0800	[thread overview]
Message-ID: <202105301106.tpXxhD6G-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3714 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31310 bytes --]

                 reply	other threads:[~2021-05-30  4:30 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=202105301106.tpXxhD6G-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=idryomov@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.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