From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 203/2384] kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
Date: Mon, 17 Jan 2022 15:38:07 +0800 [thread overview]
Message-ID: <202201171545.dO2soyng-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 762c0e5e35546dcaccb201e1e3dae69e34f7733b [203/2384] headers/deps: Move task_struct::flags to per_task()
config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220117/202201171545.dO2soyng-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c63a3175c2947e8c1a2d3bbe16a8586600705c54)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=762c0e5e35546dcaccb201e1e3dae69e34f7733b
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 762c0e5e35546dcaccb201e1e3dae69e34f7733b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/kcsan/core.c:25:
>> kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
return ptr == ¤t->flags;
~~~~~~~ ^
1 error generated.
vim +31 kernel/kcsan/permissive.h
49f72d5358dd3c Marco Elver 2021-06-07 18
49f72d5358dd3c Marco Elver 2021-06-07 19 /*
49f72d5358dd3c Marco Elver 2021-06-07 20 * Access ignore rules based on address.
49f72d5358dd3c Marco Elver 2021-06-07 21 */
49f72d5358dd3c Marco Elver 2021-06-07 22 static __always_inline bool kcsan_ignore_address(const volatile void *ptr)
49f72d5358dd3c Marco Elver 2021-06-07 23 {
49f72d5358dd3c Marco Elver 2021-06-07 24 if (!IS_ENABLED(CONFIG_KCSAN_PERMISSIVE))
49f72d5358dd3c Marco Elver 2021-06-07 25 return false;
49f72d5358dd3c Marco Elver 2021-06-07 26
d8fd74d35a8d3c Marco Elver 2021-06-07 27 /*
d8fd74d35a8d3c Marco Elver 2021-06-07 28 * Data-racy bitops on current->flags are too common, ignore completely
d8fd74d35a8d3c Marco Elver 2021-06-07 29 * for now.
d8fd74d35a8d3c Marco Elver 2021-06-07 30 */
d8fd74d35a8d3c Marco Elver 2021-06-07 @31 return ptr == ¤t->flags;
49f72d5358dd3c Marco Elver 2021-06-07 32 }
49f72d5358dd3c Marco Elver 2021-06-07 33
:::::: The code at line 31 was first introduced by commit
:::::: d8fd74d35a8d3c602232e3238e916bda9d03d520 kcsan: permissive: Ignore data-racy 1-bit value changes
:::::: TO: Marco Elver <elver@google.com>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mingo-tip:sched/headers 203/2384] kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
Date: Mon, 17 Jan 2022 15:38:07 +0800 [thread overview]
Message-ID: <202201171545.dO2soyng-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3028 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 762c0e5e35546dcaccb201e1e3dae69e34f7733b [203/2384] headers/deps: Move task_struct::flags to per_task()
config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220117/202201171545.dO2soyng-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c63a3175c2947e8c1a2d3bbe16a8586600705c54)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=762c0e5e35546dcaccb201e1e3dae69e34f7733b
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 762c0e5e35546dcaccb201e1e3dae69e34f7733b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/kcsan/core.c:25:
>> kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
return ptr == ¤t->flags;
~~~~~~~ ^
1 error generated.
vim +31 kernel/kcsan/permissive.h
49f72d5358dd3c Marco Elver 2021-06-07 18
49f72d5358dd3c Marco Elver 2021-06-07 19 /*
49f72d5358dd3c Marco Elver 2021-06-07 20 * Access ignore rules based on address.
49f72d5358dd3c Marco Elver 2021-06-07 21 */
49f72d5358dd3c Marco Elver 2021-06-07 22 static __always_inline bool kcsan_ignore_address(const volatile void *ptr)
49f72d5358dd3c Marco Elver 2021-06-07 23 {
49f72d5358dd3c Marco Elver 2021-06-07 24 if (!IS_ENABLED(CONFIG_KCSAN_PERMISSIVE))
49f72d5358dd3c Marco Elver 2021-06-07 25 return false;
49f72d5358dd3c Marco Elver 2021-06-07 26
d8fd74d35a8d3c Marco Elver 2021-06-07 27 /*
d8fd74d35a8d3c Marco Elver 2021-06-07 28 * Data-racy bitops on current->flags are too common, ignore completely
d8fd74d35a8d3c Marco Elver 2021-06-07 29 * for now.
d8fd74d35a8d3c Marco Elver 2021-06-07 30 */
d8fd74d35a8d3c Marco Elver 2021-06-07 @31 return ptr == ¤t->flags;
49f72d5358dd3c Marco Elver 2021-06-07 32 }
49f72d5358dd3c Marco Elver 2021-06-07 33
:::::: The code at line 31 was first introduced by commit
:::::: d8fd74d35a8d3c602232e3238e916bda9d03d520 kcsan: permissive: Ignore data-racy 1-bit value changes
:::::: TO: Marco Elver <elver@google.com>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-01-17 7:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-17 7:38 kernel test robot [this message]
2022-01-17 7:38 ` [mingo-tip:sched/headers 203/2384] kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct' 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=202201171545.dO2soyng-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mingo@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 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.