From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: kernel/bpf/task_iter.c:819:7-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
Date: Thu, 31 Oct 2024 13:52:45 +0800 [thread overview]
Message-ID: <202410311319.sJYbhKzn-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Dave Marchevsky <davemarchevsky@fb.com>
CC: Andrii Nakryiko <andrii@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0fc810ae3ae110f9e2fcccce80fc8c8d62f97907
commit: 4ac4546821584736798aaa9e97da9f6eaf689ea3 bpf: Introduce task_vma open-coded iterator kfuncs
date: 1 year, 1 month ago
:::::: branch date: 8 hours ago
:::::: commit date: 1 year, 1 month ago
config: i386-randconfig-051-20241031 (https://download.01.org/0day-ci/archive/20241031/202410311319.sJYbhKzn-lkp@intel.com/config)
compiler: clang version 19.1.2 (https://github.com/llvm/llvm-project 7ba7d8e2f7b6445b60679da826210cdde29eaf8b)
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>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202410311319.sJYbhKzn-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> kernel/bpf/task_iter.c:819:7-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
vim +819 kernel/bpf/task_iter.c
4ac454682158473 Dave Marchevsky 2023-10-13 814
4ac454682158473 Dave Marchevsky 2023-10-13 815 struct bpf_iter_task_vma {
4ac454682158473 Dave Marchevsky 2023-10-13 816 /* opaque iterator state; having __u64 here allows to preserve correct
4ac454682158473 Dave Marchevsky 2023-10-13 817 * alignment requirements in vmlinux.h, generated from BTF
4ac454682158473 Dave Marchevsky 2023-10-13 818 */
4ac454682158473 Dave Marchevsky 2023-10-13 @819 __u64 __opaque[1];
4ac454682158473 Dave Marchevsky 2023-10-13 820 } __attribute__((aligned(8)));
4ac454682158473 Dave Marchevsky 2023-10-13 821
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-10-31 5:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 5:52 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-18 18:53 kernel/bpf/task_iter.c:819:7-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) kernel test robot
2024-10-13 4:55 kernel test robot
2023-12-05 20:53 kernel test robot
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=202410311319.sJYbhKzn-lkp@intel.com \
--to=lkp@intel.com \
--cc=julia.lawall@inria.fr \
--cc=oe-kbuild@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.