[kbuild] drivers/gpu/drm/i915/gt/intel_breadcrumbs.c:33:1: iwyu: warning: superfluous #include "intel_engine_pm.h"

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Chris Wilson 
CC: Rodrigo Vivi 
CC: Tvrtko Ursulin 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   7d549995d4e0d99b68e8a7793a0d23da6fc40fe8
commit: 08b49e14ec4f88f87a3a8443fca944dc2768066b drm/i915/gt: Defer enabling 
the breadcrumb interrupt to after submission
date:   8 months ago
:: branch date: 9 hours ago
:: commit date: 8 months ago
config: x86_64-randconfig-b001-20210705 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
89c1c64cc3170a05a881bb9954feafc3edca6704)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# apt-get install iwyu # include-what-you-use
# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=08b49e14ec4f88f87a3a8443fca944dc2768066b
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 08b49e14ec4f88f87a3a8443fca944dc2768066b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 
CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/edac/ 
drivers/gpu/drm/gma500/ drivers/gpu/drm/i915/ drivers/gpu/drm/vmwgfx/ 
drivers/platform/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


iwyu warnings: (new ones prefixed by >>)
   drivers/gpu/drm/i915/gt/intel_breadcrumbs.c:25:1: iwyu: warning: superfluous 
#include 
   drivers/gpu/drm/i915/gt/intel_breadcrumbs.c:27:1: iwyu: warning: superfluous 
#include 
   drivers/gpu/drm/i915/gt/intel_breadcrumbs.c:29:1: iwyu: warning: superfluous 
#include "i915_drv.h"
   drivers/gpu/drm/i915/gt/intel_breadcrumbs.c:30:1: iwyu: warning: superfluous 
#include "i915_trace.h"
>> drivers/gpu/drm/i915/gt/intel_breadcrumbs.c:33:1: iwyu: warning: superfluous 
>> #include "intel_engine_pm.h"

vim +33 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c

c81d46138da658 drivers/gpu/drm/i915/intel_breadcrumbs.cChris Wilson 
2016-07-01  28  
688e6c7258164d drivers/gpu/drm/i915/intel_breadcrumbs.cChris Wilson 
2016-07-01  29  #include "i915_drv.h"
a09d9a8002368e drivers/gpu/drm/i915/gt/intel_breadcrumbs.c Jani Nikula  
2019-08-06  30  #include "i915_trace.h"
b3786b29379c0e drivers/gpu/drm/i915/gt/intel_breadcrumbs.c Chris Wilson 
2020-07-31  31  #include "intel_breadcrumbs.h"
e23005604b2f81 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c Chris Wilson 
2020-08-01  32  #include "intel_context.h"
08b49e14ec4f88 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c Chris Wilson 
2020-11-23 @33  #include "intel_engine_pm.h"
045d1fb79616f1 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c Chris Wilson 
2019-12-05  34  #include "intel_gt_pm.h"
dc93c9b6931516 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c Chris Wilson 
2019-12-19  35  #include "intel_gt_requests.h"
688e6c7258164d drivers/gpu/drm/i915/intel_breadcrumbs.cChris Wilson 
2016-07-01  36  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] arch/x86/xen/smp_hvm.c:2:1: iwyu: warning: superfluous #include

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Peter Zijlstra 
CC: Ingo Molnar 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   7d549995d4e0d99b68e8a7793a0d23da6fc40fe8
commit: 0cd39f4600ed4de859383018eb10f0f724900e1b locking/seqlock, headers: 
Untangle the spaghetti monster
date:   12 months ago
:: branch date: 5 hours ago
:: commit date: 12 months ago
config: x86_64-randconfig-b001-20210719 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# apt-get install iwyu # include-what-you-use
# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0cd39f4600ed4de859383018eb10f0f724900e1b
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0cd39f4600ed4de859383018eb10f0f724900e1b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 
CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/hyperv/ 
arch/x86/kernel/ arch/x86/xen/ drivers/hid/ drivers/hv/ drivers/iommu/ 
drivers/misc/ drivers/platform/ drivers/power/supply/ kernel/kcsan/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


iwyu warnings: (new ones prefixed by >>)
>> arch/x86/xen/smp_hvm.c:2:1: iwyu: warning: superfluous #include 
>> 
   arch/x86/xen/smp_hvm.c:5:1: iwyu: warning: superfluous #include 


vim +2 arch/x86/xen/smp_hvm.c

0cd39f4600ed4d Peter Zijlstra   2020-08-06 @2  #include 
a52482d9355e25 Vitaly Kuznetsov 2017-03-14  3  #include 
a52482d9355e25 Vitaly Kuznetsov 2017-03-14  4  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [PATCH bpf-next v1 2/5] af_unix: add unix_stream_proto for sockmap

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
In-Reply-To: <20210727001252.1287673-3-jiang.w...@bytedance.com>
References: <20210727001252.1287673-3-jiang.w...@bytedance.com>
TO: Jiang Wang 
TO: net...@vger.kernel.org
CC: cong.w...@bytedance.com
CC: duanxiongc...@bytedance.com
CC: xieyon...@bytedance.com
CC: chaiwen...@bytedance.com
CC: Jakub Kicinski 
CC: John Fastabend 
CC: Daniel Borkmann 
CC: Jakub Sitnicki 
CC: Lorenz Bauer 

Hi Jiang,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on bpf-next/master]

url:
https://github.com/0day-ci/linux/commits/Jiang-Wang/sockmap-add-sockmap-support-for-unix-stream-socket/20210727-081531
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
:: branch date: 26 hours ago
:: commit date: 26 hours ago
config: x86_64-randconfig-c001-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c658b472f3e61e1818e1909bf02f3d65470018a5)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://github.com/0day-ci/linux/commit/607ed02e3232aa57995e87230faad770b810a64a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jiang-Wang/sockmap-add-sockmap-support-for-unix-stream-socket/20210727-081531
git checkout 607ed02e3232aa57995e87230faad770b810a64a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   ^~~~
   net/unix/af_unix.c:1251:34: warning: Dereference of null pointer 
[clang-analyzer-core.NullDereference]
   sk->sk_state = other->sk_state = TCP_ESTABLISHED;
  ^
   net/unix/af_unix.c:1189:6: note: Assuming the condition is false
   if (alen < offsetofend(struct sockaddr, sa_family))
   ^~
   net/unix/af_unix.c:1189:2: note: Taking false branch
   if (alen < offsetofend(struct sockaddr, sa_family))
   ^
   net/unix/af_unix.c:1192:6: note: Assuming field 'sa_family' is equal to 
