LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [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()
@ 2021-07-27 21:13 kernel test robot
  2021-07-28  9:46 ` Luis Henriques
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-07-27 21:13 UTC (permalink / raw)
  To: Luis Henriques
  Cc: kbuild-all, linux-kernel, Greg Kroah-Hartman, Jeff Layton,
	Ilya Dryomov, Sasha Levin

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

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* 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()
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Henriques @ 2021-07-28  9:46 UTC (permalink / raw)
  To: kernel test robot
  Cc: kbuild-all, linux-kernel, Greg Kroah-Hartman, Jeff Layton,
	Ilya Dryomov, Sasha Levin

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-28  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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).