From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kmo@daterainc.com>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 1705/2217] fs/bcachefs/btree_write_buffer_types.h:23:9: warning: alignment 1 of 'struct <anonymous>' is less than 4
Date: Tue, 21 Nov 2023 22:51:52 +0800 [thread overview]
Message-ID: <202311212232.BHiGGdEF-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 07b677953b9dca02928be323e2db853511305fa9
commit: 9e5a6c7797b240f138b9bdd75d85d8f7c6f0e06d [1705/2217] bcachefs: btree write buffer now slurps keys from journal
config: i386-randconfig-141-20231121 (https://download.01.org/0day-ci/archive/20231121/202311212232.BHiGGdEF-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311212232.BHiGGdEF-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311212232.BHiGGdEF-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from fs/bcachefs/bcachefs.h:421,
from fs/bcachefs/acl.c:3:
>> fs/bcachefs/btree_write_buffer_types.h:23:9: warning: alignment 1 of 'struct <anonymous>' is less than 4 [-Wpacked-not-aligned]
23 | } __packed;
| ^
>> fs/bcachefs/btree_write_buffer_types.h:16:49: warning: 'pos' offset 3 in 'struct <anonymous>' isn't aligned to 4 [-Wpacked-not-aligned]
16 | struct bpos pos;
| ^~~
In file included from fs/bcachefs/str_hash.h:8,
from fs/bcachefs/xattr.h:5,
from fs/bcachefs/acl.c:6:
fs/bcachefs/error.h: In function 'bch2_bkey_fsck_err':
fs/bcachefs/error.h:168:9: warning: function 'bch2_bkey_fsck_err' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
168 | prt_vprintf(err_msg, fmt, args);
| ^~~~~~~~~~~
--
In file included from fs/bcachefs/bcachefs.h:421,
from fs/bcachefs/bkey.c:3:
>> fs/bcachefs/btree_write_buffer_types.h:23:9: warning: alignment 1 of 'struct <anonymous>' is less than 4 [-Wpacked-not-aligned]
23 | } __packed;
| ^
>> fs/bcachefs/btree_write_buffer_types.h:16:49: warning: 'pos' offset 3 in 'struct <anonymous>' isn't aligned to 4 [-Wpacked-not-aligned]
16 | struct bpos pos;
| ^~~
--
In file included from fs/bcachefs/bcachefs.h:421,
from fs/bcachefs/sb-errors.c:3:
>> fs/bcachefs/btree_write_buffer_types.h:23:9: warning: alignment 1 of 'struct <anonymous>' is less than 4 [-Wpacked-not-aligned]
23 | } __packed;
| ^
>> fs/bcachefs/btree_write_buffer_types.h:16:49: warning: 'pos' offset 3 in 'struct <anonymous>' isn't aligned to 4 [-Wpacked-not-aligned]
16 | struct bpos pos;
| ^~~
fs/bcachefs/sb-errors.c:9:21: warning: initialized field overwritten [-Woverride-init]
9 | BCH_SB_ERRS()
| ^
fs/bcachefs/sb-errors.c:8:29: note: in definition of macro 'x'
8 | #define x(t, n, ...) [n] = #t,
| ^
fs/bcachefs/sb-errors.c:9:9: note: in expansion of macro 'BCH_SB_ERRS'
9 | BCH_SB_ERRS()
| ^~~~~~~~~~~
fs/bcachefs/sb-errors.c:9:21: note: (near initialization for 'bch2_sb_error_strs[50]')
9 | BCH_SB_ERRS()
| ^
fs/bcachefs/sb-errors.c:8:29: note: in definition of macro 'x'
8 | #define x(t, n, ...) [n] = #t,
| ^
fs/bcachefs/sb-errors.c:9:9: note: in expansion of macro 'BCH_SB_ERRS'
9 | BCH_SB_ERRS()
| ^~~~~~~~~~~
vim +23 fs/bcachefs/btree_write_buffer_types.h
10
11 struct wb_key_ref {
12 union {
13 struct {
14 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
15 unsigned idx:24;
> 16 struct bpos pos;
17 enum btree_id btree:8;
18 #else
19 enum btree_id btree:8;
20 struct bpos pos;
21 unsigned idx:24;
22 #endif
> 23 } __packed;
24 struct {
25 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
26 u64 lo;
27 u64 mi;
28 u64 hi;
29 #else
30 u64 hi;
31 u64 mi;
32 u64 lo;
33 #endif
34 };
35 };
36 };
37
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-11-21 14:53 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=202311212232.BHiGGdEF-lkp@intel.com \
--to=lkp@intel.com \
--cc=kmo@daterainc.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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).