linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luis Henriques <lhenriques@suse.de>
To: kernel test robot <lkp@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jeff Layton <jlayton@kernel.org>,
	Ilya Dryomov <idryomov@gmail.com>,
	Sasha Levin <sashal@kernel.org>
Subject: Re: [linux-stable-rc:linux-4.9.y 9976/9999] fs/ceph/caps.o: warning: objtool: handle_cap_grant() falls through to next function ceph_add_cap.cold()
Date: Wed, 28 Jul 2021 10:46:27 +0100	[thread overview]
Message-ID: <YQEncwVkTGJZCJQu@suse.de> (raw)
In-Reply-To: <202107280522.y2scFsEy-lkp@intel.com>

On Wed, Jul 28, 2021 at 05:13:28AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
> head:   8da69d43f5d3f7f8787117ee78cfc4060c4c0d29
> commit: 05700fe421866f60f63fbb3a02852425a9bd9447 [9976/9999] libceph: allow ceph_buffer_put() to receive a NULL ceph_buffer
> config: x86_64-randconfig-r021-20210725 (attached as .config)
> compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
> reproduce (this is a W=1 build):
>         # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=05700fe421866f60f63fbb3a02852425a9bd9447
>         git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
>         git fetch --no-tags linux-stable-rc linux-4.9.y
>         git checkout 05700fe421866f60f63fbb3a02852425a9bd9447
>         # save the attached .config to linux build tree
>         mkdir build_dir
>         make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash LDFLAGS=-z max-page-size=0x200000  arch/x86/xen/ fs/ceph/ net/batman-adv/ net/ceph/
> 
> 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 include/linux/ceph/ceph_fs.h:15,
>                     from include/linux/ceph/types.h:10,
>                     from include/linux/ceph/libceph.h:18,
>                     from fs/ceph/super.h:18,
>                     from fs/ceph/caps.c:11:
>    include/linux/ceph/msgr.h:66:1: warning: alignment 1 of 'struct ceph_entity_addr' is less than 8 [-Wpacked-not-aligned]
>       66 | } __attribute__ ((packed));
>          | ^
>    fs/ceph/caps.c: In function '__send_cap':
>    fs/ceph/caps.c:1128:22: warning: variable 'dropping' set but not used [-Wunused-but-set-variable]
>     1128 |  int held, revoking, dropping, keep;
>          |                      ^~~~~~~~
>    fs/ceph/caps.c: In function 'ceph_handle_caps':
>    fs/ceph/caps.c:3571:7: warning: variable 'osd_epoch_barrier' set but not used [-Wunused-but-set-variable]
>     3571 |   u32 osd_epoch_barrier;
>          |       ^~~~~~~~~~~~~~~~~
>    fs/ceph/caps.c:3570:19: warning: variable 'caller_gid' set but not used [-Wunused-but-set-variable]
>     3570 |   u32 caller_uid, caller_gid;
>          |                   ^~~~~~~~~~
>    fs/ceph/caps.c:3570:7: warning: variable 'caller_uid' set but not used [-Wunused-but-set-variable]
>     3570 |   u32 caller_uid, caller_gid;
>          |       ^~~~~~~~~~
>    fs/ceph/caps.c:3569:7: warning: variable 'flush_tid' set but not used [-Wunused-but-set-variable]
>     3569 |   u64 flush_tid;
>          |       ^~~~~~~~~
>    fs/ceph/caps.o: warning: objtool: handle_cap_flushsnap_ack.constprop.0() falls through to next function __ceph_flush_snaps.cold()
> >> fs/ceph/caps.o: warning: objtool: handle_cap_grant() falls through to next function ceph_add_cap.cold()

I'll be honest: I've no idea why this is happening and x86 assembly isn't my
cup of tea.  I wonder, however, why this is showing up now because commit
5c498950f730 has been released in v4.9.192 already.

Cheers,
--
Luís

> --
>    In file included from include/linux/ceph/ceph_fs.h:15,
>                     from include/linux/ceph/types.h:10,
>                     from include/linux/ceph/libceph.h:18,
>                     from net/ceph/messenger.c:21:
>    include/linux/ceph/msgr.h:66:1: warning: alignment 1 of 'struct ceph_entity_addr' is less than 8 [-Wpacked-not-aligned]
>       66 | } __attribute__ ((packed));
>          | ^
>    net/ceph/messenger.c: In function 'write_partial_message_data':
>    net/ceph/messenger.c:1570:8: warning: variable 'need_crc' set but not used [-Wunused-but-set-variable]
>     1570 |   bool need_crc;
>          |        ^~~~~~~~
>    In file included from include/linux/kernel.h:13,
>                     from include/linux/list.h:8,
>                     from include/linux/wait.h:6,
>                     from include/linux/fs.h:5,
>                     from include/linux/highmem.h:4,
>                     from net/ceph/messenger.c:5:
>    net/ceph/messenger.c: In function 'ceph_sock_state_change':
>    include/linux/printk.h:123:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
>      123 |  0;      \
>          |  ^
>    include/linux/printk.h:315:2: note: in expansion of macro 'no_printk'
>      315 |  no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
>          |  ^~~~~~~~~
>    include/linux/ceph/ceph_debug.h:34:25: note: in expansion of macro 'pr_debug'
>       34 | # define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__)
>          |                         ^~~~~~~~
>    net/ceph/messenger.c:431:3: note: in expansion of macro 'dout'
>      431 |   dout("%s TCP_CLOSE\n", __func__);
>          |   ^~~~
>    net/ceph/messenger.c:432:2: note: here
>      432 |  case TCP_CLOSE_WAIT:
>          |  ^~~~
>    arch/x86/include/asm/bitops.h: Assembler messages:
>    arch/x86/include/asm/bitops.h:206: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
>    arch/x86/include/asm/bitops.h:252: Warning: no instruction mnemonic suffix given and no register operands; using default for `btr'
> >> net/ceph/messenger.o: warning: objtool: ceph_msg_release() falls through to next function ceph_msg_new.cold()
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


      reply	other threads:[~2021-07-28  9:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 21:13 [linux-stable-rc:linux-4.9.y 9976/9999] fs/ceph/caps.o: warning: objtool: handle_cap_grant() falls through to next function ceph_add_cap.cold() kernel test robot
2021-07-28  9:46 ` Luis Henriques [this message]

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=YQEncwVkTGJZCJQu@suse.de \
    --to=lhenriques@suse.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=idryomov@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=sashal@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).