[RFC PATCH] crypto/ffdhe: ffdhe2048_g[] can be static
by kernel test robot
crypto/ffdhe_helper.c:18:10: warning: symbol 'ffdhe2048_g' was not declared. Should it be static?
crypto/ffdhe_helper.c:20:10: warning: symbol 'ffdhe2048_p' was not declared. Should it be static?
crypto/ffdhe_helper.c:55:10: warning: symbol 'ffdhe2048_q' was not declared. Should it be static?
crypto/ffdhe_helper.c:94:10: warning: symbol 'ffdhe3072_g' was not declared. Should it be static?
crypto/ffdhe_helper.c:96:10: warning: symbol 'ffdhe3072_p' was not declared. Should it be static?
crypto/ffdhe_helper.c:147:10: warning: symbol 'ffdhe3072_q' was not declared. Should it be static?
crypto/ffdhe_helper.c:202:10: warning: symbol 'ffdhe4096_g' was not declared. Should it be static?
crypto/ffdhe_helper.c:204:10: warning: symbol 'ffdhe4096_p' was not declared. Should it be static?
crypto/ffdhe_helper.c:271:10: warning: symbol 'ffdhe4096_q' was not declared. Should it be static?
crypto/ffdhe_helper.c:342:10: warning: symbol 'ffdhe6144_g' was not declared. Should it be static?
crypto/ffdhe_helper.c:344:10: warning: symbol 'ffdhe6144_p' was not declared. Should it be static?
crypto/ffdhe_helper.c:443:10: warning: symbol 'ffdhe6144_q' was not declared. Should it be static?
crypto/ffdhe_helper.c:546:10: warning: symbol 'ffdhe8192_g' was not declared. Should it be static?
crypto/ffdhe_helper.c:548:10: warning: symbol 'ffdhe8192_p' was not declared. Should it be static?
crypto/ffdhe_helper.c:679:10: warning: symbol 'ffdhe8192_q' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
ffdhe_helper.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/crypto/ffdhe_helper.c b/crypto/ffdhe_helper.c
index d7018bc3a8ec5..5d8da12912523 100644
--- a/crypto/ffdhe_helper.c
+++ b/crypto/ffdhe_helper.c
@@ -15,9 +15,9 @@
/*
* ffdhe2048 generator (g), modulus (p) and group size (q)
*/
-const u8 ffdhe2048_g[] = { 0x02 };
+static const u8 ffdhe2048_g[] = { 0x02 };
-const u8 ffdhe2048_p[] = {
+static const u8 ffdhe2048_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xad,0xf8,0x54,0x58,0xa2,0xbb,0x4a,0x9a,
0xaf,0xdc,0x56,0x20,0x27,0x3d,0x3c,0xf1,
@@ -52,7 +52,7 @@ const u8 ffdhe2048_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
};
-const u8 ffdhe2048_q[] = {
+static const u8 ffdhe2048_q[] = {
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xd6,0xfc,0x2a,0x2c,0x51,0x5d,0xa5,0x4d,
0x57,0xee,0x2b,0x10,0x13,0x9e,0x9e,0x78,
@@ -91,9 +91,9 @@ const u8 ffdhe2048_q[] = {
* ffdhe3072 generator (g), modulus (p) and group size (q)
*/
-const u8 ffdhe3072_g[] = { 0x02 };
+static const u8 ffdhe3072_g[] = { 0x02 };
-const u8 ffdhe3072_p[] = {
+static const u8 ffdhe3072_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xad,0xf8,0x54,0x58,0xa2,0xbb,0x4a,0x9a,
0xaf,0xdc,0x56,0x20,0x27,0x3d,0x3c,0xf1,
@@ -144,7 +144,7 @@ const u8 ffdhe3072_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
};
-const u8 ffdhe3072_q[] = {
+static const u8 ffdhe3072_q[] = {
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xd6,0xfc,0x2a,0x2c,0x51,0x5d,0xa5,0x4d,
0x57,0xee,0x2b,0x10,0x13,0x9e,0x9e,0x78,
@@ -199,9 +199,9 @@ const u8 ffdhe3072_q[] = {
* ffdhe4096 generator (g), modulus (p) and group size (q)
*/
-const u8 ffdhe4096_g[] = { 0x02 };
+static const u8 ffdhe4096_g[] = { 0x02 };
-const u8 ffdhe4096_p[] = {
+static const u8 ffdhe4096_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xad,0xf8,0x54,0x58,0xa2,0xbb,0x4a,0x9a,
0xaf,0xdc,0x56,0x20,0x27,0x3d,0x3c,0xf1,
@@ -268,7 +268,7 @@ const u8 ffdhe4096_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
};
-const u8 ffdhe4096_q[] = {
+static const u8 ffdhe4096_q[] = {
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xd6,0xfc,0x2a,0x2c,0x51,0x5d,0xa5,0x4d,
0x57,0xee,0x2b,0x10,0x13,0x9e,0x9e,0x78,
@@ -339,9 +339,9 @@ const u8 ffdhe4096_q[] = {
* ffdhe6144 generator (g), modulus (p) and group size (q)
*/
-const u8 ffdhe6144_g[] = { 0x02 };
+static const u8 ffdhe6144_g[] = { 0x02 };
-const u8 ffdhe6144_p[] = {
+static const u8 ffdhe6144_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xad,0xf8,0x54,0x58,0xa2,0xbb,0x4a,0x9a,
0xaf,0xdc,0x56,0x20,0x27,0x3d,0x3c,0xf1,
@@ -440,7 +440,7 @@ const u8 ffdhe6144_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
};
-const u8 ffdhe6144_q[] = {
+static const u8 ffdhe6144_q[] = {
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xd6,0xfc,0x2a,0x2c,0x51,0x5d,0xa5,0x4d,
0x57,0xee,0x2b,0x10,0x13,0x9e,0x9e,0x78,
@@ -543,9 +543,9 @@ const u8 ffdhe6144_q[] = {
* ffdhe8192 generator (g), modulus (p) and group size (q)
*/
-const u8 ffdhe8192_g[] = { 0x02 };
+static const u8 ffdhe8192_g[] = { 0x02 };
-const u8 ffdhe8192_p[] = {
+static const u8 ffdhe8192_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xad,0xf8,0x54,0x58,0xa2,0xbb,0x4a,0x9a,
0xaf,0xdc,0x56,0x20,0x27,0x3d,0x3c,0xf1,
@@ -676,7 +676,7 @@ const u8 ffdhe8192_p[] = {
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
};
-const u8 ffdhe8192_q[] = {
+static const u8 ffdhe8192_q[] = {
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xd6,0xfc,0x2a,0x2c,0x51,0x5d,0xa5,0x4d,
0x57,0xee,0x2b,0x10,0x13,0x9e,0x9e,0x78,
10 months, 1 week
Re: [PATCH 03/12] crypto/ffdhe: Finite Field DH Ephemeral Parameters
by kernel test robot
Hi Hannes,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.16-rc1 next-20211117]
[cannot apply to herbert-cryptodev-2.6/master herbert-crypto-2.6/master linux-nvme/for-next]
[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/Hannes-Reinecke/nvme-In-band-aut...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5833291ab6de9c3e2374336b51c814e515e8f3a5
config: x86_64-randconfig-s031-20211115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/1eadaf1bdef889b9d1c0b9bb2609cd115...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hannes-Reinecke/nvme-In-band-authentication-support/20211112-210112
git checkout 1eadaf1bdef889b9d1c0b9bb2609cd11599c76bc
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> crypto/ffdhe_helper.c:18:10: sparse: sparse: symbol 'ffdhe2048_g' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:20:10: sparse: sparse: symbol 'ffdhe2048_p' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:55:10: sparse: sparse: symbol 'ffdhe2048_q' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:94:10: sparse: sparse: symbol 'ffdhe3072_g' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:96:10: sparse: sparse: symbol 'ffdhe3072_p' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:147:10: sparse: sparse: symbol 'ffdhe3072_q' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:202:10: sparse: sparse: symbol 'ffdhe4096_g' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:204:10: sparse: sparse: symbol 'ffdhe4096_p' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:271:10: sparse: sparse: symbol 'ffdhe4096_q' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:342:10: sparse: sparse: symbol 'ffdhe6144_g' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:344:10: sparse: sparse: symbol 'ffdhe6144_p' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:443:10: sparse: sparse: symbol 'ffdhe6144_q' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:546:10: sparse: sparse: symbol 'ffdhe8192_g' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:548:10: sparse: sparse: symbol 'ffdhe8192_p' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:679:10: sparse: sparse: symbol 'ffdhe8192_q' was not declared. Should it be static?
>> crypto/ffdhe_helper.c:816:3: sparse: sparse: symbol 'ffdhe_group_map' was not declared. Should it be static?
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ee1703cda8dc777e937dec172da55beaf1a74919
commit: 2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3 IB/core: Split uverbs_get_const/default to consider target type
date: 8 months ago
config: x86_64-randconfig-s022-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2904bb37b35d07be7bfa3fb4a0fc1a3daa6678b3
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/infiniband/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/infiniband/core/cm.c:1314:21: sparse: sparse: cast from restricted __be32
vim +1314 drivers/infiniband/core/cm.c
067b171b8679f9 Haggai Eran 2015-07-30 1308
87a37ce9e400e4 Håkon Bugge 2018-07-04 1309 static __be64 cm_form_tid(struct cm_id_private *cm_id_priv)
a977049dacdef6 Hal Rosenstock 2005-07-27 1310 {
a977049dacdef6 Hal Rosenstock 2005-07-27 1311 u64 hi_tid, low_tid;
a977049dacdef6 Hal Rosenstock 2005-07-27 1312
a977049dacdef6 Hal Rosenstock 2005-07-27 1313 hi_tid = ((u64) cm_id_priv->av.port->mad_agent->hi_tid) << 32;
87a37ce9e400e4 Håkon Bugge 2018-07-04 @1314 low_tid = (u64)cm_id_priv->id.local_id;
a977049dacdef6 Hal Rosenstock 2005-07-27 1315 return cpu_to_be64(hi_tid | low_tid);
a977049dacdef6 Hal Rosenstock 2005-07-27 1316 }
a977049dacdef6 Hal Rosenstock 2005-07-27 1317
:::::: The code at line 1314 was first introduced by commit
:::::: 87a37ce9e400e40daee537ff95343e3c94743c6d IB/cm: Remove unused and erroneous msg sequence encoding
:::::: TO: Håkon Bugge <haakon.bugge(a)oracle.com>
:::::: CC: Jason Gunthorpe <jgg(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/target/target_core_spc.c:44:18: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ee1703cda8dc777e937dec172da55beaf1a74919
commit: 7324f47d4293ff50f489010735a4057defb1a5d6 scsi: target: Replace lun_tg_pt_gp_lock with rcu in I/O path
date: 4 weeks ago
config: x86_64-randconfig-s021-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7324f47d4293ff50f489010735a4057defb1a5d6
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/target/target_core_spc.c:44:18: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct t10_alua_tg_pt_gp *tg_pt_gp @@ got struct t10_alua_tg_pt_gp [noderef] __rcu *lun_tg_pt_gp @@
drivers/target/target_core_spc.c:44:18: sparse: expected struct t10_alua_tg_pt_gp *tg_pt_gp
drivers/target/target_core_spc.c:44:18: sparse: got struct t10_alua_tg_pt_gp [noderef] __rcu *lun_tg_pt_gp
drivers/target/target_core_spc.c:329:26: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct t10_alua_tg_pt_gp *tg_pt_gp @@ got struct t10_alua_tg_pt_gp [noderef] __rcu *lun_tg_pt_gp @@
drivers/target/target_core_spc.c:329:26: sparse: expected struct t10_alua_tg_pt_gp *tg_pt_gp
drivers/target/target_core_spc.c:329:26: sparse: got struct t10_alua_tg_pt_gp [noderef] __rcu *lun_tg_pt_gp
vim +44 drivers/target/target_core_spc.c
88455ec4be02c39 Christoph Hellwig 2012-05-20 27
adf653f92f38e80 Christoph Hellwig 2015-05-25 28 static void spc_fill_alua_data(struct se_lun *lun, unsigned char *buf)
1fd032ee10d2816 Christoph Hellwig 2012-05-20 29 {
1fd032ee10d2816 Christoph Hellwig 2012-05-20 30 struct t10_alua_tg_pt_gp *tg_pt_gp;
1fd032ee10d2816 Christoph Hellwig 2012-05-20 31
1fd032ee10d2816 Christoph Hellwig 2012-05-20 32 /*
1fd032ee10d2816 Christoph Hellwig 2012-05-20 33 * Set SCCS for MAINTENANCE_IN + REPORT_TARGET_PORT_GROUPS.
1fd032ee10d2816 Christoph Hellwig 2012-05-20 34 */
1fd032ee10d2816 Christoph Hellwig 2012-05-20 35 buf[5] = 0x80;
1fd032ee10d2816 Christoph Hellwig 2012-05-20 36
1fd032ee10d2816 Christoph Hellwig 2012-05-20 37 /*
125d0119d158180 Hannes Reinecke 2013-11-19 38 * Set TPGS field for explicit and/or implicit ALUA access type
1fd032ee10d2816 Christoph Hellwig 2012-05-20 39 * and opteration.
1fd032ee10d2816 Christoph Hellwig 2012-05-20 40 *
1fd032ee10d2816 Christoph Hellwig 2012-05-20 41 * See spc4r17 section 6.4.2 Table 135
1fd032ee10d2816 Christoph Hellwig 2012-05-20 42 */
adf653f92f38e80 Christoph Hellwig 2015-05-25 43 spin_lock(&lun->lun_tg_pt_gp_lock);
adf653f92f38e80 Christoph Hellwig 2015-05-25 @44 tg_pt_gp = lun->lun_tg_pt_gp;
1fd032ee10d2816 Christoph Hellwig 2012-05-20 45 if (tg_pt_gp)
1fd032ee10d2816 Christoph Hellwig 2012-05-20 46 buf[5] |= tg_pt_gp->tg_pt_gp_alua_access_type;
adf653f92f38e80 Christoph Hellwig 2015-05-25 47 spin_unlock(&lun->lun_tg_pt_gp_lock);
1fd032ee10d2816 Christoph Hellwig 2012-05-20 48 }
1fd032ee10d2816 Christoph Hellwig 2012-05-20 49
:::::: The code at line 44 was first introduced by commit
:::::: adf653f92f38e80a78bb77e912d49bcc8055330f target: Subsume se_port + t10_alua_tg_pt_gp_member into se_lun
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Nicholas Bellinger <nab(a)linux-iscsi.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
arch/x86/kernel/signal.c:936:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ee1703cda8dc777e937dec172da55beaf1a74919
commit: 3aac3ebea08f2d342364f827c8979ab0e1dd591e x86/signal: Implement sigaltstack size validation
date: 3 weeks ago
config: i386-randconfig-s001-20211109 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3aac3ebea08f2d342364f827c8979ab0e1dd591e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long long [usertype] * @@
arch/x86/kernel/signal.c:358:9: sparse: expected void const volatile [noderef] __user *ptr
arch/x86/kernel/signal.c:358:9: sparse: got unsigned long long [usertype] *
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:358:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long long [usertype] * @@
arch/x86/kernel/signal.c:418:9: sparse: expected void const volatile [noderef] __user *ptr
arch/x86/kernel/signal.c:418:9: sparse: got unsigned long long [usertype] *
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:418:9: sparse: sparse: cast removes address space '__user' of expression
>> arch/x86/kernel/signal.c:936:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct lockdep_map const *lock @@ got struct lockdep_map [noderef] __rcu * @@
arch/x86/kernel/signal.c:936:9: sparse: expected struct lockdep_map const *lock
arch/x86/kernel/signal.c:936:9: sparse: got struct lockdep_map [noderef] __rcu *
vim +936 arch/x86/kernel/signal.c
924
925 /*
926 * MINSIGSTKSZ is 2048 and can't be changed despite the fact that AVX512
927 * exceeds that size already. As such programs might never use the
928 * sigaltstack they just continued to work. While always checking against
929 * the real size would be correct, this might be considered a regression.
930 *
931 * Therefore avoid the sanity check, unless enforced by kernel config or
932 * command line option.
933 */
934 bool sigaltstack_size_valid(size_t ss_size)
935 {
> 936 lockdep_assert_held(¤t->sighand->siglock);
937
938 if (strict_sigaltstack_size)
939 return ss_size > get_sigframe_size();
940
941 return true;
942 }
943 #endif /* CONFIG_DYNAMIC_SIGFRAME */
944
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v10 3/5] iio: adc: Add Xilinx AMS driver
by kernel test robot
Hi Anand,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on linux/master linus/master v5.16-rc1 next-20211117]
[cannot apply to xilinx-xlnx/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/Anand-Ashok-Dumbre/Add-Xilinx-AM...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: sparc64-randconfig-s032-20211118 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.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.4-dirty
# https://github.com/0day-ci/linux/commit/196a4a5b4232a4a12d0843a0002b66472...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Anand-Ashok-Dumbre/Add-Xilinx-AMS-Driver/20211118-001150
git checkout 196a4a5b4232a4a12d0843a0002b664720b5d200
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/iio/adc/xilinx-ams.c: In function 'ams_update_intrmask':
drivers/iio/adc/xilinx-ams.c:323:20: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
323 | regval = ~(FIELD_GET(AMS_ISR1_INTR_MASK, ams->intr_mask));
| ^~~~~~~~~
drivers/iio/adc/xilinx-ams.c: In function 'ams_update_ps_alarm':
drivers/iio/adc/xilinx-ams.c:360:17: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
360 | cfg = ~(FIELD_PREP(AMS_CONF1_ALARM_2_TO_0_MASK, val));
| ^~~~~~~~~~
drivers/iio/adc/xilinx-ams.c: In function 'ams_parse_firmware':
>> drivers/iio/adc/xilinx-ams.c:121:41: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446744073709486080' to '4294901760' [-Woverflow]
121 | #define AMS_ALARM_THR_MIN ~(BIT(16) - 1)
| ^~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:1285:40: note: in expansion of macro 'AMS_ALARM_THR_MIN'
1285 | writel(AMS_ALARM_THR_MIN,
| ^~~~~~~~~~~~~~~~~
>> drivers/iio/adc/xilinx-ams.c:121:41: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446744073709486080' to '4294901760' [-Woverflow]
121 | #define AMS_ALARM_THR_MIN ~(BIT(16) - 1)
| ^~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:1290:40: note: in expansion of macro 'AMS_ALARM_THR_MIN'
1290 | writel(AMS_ALARM_THR_MIN,
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +121 drivers/iio/adc/xilinx-ams.c
119
120 #define AMS_ALARM_THR_DIRECT_MASK BIT(1)
> 121 #define AMS_ALARM_THR_MIN ~(BIT(16) - 1)
122 #define AMS_ALARM_THR_MAX (BIT(16) - 1)
123
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[linux-next:master 1703/1937] include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fd96a4057bd015d194a4b87e7c149fc2fef3c166
commit: 4721031c3559db8eae61df305f10c00099a7c1d0 [1703/1937] net: move gro definitions to include/net/gro.h
config: nios2-defconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
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/next/linux-next.git/commi...
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 4721031c3559db8eae61df305f10c00099a7c1d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from net/core/skbuff.c:67:
include/net/gro.h: In function 'ip6_gro_compute_pseudo':
>> include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
413 | return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
| ^~~~~~~~~~~~~~~
| csum_tcpudp_magic
In file included from net/core/skbuff.c:70:
include/net/ip6_checksum.h: At top level:
>> include/net/ip6_checksum.h:34:9: error: conflicting types for 'csum_ipv6_magic'; have '__sum16(const struct in6_addr *, const struct in6_addr *, __u32, __u8, __wsum)' {aka 'short unsigned int(const struct in6_addr *, const struct in6_addr *, unsigned int, unsigned char, unsigned int)'}
34 | __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
| ^~~~~~~~~~~~~~~
In file included from net/core/skbuff.c:67:
include/net/gro.h:413:29: note: previous implicit declaration of 'csum_ipv6_magic' with type 'int()'
413 | return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from net/core/dev.c:105:
include/net/gro.h: In function 'ip6_gro_compute_pseudo':
>> include/net/gro.h:413:29: error: implicit declaration of function 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'? [-Werror=implicit-function-declaration]
413 | return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
| ^~~~~~~~~~~~~~~
| csum_tcpudp_magic
cc1: some warnings being treated as errors
vim +413 include/net/gro.h
408
409 static inline __wsum ip6_gro_compute_pseudo(struct sk_buff *skb, int proto)
410 {
411 const struct ipv6hdr *iph = skb_gro_network_header(skb);
412
> 413 return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
414 skb_gro_len(skb), proto, 0));
415 }
416
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v12 2/4] dmaengine: tegra: Add tegra gpcdma driver
by kernel test robot
Hi Akhil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on vkoul-dmaengine/next arm64/for-next/core v5.16-rc1 next-20211117]
[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/Akhil-R/dt-bindings-dmaengine-Ad...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: sparc64-randconfig-p002-20211115 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
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://github.com/0day-ci/linux/commit/faf61a8fc90e3ea731c65a8cebce3eb6c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Akhil-R/dt-bindings-dmaengine-Add-doc-for-tegra-gpcdma/20211109-233646
git checkout faf61a8fc90e3ea731c65a8cebce3eb6c0444d21
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_sid_free':
drivers/dma/tegra186-gpc-dma.c:326:9: warning: enumeration value 'DMA_MEM_TO_MEM' not handled in switch [-Wswitch]
326 | switch (tdc->sid_dir) {
| ^~~~~~
drivers/dma/tegra186-gpc-dma.c:326:9: warning: enumeration value 'DMA_DEV_TO_DEV' not handled in switch [-Wswitch]
drivers/dma/tegra186-gpc-dma.c:326:9: warning: enumeration value 'DMA_TRANS_NONE' not handled in switch [-Wswitch]
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_desc_free':
>> drivers/dma/tegra186-gpc-dma.c:340:9: error: implicit declaration of function 'kfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
340 | kfree(container_of(vd, struct tegra_dma_desc, vd));
| ^~~~~
| kvfree
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_reset_client':
drivers/dma/tegra186-gpc-dma.c:55:41: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
55 | FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, 4)
| ^~~~~~~~~~
drivers/dma/tegra186-gpc-dma.c:535:16: note: in expansion of macro 'TEGRA_GPCDMA_CSR_REQ_SEL_UNUSED'
535 | csr |= TEGRA_GPCDMA_CSR_REQ_SEL_UNUSED;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_prep_dma_memset':
>> drivers/dma/tegra186-gpc-dma.c:776:20: error: implicit declaration of function 'kzalloc'; did you mean 'kvzalloc'? [-Werror=implicit-function-declaration]
776 | dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT);
| ^~~~~~~
| kvzalloc
>> drivers/dma/tegra186-gpc-dma.c:776:18: warning: assignment to 'struct tegra_dma_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
776 | dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT);
| ^
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_prep_dma_memcpy':
drivers/dma/tegra186-gpc-dma.c:843:18: warning: assignment to 'struct tegra_dma_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
843 | dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT);
| ^
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_prep_slave_sg':
drivers/dma/tegra186-gpc-dma.c:932:18: warning: assignment to 'struct tegra_dma_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
932 | dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT);
| ^
cc1: some warnings being treated as errors
vim +340 drivers/dma/tegra186-gpc-dma.c
320
321 static void tegra_dma_sid_free(struct tegra_dma_channel *tdc)
322 {
323 struct tegra_dma *tdma = tdc->tdma;
324 unsigned int sid = tdc->slave_id;
325
> 326 switch (tdc->sid_dir) {
327 case DMA_MEM_TO_DEV:
328 clear_bit(sid, &tdma->sid_m2d_reserved);
329 break;
330 case DMA_DEV_TO_MEM:
331 clear_bit(sid, &tdma->sid_d2m_reserved);
332 break;
333 }
334
335 tdc->sid_dir = DMA_TRANS_NONE;
336 }
337
338 static void tegra_dma_desc_free(struct virt_dma_desc *vd)
339 {
> 340 kfree(container_of(vd, struct tegra_dma_desc, vd));
341 }
342
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week