AF_UNSPEC
   if (addr->sa_family != AF_UNSPEC) {
   ^~~~
   net/unix/af_unix.c:1192:2: note: Taking false branch
   if (addr->sa_family != AF_UNSPEC) {
   ^
   net/unix/af_unix.c:1228:3: note: Null pointer value stored to 'other'
   other = NULL;
   ^~~~
   net/unix/af_unix.c:1235:6: note: Assuming field 'peer' is null
   if (unix_peer(sk)) {
   ^
   net/unix/af_unix.c:180:23: note: expanded from macro 'unix_peer'
   #define unix_peer(sk) (unix_sk(sk)->peer)
 ^~~
   net/unix/af_unix.c:1235:2: note: Taking false branch
   if (unix_peer(sk)) {
   ^
   net/unix/af_unix.c:1247:3: note: Calling 'unix_state_double_unlock'
   unix_state_double_unlock(sk, other);
   ^~~
   net/unix/af_unix.c:1170:15: note: 'sk1' is not equal to 'sk2'
   if (unlikely(sk1 == sk2) || !sk2) {
^
   include/linux/compiler.h:48:41: note: expanded from macro 'unlikely'
   #  define unlikely(x)   (__branch_check__(x, 0, __builtin_constant_p(x)))
 ^
   include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
   __r = __builtin_expect(!!(x), expect);  \
 ^
   net/unix/af_unix.c:1170:15: note: 'sk1' is not equal to 'sk2'
   if (unlikely(sk1 == sk2) || !sk2) {
^
   include/linux/compiler.h:48:68: note: expanded from macro 'unlikely'
   #  define unlikely(x)   (__branch_check__(x, 0, __builtin_constant_p(x)))
^
   include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant);  \
^~~
   net/unix/af_unix.c:1170:6: note: Left side of '||' is false
   if (unlikely(sk1 == sk2) || !sk2) {
   ^
   include/linux/com

[kbuild] drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:4377:17: warning: Uninitialized variable: qidx [uninitvar]

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Sunil Goutham 
CC: Subbaraya Sundeep 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   7d549995d4e0d99b68e8a7793a0d23da6fc40fe8
commit: e8e095b3b37004a4048af69de60c9af2d2268a1d octeontx2-af: cn10k: Bandwidth 
profiles config support
date:   6 weeks ago
:: branch date: 5 hours ago
:: commit date: 6 weeks ago
compiler: s390-linux-gcc (GCC) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

   drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2391:3: warning: Address 
of local auto-variable assigned to a function parameter. [autoVariables]
 *mce_list = &pfvf->bcast_mce_list;
 ^
   drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2394:3: warning: Address 
of local auto-variable assigned to a function parameter. [autoVariables]
 *mce_list = &pfvf->mcast_mce_list;
 ^
   drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2397:3: warning: Address 
of local auto-variable assigned to a function parameter. [autoVariables]
 *mce_list = &pfvf->promisc_mce_list;
 ^
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:4377:17: warning: 
>> Uninitialized variable: qidx [uninitvar]
aq_req->qidx = qidx;
   ^
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:4460:29: warning: 
>> Uninitialized variable: leaf_match [uninitvar]
NIX_AQ_CTYPE_BANDPROF, leaf_match);
   ^

vim +4377 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c

e8e095b3b37004 Sunil Goutham 2021-06-15  4367  
e8e095b3b37004 Sunil Goutham 2021-06-15  4368  static int 
nix_aq_context_read(struct rvu *rvu, struct nix_hw *nix_hw,
e8e095b3b37004 Sunil Goutham 2021-06-15  4369  struct 
nix_cn10k_aq_enq_req *aq_req,
e8e095b3b37004 Sunil Goutham 2021-06-15  4370  struct 
nix_cn10k_aq_enq_rsp *aq_rsp,
e8e095b3b37004 Sunil Goutham 2021-06-15  4371  u16 
pcifunc, u8 ctype, u32 qidx)
e8e095b3b37004 Sunil Goutham 2021-06-15  4372  {
e8e095b3b37004 Sunil Goutham 2021-06-15  4373   memset(aq_req, 0, sizeof(struct 
nix_cn10k_aq_enq_req));
e8e095b3b37004 Sunil Goutham 2021-06-15  4374   aq_req->hdr.pcifunc = pcifunc;
e8e095b3b37004 Sunil Goutham 2021-06-15  4375   aq_req->ctype = ctype;
e8e095b3b37004 Sunil Goutham 2021-06-15  4376   aq_req->op = NIX_AQ_INSTOP_READ;
e8e095b3b37004 Sunil Goutham 2021-06-15 @4377   aq_req->qidx = qidx;
e8e095b3b37004 Sunil Goutham 2021-06-15  4378  
e8e095b3b37004 Sunil Goutham 2021-06-15  4379   return 
rvu_nix_blk_aq_enq_inst(rvu, nix_hw,
e8e095b3b37004 Sunil Goutham 2021-06-15  4380  
(struct nix_aq_enq_req *)aq_req,
e8e095b3b37004 Sunil Goutham 2021-06-15  4381  
(struct nix_aq_enq_rsp *)aq_rsp);
e8e095b3b37004 Sunil Goutham 2021-06-15  4382  }
e8e095b3b37004 Sunil Goutham 2021-06-15  4383  
e8e095b3b37004 Sunil Goutham 2021-06-15  4384  static int 
nix_ipolicer_map_leaf_midprofs(struct rvu *rvu,
e8e095b3b37004 Sunil Goutham 2021-06-15  4385   
  struct nix_hw *nix_hw,
e8e095b3b37004 Sunil Goutham 2021-06-15  4386   
  struct nix_cn10k_aq_enq_req *aq_req,
e8e095b3b37004 Sunil Goutham 2021-06-15  4387   
  struct nix_cn10k_aq_enq_rsp *aq_rsp,
e8e095b3b37004 Sunil Goutham 2021-06-15  4388   
  u32 leaf_prof, u16 mid_prof)
e8e095b3b37004 Sunil Goutham 2021-06-15  4389  {
e8e095b3b37004 Sunil Goutham 2021-06-15  4390   memset(aq_req, 0, sizeof(struct 
nix_cn10k_aq_enq_req));
e8e095b3b37004 Sunil Goutham 2021-06-15  4391   aq_req->hdr.pcifunc = 0x00;
e8e095b3b37004 Sunil Goutham 2021-06-15  4392   aq_req->ctype = 
NIX_AQ_CTYPE_BANDPROF;
e8e095b3b37004 Sunil Goutham 2021-06-15  4393   aq_req->op = 
NIX_AQ_INSTOP_WRITE;
e8e095b3b37004 Sunil Goutham 2021-06-15  4394   aq_req->qidx = leaf_prof;
e8e095b3b37004 Sunil Goutham 2021-06-15  4395  
e8e095b3b37004 Sunil Goutham 2021-06-15  4396   aq_req->prof.band_prof_id = 
mid_prof;
e8e095b3b37004 Sunil Goutham 2021-06-15  4397   aq_req->prof_mask.band_prof_id 
= GENMASK(6, 0);
e8e095b3b37004 Sunil Goutham 2021-06-15  4398   aq_req->prof.hl_en = 1;
e8e095b3b37004 Sunil Goutham 2021-06-15  4399   aq_req->prof_mask.hl_en = 1;
e8e095b3b37004 Sunil Goutham 2021-06-15  4400  
e8e095b3b37004 Sunil Goutham 2021-06-15  4401   return 
rvu_nix_blk_aq_enq_inst(rvu, nix_hw,
e8e095b3b37004 Sunil Goutham 2021-06-15  4402  
(struct nix_aq_enq_req *)aq_req,
e8e095b3b37004 Sunil Goutham 2021-06-15  4403  
(struct nix_aq_enq_rsp *)aq_rsp);
e8e095b3b37004 Sunil Goutham 2021-06-15  4404  }
e8e095b3b37004 Sunil Goutham 2021-06-15  4405  
e8e095b3b37004 Sunil Goutham 202

[kbuild] [djwong-xfs:vectorized-scrub 71/306] fs/xfs/libxfs/xfs_bmap_btree.c:646:9: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign]

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
CC: "Darrick J. Wong" 
CC: linux-ker...@vger.kernel.org
TO: "Darrick J. Wong" 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git 
vectorized-scrub
head:   653d694bd02b6f3aa956b6efe9476a7b948faa96
commit: d3c651c31aab150baf49475b2f2fc87eb852c229 [71/306] xfs: repair inode 
block maps
:: branch date: 4 days ago
:: commit date: 4 days ago
config: x86_64-randconfig-c001-20210723 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
3f2c1e99e44d028d5e9dd685f3c568f2661f2f68)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/commit/?id=d3c651c31aab150baf49475b2f2fc87eb852c229
git remote add djwong-xfs 
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs vectorized-scrub
git checkout d3c651c31aab150baf49475b2f2fc87eb852c229
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   ^
   fs/xfs/xfs_fsmap.c:615:2: note: Assuming 'pag' is not equal to null
   for_each_perag_range(mp, start_ag, end_ag, pag) {
   ^
   fs/xfs/libxfs/xfs_ag.h:140:3: note: expanded from macro 
'for_each_perag_range'
   (pag) != NULL && (next_agno) <= (end_agno); \
   ^
   fs/xfs/xfs_fsmap.c:615:2: note: Left side of '&&' is true
   for_each_perag_range(mp, start_ag, end_ag, pag) {
   ^
   fs/xfs/libxfs/xfs_ag.h:140:3: note: expanded from macro 
'for_each_perag_range'
   (pag) != NULL && (next_agno) <= (end_agno); \
   ^
   fs/xfs/xfs_fsmap.c:615:2: note: Assuming 'start_ag' is <= 'end_ag'
   for_each_perag_range(mp, start_ag, end_ag, pag) {
   ^
   fs/xfs/libxfs/xfs_ag.h:140:20: note: expanded from macro 
'for_each_perag_range'
   (pag) != NULL && (next_agno) <= (end_agno); \
^
   fs/xfs/xfs_fsmap.c:615:2: note: Loop condition is true.  Entering loop body
   for_each_perag_range(mp, start_ag, end_ag, pag) {
   ^
   fs/xfs/libxfs/xfs_ag.h:139:2: note: expanded from macro 
'for_each_perag_range'
   for ((pag) = xfs_perag_get((mp), (next_agno)); \
   ^
   fs/xfs/xfs_fsmap.c:621:7: note: Assuming 'end_ag' is not equal to field 
'pag_agno'
   if (pag->pag_agno == end_ag) {
   ^~~
   fs/xfs/xfs_fsmap.c:621:3: note: Taking false branch
   if (pag->pag_agno == end_ag) {
   ^
   fs/xfs/xfs_fsmap.c:632:7: note: 'bt_cur' is null
   if (bt_cur) {
   ^~
   fs/xfs/xfs_fsmap.c:632:3: note: Taking false branch
   if (bt_cur) {
   ^
   fs/xfs/xfs_fsmap.c:641:7: note: Assuming 'error' is 0
   if (error)
   ^
   fs/xfs/xfs_fsmap.c:641:3: note: Taking false branch
   if (error)
   ^
   fs/xfs/xfs_fsmap.c:649:11: note: Calling 'xfs_getfsmap_datadev_bnobt_query'
   error = query_fn(tp, info, &bt_cur, priv);
   ^
   fs/xfs/xfs_fsmap.c:738:6: note: Assuming field 'last' is true
   if (info->last)
   ^~
   fs/xfs/xfs_fsmap.c:738:2: note: Taking true branch
   if (info->last)
   ^
   fs/xfs/xfs_fsmap.c:739:44: note: Passing null pointer value via 1st 
parameter 'cur'
   return xfs_getfsmap_datadev_bnobt_helper(*curpp, &key[1], 
info);
^~
   fs/xfs/xfs_fsmap.c:739:10: note: Calling 'xfs_getfsmap_datadev_bnobt_helper'
   return xfs_getfsmap_datadev_bnobt_helper(*curpp, &key[1], 
info);
  
^~~~
   fs/xfs/xfs_fsmap.c:371:26: note: Access to field 'bc_mp' results in a 
dereference of a null pointer (loaded from variable 'cur')
   struct xfs_mount*mp = cur->bc_mp;
 ^~~
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   6 warnings generated.
   fs/xfs/libxfs

[kbuild] [ogabbay:habanalabs-next 11/40] drivers/misc/habanalabs/common/state_dump.c:434:2: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores]

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Yuri Nudelman 
CC: Oded Gabbay 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git 
habanalabs-next
head:   ed1ec0f6c655003eb3f092f47e98181646e88173
commit: 2b6cdda5981340a654d48826992fbb07c59f6c68 [11/40] habanalabs: expose 
state dump
:: branch date: 15 hours ago
:: commit date: 15 hours ago
config: x86_64-randconfig-c001-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c658b472f3e61e1818e1909bf02f3d65470018a5)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git/commit/?id=2b6cdda5981340a654d48826992fbb07c59f6c68
git remote add ogabbay 
https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git
git fetch --no-tags ogabbay habanalabs-next
git checkout 2b6cdda5981340a654d48826992fbb07c59f6c68
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   include/linux/rcupdate.h:390:2: note: expanded from macro 
'__rcu_dereference_check'
   RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
   ^
   include/linux/rcupdate.h:318:11: note: expanded from macro 'RCU_LOCKDEP_WARN'
   if ((c) && debug_lockdep_rcu_enabled() && !__warned) {  \
   ^
   fs/ext4/resize.c:1232:13: note: Loop condition is false.  Exiting loop
   gdb_bh = sbi_array_rcu_deref(sbi, s_group_desc,
^
   fs/ext4/ext4.h:1729:21: note: expanded from macro 'sbi_array_rcu_deref'
   _v = ((typeof(_v)*)rcu_dereference((sbi)->field))[index];  \
  ^
   include/linux/rcupdate.h:596:28: note: expanded from macro 'rcu_dereference'
   #define rcu_dereference(p) rcu_dereference_check(p, 0)
  ^
   include/linux/rcupdate.h:528:2: note: expanded from macro 
'rcu_dereference_check'
   __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
   ^
   include/linux/rcupdate.h:390:2: note: expanded from macro 
'__rcu_dereference_check'
   RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
   ^
   include/linux/rcupdate.h:316:2: note: expanded from macro 'RCU_LOCKDEP_WARN'
   do {\
   ^
   fs/ext4/resize.c:1234:4: note: Loop condition is false.  Exiting loop
   BUFFER_TRACE(gdb_bh, "get_write_access");
   ^
   include/linux/jbd2.h:1835:32: note: expanded from macro 'BUFFER_TRACE'
   #define BUFFER_TRACE(bh, info)  do {} while (0)
   ^
   fs/ext4/resize.c:1237:8: note: Assuming 'err' is 0
   if (!err && reserved_gdb && ext4_bg_num_gdb(sb, 
group))
   ^~~~
   fs/ext4/resize.c:1237:8: note: Left side of '&&' is true
   fs/ext4/resize.c:1237:16: note: Assuming 'reserved_gdb' is not equal to 0
   if (!err && reserved_gdb && ext4_bg_num_gdb(sb, 
group))
   ^~~~
   fs/ext4/resize.c:1237:8: note: Left side of '&&' is true
   if (!err && reserved_gdb && ext4_bg_num_gdb(sb, 
group))
   ^
   fs/ext4/resize.c:1237:32: note: Assuming the condition is true
   if (!err && reserved_gdb && ext4_bg_num_gdb(sb, 
group))
   
^~
   fs/ext4/resize.c:1237:4: note: Taking true branch
   if (!err && reserved_gdb && ext4_bg_num_gdb(sb, 
group))
   ^
   fs/ext4/resize.c:1238:38: note: Passing null pointer value via 2nd parameter 
'inode'
   err = reserve_backup_gdb(handle, 
resize_inode, group);
^~~~
   fs/ext4/resize.c:1238:11: note: Calling 'reserve_backup_gdb'
   err = reserve_ba

[kbuild] Re: [PATCH 05/64] skbuff: Switch structure bounds to struct_group()

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
In-Reply-To: <20210727205855.411487-6-keesc...@chromium.org>
References: <20210727205855.411487-6-keesc...@chromium.org>
TO: Kees Cook 

Hi Kees,

I love your patch! Perhaps something to improve:

[auto build test WARNING on staging/staging-testing]
[also build test WARNING on linus/master v5.14-rc3 next-20210727]
[cannot apply to wireless-drivers-next/master wireless-drivers/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Kees-Cook/Introduce-strict-memcpy-bounds-checking/20210728-053749
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 
39f9137268ee3df0047706df4e9b7357a40ffc98
:: branch date: 86 minutes ago
:: commit date: 86 minutes ago
config: csky-randconfig-s032-20210727 (attached as .config)
compiler: csky-linux-gcc (GCC) 10.3.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# 
https://github.com/0day-ci/linux/commit/80b83332473f65b5a87310a3c8d61d32f0f1d288
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Kees-Cook/Introduce-strict-memcpy-bounds-checking/20210728-053749
git checkout 80b83332473f65b5a87310a3c8d61d32f0f1d288
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=csky 
SHELL=/bin/bash drivers/iio/accel/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


sparse warnings: (new ones prefixed by >>)
   drivers/iio/accel/mma7455_spi.c: note: in included file (through 
include/linux/ptp_clock_kernel.h, include/linux/spi/spi.h):
>> include/linux/skbuff.h:813:1: sparse: sparse: directive in macro's argument 
>> list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:839:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: directive in macro's argument 
list
--
   drivers/iio/accel/adxl372_spi.c: note: in included file (through 
include/linux/ptp_clock_kernel.h, include/linux/spi/spi.h):
>> include/linux/skbuff.h:813:1: sparse: sparse: directive in macro's argument 
>> list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:839:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: directive in macro's argument 
list
--
   drivers/iio/accel/bmi088-accel-spi.c: note: in included file (through 
include/linux/ptp_clock_kernel.h, include/linux/spi/spi.h):
>> include/linux/skbuff.h:813:1: sparse: sparse: directive in macro's argument 
>> list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:839:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: directive in macro's argument 
list
--
   drivers/iio/accel/adis16201.c: note: in included file (through 
include/linux/ptp_clock_kernel.h, include/linux/spi/spi.h):
>> include/linux/skbuff.h:813:1: sparse: sparse: directive in macro's argument 
>> list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:839:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: directive in macro's argument 
list
--
   drivers/iio/accel/bmc150-accel-spi.c: note: in included file (through 
include/linux/ptp_clock_kernel.h, include/linux/spi/spi.h):
>> include/linux/skbuff.h:813:1: sparse: sparse: directive in macro's argument 
>> list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:839:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: directive in macro's argument 
list
--
   drivers/iio/accel/sca3300.c: note: in included file (through 
include/linux/ptp_clock_kernel.h, include/linux/spi/spi.h):
>> include/linux/skbuff.h:813:1: sparse: sparse: directive in macro's argument 
>> list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:839:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: direc

[kbuild] [linux-next:master 2247/3590] fs/ext4/mballoc.c:1333:4: warning: 1st function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
CC: Linux Memory Management List 
TO: "Matthew Wilcox (Oracle)" 
CC: Christoph Hellwig 
CC: William Kucharski 
CC: David Howells 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   42d0b5f52c9b633a10626da27786049c76d4ea75
commit: 8c02d1a1387610edb84cd5f5fcbc78adcd0591cf [2247/3590] mm: Add folio flag 
manipulation functions
:: branch date: 7 hours ago
:: commit date: 7 days ago
config: x86_64-randconfig-c001-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c658b472f3e61e1818e1909bf02f3d65470018a5)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8c02d1a1387610edb84cd5f5fcbc78adcd0591cf
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 8c02d1a1387610edb84cd5f5fcbc78adcd0591cf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   ^
   fs/ext4/mballoc.c:1521:6: note: Assuming 'page' is equal to NULL
   if (page == NULL || !PageUptodate(page)) {
   ^~~~
   fs/ext4/mballoc.c:1521:19: note: Left side of '||' is true
   if (page == NULL || !PageUptodate(page)) {
^
   fs/ext4/mballoc.c:1522:7: note: 'page' is null
   if (page)
   ^~~~
   fs/ext4/mballoc.c:1522:3: note: Taking false branch
   if (page)
   ^
   fs/ext4/mballoc.c:1533:7: note: Assuming 'page' is non-null
   if (page) {
   ^~~~
   fs/ext4/mballoc.c:1533:3: note: Taking true branch
   if (page) {
   ^
   fs/ext4/mballoc.c:1534:11: note: Assuming field 'mapping' is equal to field 
'i_mapping'
   BUG_ON(page->mapping != inode->i_mapping);
  ^
   include/asm-generic/bug.h:65:45: note: expanded from macro 'BUG_ON'
   #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
   ^
   include/linux/compiler.h:48:41: note: expanded from macro 'unlikely'
   #  define unlikely(x)   (__branch_check__(x, 0, __builtin_constant_p(x)))
 ^
   include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
   __r = __builtin_expect(!!(x), expect);  \
 ^
   fs/ext4/mballoc.c:1534:17: note: Field 'mapping' is equal to field 
'i_mapping'
   BUG_ON(page->mapping != inode->i_mapping);
^
   fs/ext4/mballoc.c:1534:4: note: Taking false branch
   BUG_ON(page->mapping != inode->i_mapping);
   ^
   include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON'
   #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
  ^
   fs/ext4/mballoc.c:1534:4: note: Loop condition is false.  Exiting loop
   BUG_ON(page->mapping != inode->i_mapping);
   ^
   include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON'
   #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
 ^
   fs/ext4/mballoc.c:1535:4: note: Taking true branch
   if (!PageUptodate(page)) {
   ^
   fs/ext4/mballoc.c:1536:11: note: Calling 'ext4_mb_init_cache'
   ret = ext4_mb_init_cache(page, NULL, gfp);
 ^~~
   fs/ext4/mballoc.c:1203:2: note: Taking false branch
   mb_debug(sb, "init page %lu\n", page->index);
   ^
   fs/ext4/mballoc.h:31:2: note: expanded from macro 'mb_debug'
   pr_debug("[%s/%d] EXT4-fs (%s): (%s, %d): %s: " fmt,\
   ^
   include/linux/printk.h:477:2: note: expanded from macro 'pr_debug'
 

[kbuild] [linux-next:master 901/3590] drivers/leds/flash/leds-lm3601x.c:226:3: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
CC: Linux Memory Management List 
TO: Linus Walleij 
CC: Pavel Machek 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   42d0b5f52c9b633a10626da27786049c76d4ea75
commit: 61fa67a4e538f70bb4e6b3e7f3555402c1713654 [901/3590] leds: lm3601x: Move 
driver to flash subdirectory
:: branch date: 5 hours ago
:: commit date: 2 weeks ago
config: x86_64-randconfig-c001-20210726 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c63dbd850182797bc4b76124d08e1c320ab2365d)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=61fa67a4e538f70bb4e6b3e7f3555402c1713654
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 61fa67a4e538f70bb4e6b3e7f3555402c1713654
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   ^
   mm/memory.c:2571:26: note: Assuming '__ret_warn_on' is 0
   if (!pmd_none(*pmd) && WARN_ON_ONCE(pmd_bad(*pmd))) {
  ^
   include/asm-generic/bug.h:105:6: note: expanded from macro 'WARN_ON_ONCE'
   if (unlikely(__ret_warn_on))\
   ^~~
   include/linux/compiler.h:78:40: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
 ^~~~
   mm/memory.c:2571:26: note: Taking false branch
   if (!pmd_none(*pmd) && WARN_ON_ONCE(pmd_bad(*pmd))) {
  ^
   include/asm-generic/bug.h:105:2: note: expanded from macro 'WARN_ON_ONCE'
   if (unlikely(__ret_warn_on))\
   ^
   mm/memory.c:2571:3: note: Taking false branch
   if (!pmd_none(*pmd) && WARN_ON_ONCE(pmd_bad(*pmd))) {
   ^
   mm/memory.c:2576:9: note: Calling 'apply_to_pte_range'
   err = apply_to_pte_range(mm, pmd, addr, next,
 ^~~
   mm/memory.c:2511:2: note: 'ptl' declared without an initial value
   spinlock_t *ptl;
   ^~~
   mm/memory.c:2513:6: note: 'create' is false
   if (create) {
   ^~
   mm/memory.c:2513:2: note: Taking false branch
   if (create) {
   ^
   mm/memory.c:2520:23: note: Assuming the condition is true
   mapped_pte = pte = (mm == &init_mm) ?
   ^~
   mm/memory.c:2520:22: note: '?' condition is true
   mapped_pte = pte = (mm == &init_mm) ?
  ^
   mm/memory.c:2525:2: note: Taking false branch
   BUG_ON(pmd_huge(*pmd));
   ^
   include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON'
   #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
  ^
   mm/memory.c:2525:2: note: Loop condition is false.  Exiting loop
   BUG_ON(pmd_huge(*pmd));
   ^
   include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON'
   #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
 ^
   mm/memory.c:2527:2: note: Loop condition is false.  Exiting loop
   arch_enter_lazy_mmu_mode();
   ^
   include/linux/pgtable.h:977:36: note: expanded from macro 
'arch_enter_lazy_mmu_mode'
   #define arch_enter_lazy_mmu_mode()  do {} while (0)
   ^
   mm/memory.c:2529:6: note: Assuming 'fn' is null
   if (fn) {
   ^~
   mm/memory.c:2529:2: note: Taking false branch
   if (fn) {
   ^
   mm/memory.c:2540:2: note: Loop condition is false.  Exiting loop
   arch_leave_lazy_mmu_mode();
   ^
   include/linux/pgtable.h:978:36: note: expanded from macro 
'arch_leave_lazy_mmu_mode'
   #define arch_leave_lazy_mmu_mode()  do {} while (0)
   ^
   mm/memory.c:2542:6: note: Assuming the condition is true
   if (mm != &init_mm)
   ^~
   mm/memory.c:2542:2: note: Taking true branch
   if (mm != &init_mm)
   ^
   mm/memory

[kbuild] [allisonhenderson-xfs_work:delayed_attrs_v22_extended 28/32] fs/xfs/xfs_inode.c:3287:3: warning: Value stored to 'error' is never read [clang-analyzer-deadcode.DeadStores]

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Allison Henderson 

tree:   https://github.com/allisonhenderson/xfs_work.git 
delayed_attrs_v22_extended
head:   aff89515c2d9aca9b24ac0296f3806af62cd9206
commit: 3818584f03ce2d5c1310199a6466aafdf22c8256 [28/32] xfs: Add parent 
pointers to rename
:: branch date: 18 hours ago
:: commit date: 18 hours ago
config: x86_64-randconfig-c001-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c658b472f3e61e1818e1909bf02f3d65470018a5)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://github.com/allisonhenderson/xfs_work/commit/3818584f03ce2d5c1310199a6466aafdf22c8256
git remote add allisonhenderson-xfs_work 
https://github.com/allisonhenderson/xfs_work.git
git fetch --no-tags allisonhenderson-xfs_work delayed_attrs_v22_extended
git checkout 3818584f03ce2d5c1310199a6466aafdf22c8256
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
  ^
   include/linux/kernel.h:495:61: note: expanded from macro 'container_of'
   BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) &&   \
  ^
   drivers/md/dm-zoned-target.c:481:29: note: Taking false branch
   struct dm_chunk_work *cw = container_of(work, struct dm_chunk_work, 
work);
  ^
   include/linux/kernel.h:495:2: note: expanded from macro 'container_of'
   BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) &&   \
   ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
   #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
   ^
   include/linux/compiler_types.h:328:2: note: expanded from macro 
'compiletime_assert'
   _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
   ^
   include/linux/compiler_types.h:316:2: note: expanded from macro 
'_compiletime_assert'
   __compiletime_assert(condition, msg, prefix, suffix)
   ^
   include/linux/compiler_types.h:308:3: note: expanded from macro 
'__compiletime_assert'
   if (!(condition))   \
   ^
   drivers/md/dm-zoned-target.c:481:29: note: Loop condition is false.  Exiting 
loop
   struct dm_chunk_work *cw = container_of(work, struct dm_chunk_work, 
work);
  ^
   include/linux/kernel.h:495:2: note: expanded from macro 'container_of'
   BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) &&   \
   ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
   #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
   ^
   include/linux/compiler_types.h:328:2: note: expanded from macro 
'compiletime_assert'
   _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
   ^
   include/linux/compiler_types.h:316:2: note: expanded from macro 
'_compiletime_assert'
   __compiletime_assert(condition, msg, prefix, suffix)
   ^
   include/linux/compiler_types.h:306:2: note: expanded from macro 
'__compiletime_assert'
   do {\
   ^
   drivers/md/dm-zoned-target.c:488:2: note: Loop condition is true.  Entering 
loop body
   while ((bio = bio_list_pop(&cw->bio_list))) {
   ^
   drivers/md/dm-zoned-target.c:492:3: note: Calling 'dmz_put_chunk_work'
   dmz_put_chunk_work(cw);
   ^~
   drivers/md/dm-zoned-target.c:469:6: note: Assuming the condition is true
   if (refcount_dec_and_test(&cw->refcount)) {
   ^~~~
   drivers/md/dm-zoned-target.c:469:2: note: Taking true branch
   if (refcount_dec_and_test(&cw->refcount)) {
   ^
   drivers/md/dm-zoned-target.c:470:3: note: Taking false branch
   WARN_ON(!bio_list_empty(&cw->bio_list));
   ^
   include/asm-generic/bug.h:122:2: no

[kbuild] drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2367:3: warning: Address of local auto-variable assigned to a function parameter. [autoVariables]

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Naveen Mamindlapalli 
CC: Sunil Kovvuri Goutham 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   ff1176468d368232b684f75e82563369208bc371
commit: 967db3529ecac305d230aa4e60abddf6ab63543a octeontx2-af: add support for 
multicast/promisc packet replication feature
date:   7 weeks ago
:: branch date: 2 days ago
:: commit date: 7 weeks ago
compiler: s390-linux-gcc (GCC) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2367:3: warning: Address 
>> of local auto-variable assigned to a function parameter. [autoVariables]
 *mce_list = &pfvf->bcast_mce_list;
 ^
   drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2370:3: warning: Address 
of local auto-variable assigned to a function parameter. [autoVariables]
 *mce_list = &pfvf->mcast_mce_list;
 ^
   drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2373:3: warning: Address 
of local auto-variable assigned to a function parameter. [autoVariables]
 *mce_list = &pfvf->promisc_mce_list;
 ^
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c:700:6: warning: 
>> Uninitialized struct member: action.op [uninitStructMember]
if (action.op != NIX_RX_ACTIONOP_RSS) {
^
   drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c:865:6: warning: 
Uninitialized struct member: action.op [uninitStructMember]
if (action.op != NIX_RX_ACTIONOP_RSS) {
^

vim +2367 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c

4b05528ebf0c3f Sunil Goutham2018-10-22  2349  
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2350  void 
nix_get_mce_list(struct rvu *rvu, u16 pcifunc, int type,
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2351  struct 
nix_mce_list **mce_list, int *mce_idx)
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2352  {
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2353struct rvu_hwinfo *hw = 
rvu->hw;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2354struct rvu_pfvf *pfvf;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2355  
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2356if 
(!hw->cap.nix_rx_multicast ||
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2357
!is_pf_cgxmapped(rvu, rvu_get_pf(pcifunc & ~RVU_PFVF_FUNC_MASK))) {
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2358*mce_list = 
NULL;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2359*mce_idx = 0;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2360return;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2361}
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2362  
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2363/* Get this PF/VF 
func's MCE index */
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2364pfvf = 
rvu_get_pfvf(rvu, pcifunc & ~RVU_PFVF_FUNC_MASK);
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2365  
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2366if (type == 
NIXLF_BCAST_ENTRY) {
967db3529ecac3 Naveen Mamindlapalli 2021-06-11 @2367*mce_list = 
&pfvf->bcast_mce_list;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2368*mce_idx = 
pfvf->bcast_mce_idx;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2369} else if (type == 
NIXLF_ALLMULTI_ENTRY) {
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2370*mce_list = 
&pfvf->mcast_mce_list;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2371*mce_idx = 
pfvf->mcast_mce_idx;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2372} else if (type == 
NIXLF_PROMISC_ENTRY) {
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2373*mce_list = 
&pfvf->promisc_mce_list;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2374*mce_idx = 
pfvf->promisc_mce_idx;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2375}  else {
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2376*mce_list = 
NULL;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2377*mce_idx = 0;
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2378}
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2379  }
967db3529ecac3 Naveen Mamindlapalli 2021-06-11  2380  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [PATCH v2 4/4] fuse: support changing per-file DAX flag inside guest

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
In-Reply-To: <20210716104753.74377-5-jeffl...@linux.alibaba.com>
References: <20210716104753.74377-5-jeffl...@linux.alibaba.com>
TO: Jeffle Xu 
TO: vgo...@redhat.com
TO: stefa...@redhat.com
TO: mik...@szeredi.hu
CC: linux-fsde...@vger.kernel.org
CC: virtualizat...@lists.linux-foundation.org
CC: bo@linux.alibaba.com
CC: joseph...@linux.alibaba.com

Hi Jeffle,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on fuse/for-next]
[also build test WARNING on v5.14-rc3 next-20210726]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Jeffle-Xu/virtiofs-fuse-support-per-file-DAX/20210718-102250
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git 
for-next
:: branch date: 10 days ago
:: commit date: 10 days ago
config: x86_64-randconfig-c001-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c658b472f3e61e1818e1909bf02f3d65470018a5)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://github.com/0day-ci/linux/commit/a6ac625f19c4c4de28ee8a466c1bab8824b7042e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jeffle-Xu/virtiofs-fuse-support-per-file-DAX/20210718-102250
git checkout a6ac625f19c4c4de28ee8a466c1bab8824b7042e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   drivers/regulator/qcom_spmi-regulator.c:1155:2: warning: Value stored to 
'ret' is never read [clang-analyzer-deadcode.DeadStores]
   ret = spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_ENABLE,
   ^ ~~~
   drivers/regulator/qcom_spmi-regulator.c:1155:2: note: Value stored to 'ret' 
is never read
   ret = spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_ENABLE,
   ^ ~~~
   Suppressed 6 warnings (6 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   6 warnings generated.
   Suppressed 6 warnings (6 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   7 warnings generated.
   drivers/regulator/palmas-regulator.c:1598:36: warning: Value stored to 
'pdata' during its initialization is never read 
[clang-analyzer-deadcode.DeadStores]
   struct palmas_pmic_platform_data *pdata = 
dev_get_platdata(&pdev->dev);
 ^   

   drivers/regulator/palmas-regulator.c:1598:36: note: Value stored to 'pdata' 
during its initialization is never read
   struct palmas_pmic_platform_data *pdata = 
dev_get_platdata(&pdev->dev);
 ^   

   Suppressed 6 warnings (6 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   6 warnings generated.
   Suppressed 6 warnings (6 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   5 warnings generated.
   Suppressed 5 warnings (5 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   5 warnings generated.
   Suppressed 5 warnings (5 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   7 warnings generated.
   drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c:49:39: warning: Dereference of 
null pointer [clang-analyzer-core.NullDereference]
   const struct nvkm_vmm_desc *pair = page[-1].desc;
  ^
   drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c:1145:8: note: Assuming  is 
non-null
   if (!(*pvmm = kzalloc(sizeof(**pvmm

[kbuild] Re: [RFC PATCH v3 2/9] Bluetooth: btintel: Add combined setup and shutdown functions

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
In-Reply-To: <20210724073005.714003-3-hj.tedd...@gmail.com>
References: <20210724073005.714003-3-hj.tedd...@gmail.com>
TO: "Tedd Ho-Jeong An" 

Hi Tedd,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on bluetooth/master]
[also build test WARNING on v5.14-rc3 next-20210726]
[cannot apply to bluetooth-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Tedd-Ho-Jeong-An/Bluetooth-btintel-Refactoring-setup-routines/20210724-153223
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git 
master
:: branch date: 3 days ago
:: commit date: 3 days ago
config: x86_64-randconfig-c001-20210723 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
3f2c1e99e44d028d5e9dd685f3c568f2661f2f68)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://github.com/0day-ci/linux/commit/eca1c570017a1accc1a7f6be7fe1fa0a390066f9
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Tedd-Ho-Jeong-An/Bluetooth-btintel-Refactoring-setup-routines/20210724-153223
git checkout eca1c570017a1accc1a7f6be7fe1fa0a390066f9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
  ^
   include/linux/err.h:22:34: note: expanded from macro 'IS_ERR_VALUE'
   #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned 
long)-MAX_ERRNO)
   
~^~~~
   include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
   ^
   include/linux/err.h:36:2: note: Returning zero, which participates in a 
condition later
   return IS_ERR_VALUE((unsigned long)ptr);
   ^~~
   drivers/nvmem/core.c:1618:6: note: Returning from 'IS_ERR'
   if (IS_ERR(cell))
   ^~~~
   drivers/nvmem/core.c:1618:2: note: Taking false branch
   if (IS_ERR(cell))
   ^
   drivers/nvmem/core.c:1622:8: note: Calling 'nvmem_cell_read'
   buf = nvmem_cell_read(cell, len);
 ^~
   drivers/nvmem/core.c:1414:6: note: Assuming 'nvmem' is non-null
   if (!nvmem)
   ^~
   drivers/nvmem/core.c:1414:2: note: Taking false branch
   if (!nvmem)
   ^
   drivers/nvmem/core.c:1418:6: note: Assuming 'buf' is non-null
   if (!buf)
   ^~~~
   drivers/nvmem/core.c:1418:2: note: Taking false branch
   if (!buf)
   ^
   drivers/nvmem/core.c:1421:7: note: Calling '__nvmem_cell_read'
   rc = __nvmem_cell_read(nvmem, cell, buf, len);
^~~~
   drivers/nvmem/core.c:1385:6: note: Assuming 'rc' is not equal to 0
   if (rc)
   ^~
   drivers/nvmem/core.c:1385:2: note: Taking true branch
   if (rc)
   ^
   drivers/nvmem/core.c:1421:7: note: Returning from '__nvmem_cell_read'
   rc = __nvmem_cell_read(nvmem, cell, buf, len);
^~~~
   drivers/nvmem/core.c:1422:6: note: 'rc' is not equal to 0
   if (rc) {
   ^~
   drivers/nvmem/core.c:1422:2: note: Taking true branch
   if (rc) {
   ^
   drivers/nvmem/core.c:1622:8: note: Returning from 'nvmem_cell_read'
   buf = nvmem_cell_read(cell, len);
 ^~
   drivers/nvmem/core.c:1624:6: note: Calling 'IS_ERR'
   if (IS_ERR(buf))
   ^~~
   include/linux/err.h:36:9: note: Assuming the condition is false
   return IS_ERR_VALUE((unsigned long)ptr);
  ^
   include/linux/err.h:22:34: note: expanded from macro 'IS_ERR_VALUE'
   #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned 
long)-MAX_ERRNO)
   
~^~~~
   include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
   

[kbuild] net/wireless/scan.c:552:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg]

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Tova Mussai 
CC: Johannes Berg 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   ff1176468d368232b684f75e82563369208bc371
commit: c8cb5b854b40f2ce52ccd032fa19750f4181d5fc nl80211/cfg80211: support 6 
GHz scanning
date:   10 months ago
:: branch date: 2 days ago
:: commit date: 10 months ago
compiler: aarch64-linux-gcc (GCC) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> net/wireless/scan.c:552:2: warning: Assignment of function parameter has no 
>> effect outside the function. Did you forget dereferencing it? 
>> [uselessAssignmentPtrArg]
pos++;
^

vim +552 net/wireless/scan.c

c8cb5b854b40f2 Tova Mussai 2020-09-18  530  
c8cb5b854b40f2 Tova Mussai 2020-09-18  531  static int 
cfg80211_parse_ap_info(struct cfg80211_colocated_ap *entry,
c8cb5b854b40f2 Tova Mussai 2020-09-18  532const 
u8 *pos, u8 length,
c8cb5b854b40f2 Tova Mussai 2020-09-18  533const 
struct element *ssid_elem,
c8cb5b854b40f2 Tova Mussai 2020-09-18  534int 
s_ssid_tmp)
c8cb5b854b40f2 Tova Mussai 2020-09-18  535  {
c8cb5b854b40f2 Tova Mussai 2020-09-18  536  /* skip the TBTT offset */
c8cb5b854b40f2 Tova Mussai 2020-09-18  537  pos++;
c8cb5b854b40f2 Tova Mussai 2020-09-18  538  
c8cb5b854b40f2 Tova Mussai 2020-09-18  539  memcpy(entry->bssid, pos, 
ETH_ALEN);
c8cb5b854b40f2 Tova Mussai 2020-09-18  540  pos += ETH_ALEN;
c8cb5b854b40f2 Tova Mussai 2020-09-18  541  
c8cb5b854b40f2 Tova Mussai 2020-09-18  542  if (length == 
IEEE80211_TBTT_INFO_OFFSET_BSSID_SSSID_BSS_PARAM) {
c8cb5b854b40f2 Tova Mussai 2020-09-18  543  
memcpy(&entry->short_ssid, pos,
c8cb5b854b40f2 Tova Mussai 2020-09-18  544 
sizeof(entry->short_ssid));
c8cb5b854b40f2 Tova Mussai 2020-09-18  545  entry->short_ssid_valid 
= true;
c8cb5b854b40f2 Tova Mussai 2020-09-18  546  pos += 4;
c8cb5b854b40f2 Tova Mussai 2020-09-18  547  }
c8cb5b854b40f2 Tova Mussai 2020-09-18  548  
c8cb5b854b40f2 Tova Mussai 2020-09-18  549  /* skip non colocated APs */
c8cb5b854b40f2 Tova Mussai 2020-09-18  550  if 
(!cfg80211_parse_bss_param(*pos, entry))
c8cb5b854b40f2 Tova Mussai 2020-09-18  551  return -EINVAL;
c8cb5b854b40f2 Tova Mussai 2020-09-18 @552  pos++;
c8cb5b854b40f2 Tova Mussai 2020-09-18  553  
c8cb5b854b40f2 Tova Mussai 2020-09-18  554  if (length == 
IEEE80211_TBTT_INFO_OFFSET_BSSID_BSS_PARAM) {
c8cb5b854b40f2 Tova Mussai 2020-09-18  555  /*
c8cb5b854b40f2 Tova Mussai 2020-09-18  556   * no information about 
the short ssid. Consider the entry valid
c8cb5b854b40f2 Tova Mussai 2020-09-18  557   * for now. It would 
later be dropped in case there are explicit
c8cb5b854b40f2 Tova Mussai 2020-09-18  558   * SSIDs that need to 
be matched
c8cb5b854b40f2 Tova Mussai 2020-09-18  559   */
c8cb5b854b40f2 Tova Mussai 2020-09-18  560  if (!entry->same_ssid)
c8cb5b854b40f2 Tova Mussai 2020-09-18  561  return 0;
c8cb5b854b40f2 Tova Mussai 2020-09-18  562  }
c8cb5b854b40f2 Tova Mussai 2020-09-18  563  
c8cb5b854b40f2 Tova Mussai 2020-09-18  564  if (entry->same_ssid) {
c8cb5b854b40f2 Tova Mussai 2020-09-18  565  entry->short_ssid = 
s_ssid_tmp;
c8cb5b854b40f2 Tova Mussai 2020-09-18  566  entry->short_ssid_valid 
= true;
c8cb5b854b40f2 Tova Mussai 2020-09-18  567  
c8cb5b854b40f2 Tova Mussai 2020-09-18  568  /*
c8cb5b854b40f2 Tova Mussai 2020-09-18  569   * This is safe because 
we validate datalen in
c8cb5b854b40f2 Tova Mussai 2020-09-18  570   * 
cfg80211_parse_colocated_ap(), before calling this
c8cb5b854b40f2 Tova Mussai 2020-09-18  571   * function.
c8cb5b854b40f2 Tova Mussai 2020-09-18  572   */
c8cb5b854b40f2 Tova Mussai 2020-09-18  573  memcpy(&entry->ssid, 
&ssid_elem->data,
c8cb5b854b40f2 Tova Mussai 2020-09-18  574 
ssid_elem->datalen);
c8cb5b854b40f2 Tova Mussai 2020-09-18  575  entry->ssid_len = 
ssid_elem->datalen;
c8cb5b854b40f2 Tova Mussai 2020-09-18  576  }
c8cb5b854b40f2 Tova Mussai 2020-09-18  577  return 0;
c8cb5b854b40f2 Tova Mussai 2020-09-18  578  }
c8cb5b854b40f2 Tova Mussai 2020-09-18  579  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [RFC PATCH v1] fscrypt: support encrypted and trusted keys

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
In-Reply-To: <20210727144349.11215-1-a.fat...@pengutronix.de>
References: <20210727144349.11215-1-a.fat...@pengutronix.de>
TO: Ahmad Fatoum 

Hi Ahmad,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.14-rc3 next-20210726]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Ahmad-Fatoum/fscrypt-support-encrypted-and-trusted-keys/20210727-224735
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
349a2d52ffe59b7a0c5876fa7ee9f3eaf188b830
:: branch date: 2 hours ago
:: commit date: 2 hours ago
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
cd tools/perf && ./check-headers.sh

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


perfheadercheck warnings: (new ones prefixed by >>)
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  122> /*
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  123>  * 
>> fscrypt_add_key_arg::raw contains the raw key material directly
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  124>  * if key_id == >> 0
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  125>  */
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  126> #define 
>> FSCRYPT_KEY_ADD_RAW_ASIS 0
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  127> 
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  128> /*
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  129>  * 
>> fscrypt_add_key_arg::raw is a key descriptor for an already
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  130>  * existing 
>> kernel encrypted or trusted key if key_id == 0.
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  131>  * The kernel 
>> key's material will be used as input for fscrypt.
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  132>  */
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  133> #define 
>> FSCRYPT_KEY_ADD_RAW_DESC 1
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  134> 
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  127<  __u32 
__reserved[8];
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
>> from latest version at 'include/uapi/linux/fscrypt.h':  140>  __u32 
>> raw_flags;/* one of FSCRYPT_KEY_ADD_RAW_* */
   Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs 
from latest version at 'include/uapi/linux/fscrypt.h':  141>  __u32 
__reserved[7];

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [PATCH bpf-next v1 2/5] af_unix: add unix_stream_proto for sockmap

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
In-Reply-To: <20210727001252.1287673-3-jiang.w...@bytedance.com>
References: <20210727001252.1287673-3-jiang.w...@bytedance.com>
TO: Jiang Wang 
TO: net...@vger.kernel.org
CC: cong.w...@bytedance.com
CC: duanxiongc...@bytedance.com
CC: xieyon...@bytedance.com
CC: chaiwen...@bytedance.com
CC: Jakub Kicinski 
CC: John Fastabend 
CC: Daniel Borkmann 
CC: Jakub Sitnicki 
CC: Lorenz Bauer 

Hi Jiang,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on bpf-next/master]

url:
https://github.com/0day-ci/linux/commits/Jiang-Wang/sockmap-add-sockmap-support-for-unix-stream-socket/20210727-081531
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
:: branch date: 16 hours ago
:: commit date: 16 hours ago
config: x86_64-randconfig-c001-20210726 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c658b472f3e61e1818e1909bf02f3d65470018a5)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://github.com/0day-ci/linux/commit/607ed02e3232aa57995e87230faad770b810a64a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review 
Jiang-Wang/sockmap-add-sockmap-support-for-unix-stream-socket/20210727-081531
git checkout 607ed02e3232aa57995e87230faad770b810a64a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) &&   \
  ^
   net/bridge/br_multicast.c:970:3: note: Taking false branch
   hlist_for_each_entry(ent, &pg->src_list, node) {
   ^
   include/linux/list.h:993:13: note: expanded from macro 'hlist_for_each_entry'
   for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
  ^
   include/linux/list.h:983:15: note: expanded from macro 'hlist_entry_safe'
  ptr ? hlist_entry(ptr, type, member) : NULL; \
^
   include/linux/list.h:972:40: note: expanded from macro 'hlist_entry'
   #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
  ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to 
see all)
   include/linux/compiler_types.h:328:2: note: expanded from macro 
'compiletime_assert'
   _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
   ^
   include/linux/compiler_types.h:316:2: note: expanded from macro 
'_compiletime_assert'
   __compiletime_assert(condition, msg, prefix, suffix)
   ^
   include/linux/compiler_types.h:308:3: note: expanded from macro 
'__compiletime_assert'
   if (!(condition))   \
   ^
   net/bridge/br_multicast.c:970:3: note: Loop condition is false.  Exiting loop
   hlist_for_each_entry(ent, &pg->src_list, node) {
   ^
   include/linux/list.h:993:13: note: expanded from macro 'hlist_for_each_entry'
   for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
  ^
   include/linux/list.h:983:15: note: expanded from macro 'hlist_entry_safe'
  ptr ? hlist_entry(ptr, type, member) : NULL; \
^
   include/linux/list.h:972:40: note: expanded from macro 'hlist_entry'
   #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
  ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to 
see all)
   include/linux/compiler_types.h:328:2: note: expanded from macro 
'compiletime_assert'
   _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
   ^
   include/linux/compiler_types.h:316:2: note: expanded from macro 
'_compiletime_assert'
   __compiletime_assert(condition, msg, prefix, suffix)
   ^
   include/linux/compiler_types.h:306:2: note: expanded from macro 
'__compiletime_assert'
   do {\
   ^
   net/bridge/br_multicast.c:970:3: note: Loop condition is tru

[kbuild] [drm-drm-misc:drm-misc-next 2/2] Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h': 1060> * disable that plane. The CRTC th

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Simon Ser 
CC: Pekka Paalanen 
CC: Daniel Vetter 

tree:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head:   17ce9c61c71cbc0d7e6ba0a9f34c724fb316a31b
commit: 17ce9c61c71cbc0d7e6ba0a9f34c724fb316a31b [2/2] drm: document 
DRM_IOCTL_MODE_RMFB
:: branch date: 3 hours ago
:: commit date: 3 hours ago
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
cd tools/perf && ./check-headers.sh

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


perfheadercheck warnings: (new ones prefixed by >>)
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h':  638<  * If set to 1, the kernel 
supports specifying a CRTC index in the high bits of
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h':  639<  * 
&drm_wait_vblank_request.type.
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h':  638>  * If set to 1, the kernel 
supports specifying a :ref:`CRTC index`
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h':  639>  * in the high bits of 
&drm_wait_vblank_request.type.
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1053> /**
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1054>  * DRM_IOCTL_MODE_RMFB - 
Remove a framebuffer.
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1055>  *
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1056>  * This removes a framebuffer 
previously added via ADDFB/ADDFB2. The IOCTL
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1057>  * argument is a framebuffer 
object ID.
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1058>  *
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1059>  * Warning: removing a 
framebuffer currently in-use on an enabled plane will
>> Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
>> latest version at 'include/uapi/drm/drm.h': 1060>  * disable that plane. The 
>> CRTC the plane is linked to may also be disabled
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1061>  * (depending on driver 
capabilities).
   Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from 
latest version at 'include/uapi/drm/drm.h': 1062>  */

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [linux-next:master 1184/3379] drivers/of/fdt.c:196:4: warning: Value stored to 'pprev' is never read [clang-analyzer-deadcode.DeadStores]

2021-07-27 Thread kernel test robot
CC: clang-built-li...@googlegroups.com
CC: kbuild-...@lists.01.org
CC: Linux Memory Management List 
TO: "권오훈" 
CC: Rob Herring 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   2265c5286967c58db9a99ed1b74105977507e690
commit: eb7173988caf6fc68ef00065b9defb5ac3467f21 [1184/3379] of: fdt: remove 
unnecessary codes
:: branch date: 17 hours ago
:: commit date: 12 days ago
config: x86_64-randconfig-c001-20210726 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c63dbd850182797bc4b76124d08e1c320ab2365d)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=eb7173988caf6fc68ef00065b9defb5ac3467f21
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout eb7173988caf6fc68ef00065b9defb5ac3467f21
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   ^
   drivers/mtd/chips/cfi_cmdset_0020.c:703:7: note: Assuming the condition is 
false
   if (ECCBUF_DIV(elem_len)) { /* write clean aligned data */
   ^
   drivers/mtd/chips/cfi_cmdset_0020.c:660:24: note: expanded from macro 
'ECCBUF_DIV'
   #define ECCBUF_DIV(x) ((x) & ~(ECCBUF_SIZE - 1))
  ^~~~
   drivers/mtd/chips/cfi_cmdset_0020.c:703:3: note: Taking false branch
   if (ECCBUF_DIV(elem_len)) { /* write clean aligned data */
   ^
   drivers/mtd/chips/cfi_cmdset_0020.c:712:7: note: Assuming 'buflen' is not 
equal to 0
   if (buflen) {
   ^~
   drivers/mtd/chips/cfi_cmdset_0020.c:712:3: note: Taking true branch
   if (buflen) {
   ^
   drivers/mtd/chips/cfi_cmdset_0020.c:714:29: note: The right operand of '+' 
is a garbage value
   memcpy(buffer, elem_base + thislen, buflen);
^ ~~~
   drivers/mtd/chips/cfi_cmdset_0020.c:1035:16: warning: Value stored to 
'timeo' during its initialization is never read 
[clang-analyzer-deadcode.DeadStores]
   unsigned long timeo = jiffies + HZ;
 ^   
   drivers/mtd/chips/cfi_cmdset_0020.c:1035:16: note: Value stored to 'timeo' 
during its initialization is never read
   unsigned long timeo = jiffies + HZ;
 ^   
   drivers/mtd/chips/cfi_cmdset_0020.c:1181:16: warning: Value stored to 
'timeo' during its initialization is never read 
[clang-analyzer-deadcode.DeadStores]
   unsigned long timeo = jiffies + HZ;
 ^   
   drivers/mtd/chips/cfi_cmdset_0020.c:1181:16: note: Value stored to 'timeo' 
during its initialization is never read
   unsigned long timeo = jiffies + HZ;
 ^   
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   4 warnings generated.
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   4 warnings generated.
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   3 warnings generated.
   Suppressed 3 warnings (3 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   2 warnings generated.
   Suppressed 2 warnings (2 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   2 warnings generated.
   Suppressed 2 warnings (2 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   3 warnings generated.
   Suppressed 3 warnings (3 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
  

[kbuild] arch/arc/kernel/signal.c:79 save_arcv2_regs() warn: maybe return -EFAULT instead of the bytes remaining?

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Vineet Gupta 
CC: linux-snps-...@lists.infradead.org

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   ff1176468d368232b684f75e82563369208bc371
commit: 96f1b00138cb8f04c742c82d0a7c460b2202e887 ARCv2: save ABI registers 
across signal handling
date:   7 weeks ago
:: branch date: 2 days ago
:: commit date: 7 weeks ago
config: arc-randconfig-m031-20210727 (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 
Reported-by: Dan Carpenter 

New smatch warnings:
arch/arc/kernel/signal.c:79 save_arcv2_regs() warn: maybe return -EFAULT 
instead of the bytes remaining?
arch/arc/kernel/signal.c:96 restore_arcv2_regs() warn: maybe return -EFAULT 
instead of the bytes remaining?

Old smatch warnings:
arch/arc/kernel/signal.c:198 sys_rt_sigreturn() error: uninitialized symbol 
'sp'.
arch/arc/include/asm/thread_info.h:65 current_thread_info() error: 
uninitialized symbol 'sp'.
arch/arc/kernel/signal.c:297 setup_rt_frame() warn: ignoring unreachable code.
arch/arc/kernel/signal.c:312 setup_rt_frame() warn: ignoring unreachable code.

vim +79 arch/arc/kernel/signal.c

c3581039b6c51a Vineet Gupta 2013-01-18  63  
96f1b00138cb8f Vineet Gupta 2021-06-08  64  static int save_arcv2_regs(struct 
sigcontext *mctx, struct pt_regs *regs)
96f1b00138cb8f Vineet Gupta 2021-06-08  65  {
96f1b00138cb8f Vineet Gupta 2021-06-08  66  int err = 0;
96f1b00138cb8f Vineet Gupta 2021-06-08  67  #ifndef CONFIG_ISA_ARCOMPACT
96f1b00138cb8f Vineet Gupta 2021-06-08  68  struct user_regs_arcv2 v2abi;
96f1b00138cb8f Vineet Gupta 2021-06-08  69  
96f1b00138cb8f Vineet Gupta 2021-06-08  70  v2abi.r30 = regs->r30;
96f1b00138cb8f Vineet Gupta 2021-06-08  71  #ifdef CONFIG_ARC_HAS_ACCL_REGS
96f1b00138cb8f Vineet Gupta 2021-06-08  72  v2abi.r58 = regs->r58;
96f1b00138cb8f Vineet Gupta 2021-06-08  73  v2abi.r59 = regs->r59;
96f1b00138cb8f Vineet Gupta 2021-06-08  74  #else
96f1b00138cb8f Vineet Gupta 2021-06-08  75  v2abi.r58 = v2abi.r59 = 0;
96f1b00138cb8f Vineet Gupta 2021-06-08  76  #endif
96f1b00138cb8f Vineet Gupta 2021-06-08  77  err = 
__copy_to_user(&mctx->v2abi, &v2abi, sizeof(v2abi));
96f1b00138cb8f Vineet Gupta 2021-06-08  78  #endif
96f1b00138cb8f Vineet Gupta 2021-06-08 @79  return err;
96f1b00138cb8f Vineet Gupta 2021-06-08  80  }
96f1b00138cb8f Vineet Gupta 2021-06-08  81  
96f1b00138cb8f Vineet Gupta 2021-06-08  82  static int 
restore_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
96f1b00138cb8f Vineet Gupta 2021-06-08  83  {
96f1b00138cb8f Vineet Gupta 2021-06-08  84  int err = 0;
96f1b00138cb8f Vineet Gupta 2021-06-08  85  #ifndef CONFIG_ISA_ARCOMPACT
96f1b00138cb8f Vineet Gupta 2021-06-08  86  struct user_regs_arcv2 v2abi;
96f1b00138cb8f Vineet Gupta 2021-06-08  87  
96f1b00138cb8f Vineet Gupta 2021-06-08  88  err = __copy_from_user(&v2abi, 
&mctx->v2abi, sizeof(v2abi));
96f1b00138cb8f Vineet Gupta 2021-06-08  89  
96f1b00138cb8f Vineet Gupta 2021-06-08  90  regs->r30 = v2abi.r30;
96f1b00138cb8f Vineet Gupta 2021-06-08  91  #ifdef CONFIG_ARC_HAS_ACCL_REGS
96f1b00138cb8f Vineet Gupta 2021-06-08  92  regs->r58 = v2abi.r58;
96f1b00138cb8f Vineet Gupta 2021-06-08  93  regs->r59 = v2abi.r59;
96f1b00138cb8f Vineet Gupta 2021-06-08  94  #endif
96f1b00138cb8f Vineet Gupta 2021-06-08  95  #endif
96f1b00138cb8f Vineet Gupta 2021-06-08 @96  return err;
96f1b00138cb8f Vineet Gupta 2021-06-08  97  }
96f1b00138cb8f Vineet Gupta 2021-06-08  98  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [patch 1/4] add basic task isolation prctl interface

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
In-Reply-To: <20210727104119.551607...@fuller.cnet>
References: <20210727104119.551607...@fuller.cnet>
TO: Marcelo Tosatti 
TO: linux-ker...@vger.kernel.org
CC: Nitesh Lal 
CC: Nicolas Saenz Julienne 
CC: Frederic Weisbecker 
CC: Christoph Lameter 
CC: Juri Lelli 
CC: Peter Zijlstra 
CC: Alex Belits 
CC: Peter Xu 
CC: Marcelo Tosatti 

Hi Marcelo,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.14-rc3]
[cannot apply to hnaz-linux-mm/master linux/master tip/sched/core 
tip/core/entry next-20210726]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:
https://github.com/0day-ci/linux/commits/Marcelo-Tosatti/prctl-task-isolation-interface-and-vmstat-sync/20210727-184330
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
ff1176468d368232b684f75e82563369208bc371
:: branch date: 2 hours ago
:: commit date: 2 hours ago
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
cd tools/perf && ./check-headers.sh

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


perfheadercheck warnings: (new ones prefixed by >>)
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  270> /* Task isolation 
>> control */
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  271> #define 
>> PR_ISOL_SET  62
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  272> #define 
>> PR_ISOL_GET  63
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  273> #define 
>> PR_ISOL_ENTER64
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  274> #define 
>> PR_ISOL_EXIT 65
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  275> # define 
>> PR_ISOL_MODE1
   Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
from latest version at 'include/uapi/linux/prctl.h':  276> 
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  277> # define 
>> PR_ISOL_MODE_NONE   0
>> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs 
>> from latest version at 'include/uapi/linux/prctl.h':  278> # define 
>> PR_ISOL_MODE_NORMAL 1

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [printk:rework/printk_safe-removal 1/6] lib/nmi_backtrace.c:106 nmi_cpu_backtrace() error: uninitialized symbol 'flags'.

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: John Ogness 
CC: Petr Mladek 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git 
rework/printk_safe-removal
head:   8d909b2333f37e5da84a9e6a2cbe21f52be5f42a
commit: 55d6af1d66885059ffc2ac23083de52d12be63bb [1/6] lib/nmi_backtrace: 
explicitly serialize banner and regs
:: branch date: 19 hours ago
:: commit date: 19 hours ago
config: i386-randconfig-m021-20210726 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 
Reported-by: Dan Carpenter 

smatch warnings:
lib/nmi_backtrace.c:106 nmi_cpu_backtrace() error: uninitialized symbol 'flags'.

vim +/flags +106 lib/nmi_backtrace.c

160c7ba34605d9 Paul E. McKenney 2020-07-08   91  
b2c0b2cbb282f0 Russell King 2014-09-03   92  bool nmi_cpu_backtrace(struct 
pt_regs *regs)
b2c0b2cbb282f0 Russell King 2014-09-03   93  {
b2c0b2cbb282f0 Russell King 2014-09-03   94 int cpu = 
smp_processor_id();
55d6af1d668850 John Ogness  2021-07-15   95 unsigned long flags;
b2c0b2cbb282f0 Russell King 2014-09-03   96  
b2c0b2cbb282f0 Russell King 2014-09-03   97 if 
(cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
160c7ba34605d9 Paul E. McKenney 2020-07-08   98 if 
(!READ_ONCE(backtrace_idle) && regs && cpu_in_idle(instruction_pointer(regs))) {
2f9b7e08cb27d6 Liu, Changcheng  2017-11-17   99 
pr_warn("NMI backtrace for cpu %d skipped: idling at %pS\n",
2f9b7e08cb27d6 Liu, Changcheng  2017-11-17  100 
cpu, (void *)instruction_pointer(regs));
6727ad9e206cc0 Chris Metcalf2016-10-07  101 } else {
55d6af1d668850 John Ogness  2021-07-15  102 /*
55d6af1d668850 John Ogness  2021-07-15  103  * 
Allow nested NMI backtraces while serializing
55d6af1d668850 John Ogness  2021-07-15  104  * 
against other CPUs.
55d6af1d668850 John Ogness  2021-07-15  105  */
55d6af1d668850 John Ogness  2021-07-15 @106 
printk_cpu_lock_irqsave(flags);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [plbossart-sound:merge/sound-upstream-20210726 3819/4059] sound/soc/soc-topology.c:1480:2: warning: Value stored to 'control_hdr' is never read [clang-analyzer-deadcode.DeadStores]

2021-07-27 Thread kernel test robot
CC: kbuild-...@lists.01.org
TO: Peter Ujfalusi 
CC: Kai Vehmanen 

tree:   https://github.com/plbossart/sound merge/sound-upstream-20210726
head:   2ae2cb25898106cd8d67d797300b219a7ddcf2f9
commit: 7c60d06634530437de78a92ef8c6cd4782d72440 [3819/4059] ASoC: 
soc-topology: Move template info print soc_tplg_dapm_widget_create()
:: branch date: 13 hours ago
:: commit date: 5 weeks ago
config: x86_64-randconfig-c001-20210726 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
c63dbd850182797bc4b76124d08e1c320ab2365d)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 
https://github.com/plbossart/sound/commit/7c60d06634530437de78a92ef8c6cd4782d72440
git remote add plbossart-sound https://github.com/plbossart/sound
git fetch --no-tags plbossart-sound merge/sound-upstream-20210726
git checkout 7c60d06634530437de78a92ef8c6cd4782d72440
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 


clang-analyzer warnings: (new ones prefixed by >>)
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   3 warnings generated.
   Suppressed 3 warnings (3 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   3 warnings generated.
   Suppressed 3 warnings (3 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   3 warnings generated.
   Suppressed 3 warnings (3 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   3 warnings generated.
   Suppressed 3 warnings (3 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   3 warnings generated.
   Suppressed 3 warnings (3 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   2 warnings generated.
   Suppressed 2 warnings (2 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   5 warnings generated.
   drivers/iio/frequency/adf4350.c:33:8: warning: Excessive padding in 'struct 
adf4350_state' (116 padding bytes, where 52 is optimal). 
   Optimal fields order: 
   val, 
   r0_fract, 
   spi, 
   reg, 
   lock_detect_gpiod, 
   pdata, 
   clk, 
   clkin, 
   chspc, 
   fpfd, 
   min_out_freq, 
   freq_req, 
   regs, 
   regs_hw, 
   lock, 
   r0_int, 
   r1_mod, 
   r4_rf_div_sel, 
   consider reordering the fields or adding explicit padding members 
[clang-analyzer-optin.performance.Padding]
   struct adf4350_state {
   ~~~^~~
   drivers/iio/frequency/adf4350.c:33:8: note: Excessive padding in 'struct 
adf4350_state' (116 padding bytes, where 52 is optimal). Optimal fields order: 
val, r0_fract, spi, reg, lock_detect_gpiod, pdata, clk, clkin, chspc, fpfd, 
min_out_freq, freq_req, regs, regs_hw, lock, r0_int, r1_mod, r4_rf_div_sel, 
consider reordering the fields or adding explicit padding members
   struct adf4350_state {
   ~~~^~~
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   4 warnings generated.
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   4 warnings generated.
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   4 warnings generated.
   Suppressed 4 warnings (4 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   2 warnings generated.
   Suppressed 2 warnings (2 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use 
-system-headers to display errors from system headers as well.
   2 warnings generated.
   Suppressed 2 warnings (2 in non-user code).
   Use -header-