[hare-scsi-devel:ata-trace.v3 2/73] drivers/ata/libata-core.c:972:13: warning: no previous prototype for function 'ata_dev_class_string'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git ata-trace.v3
head: d973dee7af0328b9176e4a1710fb73093c334698
commit: 41c489a28ae800ac33f419ad83135261e9eba85c [2/73] libata: Add ata_port_classify() helper
config: i386-randconfig-r021-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090629.8XnsDIKk-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel ata-trace.v3
git checkout 41c489a28ae800ac33f419ad83135261e9eba85c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/ drivers/ata/
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/ata/libata-core.c:972:13: warning: no previous prototype for function 'ata_dev_class_string' [-Wmissing-prototypes]
const char *ata_dev_class_string(unsigned int class)
^
drivers/ata/libata-core.c:972:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const char *ata_dev_class_string(unsigned int class)
^
static
1 warning generated.
vim +/ata_dev_class_string +972 drivers/ata/libata-core.c
971
> 972 const char *ata_dev_class_string(unsigned int class)
973 {
974 static const char * const class_str[] = {
975 "unknown",
976 "ATA",
977 "ATA (unsupported)",
978 "ATAPI",
979 "ATAPI (unsupported",
980 "PMP",
981 "PMP (unsupported)",
982 "SEMB",
983 "SEMB (unsupported)",
984 "ZAC",
985 "ZAC (unsupported)",
986 "none",
987 };
988 if (class == 0 || (class - 1) >= ARRAY_SIZE(class_str))
989 return "unknown";
990 return class_str[class - 1];
991 }
992
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [net-next v2 2/2] net: sched: support hash/classid selecting tx queue
by kernel test robot
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/xiangxia-m-yue-gmail-com/net-sch...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 1fe5b01262844be03de98afdd56d1d393df04d7e
config: i386-randconfig-a015-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090601.FrUCO7HV-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/522fbcfdde012bc46d29aa216bdfa73f5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review xiangxia-m-yue-gmail-com/net-sched-allow-user-to-select-txqueue/20211208-223656
git checkout 522fbcfdde012bc46d29aa216bdfa73f512adcbd
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/sched/
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 >>):
>> net/sched/act_skbedit.c:39:11: warning: variable 'hash' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if (params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/sched/act_skbedit.c:42:34: note: uninitialized use occurs here
queue_mapping = queue_mapping + hash % mapping_mod;
^~~~
net/sched/act_skbedit.c:39:7: note: remove the 'if' if its condition is always true
else if (params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/sched/act_skbedit.c:32:10: note: initialize the variable 'hash' to silence this warning
u32 hash;
^
= 0
1 warning generated.
vim +39 net/sched/act_skbedit.c
26
27 static u16 tcf_skbedit_hash(struct tcf_skbedit_params *params,
28 struct sk_buff *skb)
29 {
30 u16 queue_mapping = params->queue_mapping;
31 u16 mapping_mod = params->mapping_mod;
32 u32 hash;
33
34 if (!(params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH_MASK))
35 return netdev_cap_txqueue(skb->dev, queue_mapping);
36
37 if (params->flags & SKBEDIT_F_QUEUE_MAPPING_CLASSID)
38 hash = jhash_1word(task_get_classid(skb), 0);
> 39 else if (params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH)
40 hash = skb_get_hash(skb);
41
42 queue_mapping = queue_mapping + hash % mapping_mod;
43 return netdev_cap_txqueue(skb->dev, queue_mapping);
44 }
45
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH 54/73] pata_atp867x: convert blank printk() calls
by kernel test robot
Hi Hannes,
I love your patch! Perhaps something to improve:
[auto build test WARNING on rostedt-trace/for-next]
[also build test WARNING on axboe-block/for-next linus/master v5.16-rc4 next-20211208]
[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/libata-rework-lo...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
config: arc-randconfig-r043-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090637.TBRwbH92-lk...)
compiler: arceb-elf-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/bd6ed9c4fe23f7c395cacd847a03e6bab...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hannes-Reinecke/libata-rework-logging-take-II/20211209-003634
git checkout bd6ed9c4fe23f7c395cacd847a03e6babd390e1f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/ata/
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 >>):
In file included from include/linux/device.h:15,
from include/linux/pci.h:37,
from drivers/ata/pata_atp867x.c:17:
drivers/ata/pata_atp867x.c: In function 'atp867x_check_ports':
>> drivers/ata/pata_atp867x.c:313:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
313 | (unsigned long long)ioaddr->cmd_addr,
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:314:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
314 | (unsigned long long)ATP867X_IO_PORTBASE(ap, port),
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:315:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
315 | (unsigned long long)ioaddr->ctl_addr,
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:316:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
316 | (unsigned long long)ATP867X_IO_ALTSTATUS(ap, port),
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:317:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
317 | (unsigned long long)ioaddr->bmdma_addr,
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:318:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
318 | (unsigned long long)ATP867X_IO_DMABASE(ap, port),
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:319:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
319 | (unsigned long long)ioaddr->data_addr,
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:320:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
320 | (unsigned long long)ioaddr->error_addr,
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/libata.h:1452:9: note: in expansion of macro 'dev_dbg'
1452 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/pata_atp867x.c:293:9: note: in expansion of macro 'ata_port_dbg'
293 | ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
| ^~~~~~~~~~~~
drivers/ata/pata_atp867x.c:321:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
321 | (unsigned long long)ioaddr->feature_addr,
| ^
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
vim +313 drivers/ata/pata_atp867x.c
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 287)
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 288) static void atp867x_check_ports(struct ata_port *ap, int port)
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 289) {
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 290) struct ata_ioports *ioaddr = &ap->ioaddr;
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 291) struct atp867x_priv *dp = ap->private_data;
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 292)
bd6ed9c4fe23f7 Hannes Reinecke 2021-12-08 293 ata_port_dbg(ap, "ATP867X: port[%d] addresses\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 294) " cmd_addr =0x%llx, 0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 295) " ctl_addr =0x%llx, 0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 296) " bmdma_addr =0x%llx, 0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 297) " data_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 298) " error_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 299) " feature_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 300) " nsect_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 301) " lbal_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 302) " lbam_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 303) " lbah_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 304) " device_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 305) " status_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 306) " command_addr =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 307) " dp->dma_mode =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 308) " dp->mstr_piospd =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 309) " dp->slave_piospd =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 310) " dp->eightb_piospd =0x%llx\n"
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 311) " dp->pci66mhz =0x%lx\n",
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 312) port,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 @313) (unsigned long long)ioaddr->cmd_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 314) (unsigned long long)ATP867X_IO_PORTBASE(ap, port),
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 315) (unsigned long long)ioaddr->ctl_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 316) (unsigned long long)ATP867X_IO_ALTSTATUS(ap, port),
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 317) (unsigned long long)ioaddr->bmdma_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 318) (unsigned long long)ATP867X_IO_DMABASE(ap, port),
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 319) (unsigned long long)ioaddr->data_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 320) (unsigned long long)ioaddr->error_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 321) (unsigned long long)ioaddr->feature_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 322) (unsigned long long)ioaddr->nsect_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 323) (unsigned long long)ioaddr->lbal_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 324) (unsigned long long)ioaddr->lbam_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 325) (unsigned long long)ioaddr->lbah_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 326) (unsigned long long)ioaddr->device_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 327) (unsigned long long)ioaddr->status_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 328) (unsigned long long)ioaddr->command_addr,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 329) (unsigned long long)dp->dma_mode,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 330) (unsigned long long)dp->mstr_piospd,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 331) (unsigned long long)dp->slave_piospd,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 332) (unsigned long long)dp->eightb_piospd,
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 333) (unsigned long)dp->pci66mhz);
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 334) }
d15d6e6cc34056 John(Jung-Ik Lee 2009-09-14 335)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH 02/73] libata: Add ata_port_classify() helper
by kernel test robot
Hi Hannes,
I love your patch! Perhaps something to improve:
[auto build test WARNING on rostedt-trace/for-next]
[also build test WARNING on axboe-block/for-next linus/master v5.16-rc4 next-20211208]
[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/libata-rework-lo...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
config: hexagon-randconfig-r045-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090643.h0EhSayB-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/6b66f083c8ccc2d25de4c0a9bc9229f38...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hannes-Reinecke/libata-rework-logging-take-II/20211209-003634
git checkout 6b66f083c8ccc2d25de4c0a9bc9229f38952bf10
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/ata/
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/ata/libata-core.c:972:13: warning: no previous prototype for function 'ata_dev_class_string' [-Wmissing-prototypes]
const char *ata_dev_class_string(unsigned int class)
^
drivers/ata/libata-core.c:972:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const char *ata_dev_class_string(unsigned int class)
^
static
1 warning generated.
vim +/ata_dev_class_string +972 drivers/ata/libata-core.c
971
> 972 const char *ata_dev_class_string(unsigned int class)
973 {
974 static const char * const class_str[] = {
975 "unknown",
976 "ATA",
977 "ATA (unsupported)",
978 "ATAPI",
979 "ATAPI (unsupported",
980 "PMP",
981 "PMP (unsupported)",
982 "SEMB",
983 "SEMB (unsupported)",
984 "ZAC",
985 "ZAC (unsupported)",
986 "none",
987 };
988 if (class == 0 || (class - 1) >= ARRAY_SIZE(class_str))
989 return "unknown";
990 return class_str[class - 1];
991 }
992
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[davidhildenbrand:foll_unshare 1/2] include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
by kernel test robot
tree: git://github.com/davidhildenbrand/linux foll_unshare
head: f4b54ddc31ca94dedc57a3aab1f42d348537a31b
commit: f270db76384cb1df5a7f1b67226a8c8515583e5f [1/2] seqlock: provide lockdep-free raw_seqcount_t variant
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20211209/202112090511.tFh8KCmb-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/davidhildenbrand/linux/commit/f270db76384cb1df5a7f1b67...
git remote add davidhildenbrand git://github.com/davidhildenbrand/linux
git fetch --no-tags davidhildenbrand foll_unshare
git checkout f270db76384cb1df5a7f1b67226a8c8515583e5f
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash
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 include/linux/mm_types.h:18,
from mm/init-mm.c:2:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
mm/init-mm.c:34:23: note: in expansion of macro 'SEQCNT_ZERO'
34 | .write_protect_seq = SEQCNT_ZERO(init_mm.write_protect_seq),
| ^~~~~~~~~~~
--
In file included from include/linux/hrtimer.h:20,
from include/linux/sched.h:19,
from include/linux/ratelimit.h:6,
from fs/dcache.c:18:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:353:15: note: in expansion of macro 'SEQCNT_ZERO'
353 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
include/linux/seqlock.h:358:42: note: in expansion of macro 'SEQCOUNT_LOCKNAME_ZERO'
358 | #define SEQCNT_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/seqlock.h:888:15: note: in expansion of macro 'SEQCNT_SPINLOCK_ZERO'
888 | .seqcount = SEQCNT_SPINLOCK_ZERO(lockname, &(lockname).lock), \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/seqlock.h:907:18: note: in expansion of macro '__SEQLOCK_UNLOCKED'
907 | seqlock_t sl = __SEQLOCK_UNLOCKED(sl)
| ^~~~~~~~~~~~~~~~~~
fs/dcache.c:77:28: note: in expansion of macro 'DEFINE_SEQLOCK'
77 | __cacheline_aligned_in_smp DEFINE_SEQLOCK(rename_lock);
| ^~~~~~~~~~~~~~
--
In file included from include/linux/dcache.h:11,
from include/linux/fs.h:8,
from include/uapi/linux/aio_abi.h:31,
from include/linux/syscalls.h:77,
from fs/namespace.c:11:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:353:15: note: in expansion of macro 'SEQCNT_ZERO'
353 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
include/linux/seqlock.h:358:42: note: in expansion of macro 'SEQCOUNT_LOCKNAME_ZERO'
358 | #define SEQCNT_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/seqlock.h:888:15: note: in expansion of macro 'SEQCNT_SPINLOCK_ZERO'
888 | .seqcount = SEQCNT_SPINLOCK_ZERO(lockname, &(lockname).lock), \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/seqlock.h:907:18: note: in expansion of macro '__SEQLOCK_UNLOCKED'
907 | seqlock_t sl = __SEQLOCK_UNLOCKED(sl)
| ^~~~~~~~~~~~~~~~~~
fs/namespace.c:98:28: note: in expansion of macro 'DEFINE_SEQLOCK'
98 | __cacheline_aligned_in_smp DEFINE_SEQLOCK(mount_lock);
| ^~~~~~~~~~~~~~
--
In file included from include/linux/hrtimer.h:20,
from include/linux/sched.h:19,
from include/linux/sched/signal.h:7,
from fs/fs_struct.c:3:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:353:15: note: in expansion of macro 'SEQCNT_ZERO'
353 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
include/linux/seqlock.h:358:42: note: in expansion of macro 'SEQCOUNT_LOCKNAME_ZERO'
358 | #define SEQCNT_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock)
| ^~~~~~~~~~~~~~~~~~~~~~
fs/fs_struct.c:166:10: note: in expansion of macro 'SEQCNT_SPINLOCK_ZERO'
166 | .seq = SEQCNT_SPINLOCK_ZERO(init_fs.seq, &init_fs.lock),
| ^~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/mm_types.h:18,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from net/ipv4/tcp_metrics.c:5:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:353:15: note: in expansion of macro 'SEQCNT_ZERO'
353 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
include/linux/seqlock.h:358:42: note: in expansion of macro 'SEQCOUNT_LOCKNAME_ZERO'
358 | #define SEQCNT_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/seqlock.h:888:15: note: in expansion of macro 'SEQCNT_SPINLOCK_ZERO'
888 | .seqcount = SEQCNT_SPINLOCK_ZERO(lockname, &(lockname).lock), \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/seqlock.h:907:18: note: in expansion of macro '__SEQLOCK_UNLOCKED'
907 | seqlock_t sl = __SEQLOCK_UNLOCKED(sl)
| ^~~~~~~~~~~~~~~~~~
net/ipv4/tcp_metrics.c:541:8: note: in expansion of macro 'DEFINE_SEQLOCK'
541 | static DEFINE_SEQLOCK(fastopen_seqlock);
| ^~~~~~~~~~~~~~
--
In file included from include/linux/mmzone.h:16,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from kernel/printk/printk.c:23:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:737:15: note: in expansion of macro 'SEQCNT_ZERO'
737 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
kernel/printk/printk.c:381:12: note: in expansion of macro 'SEQCNT_LATCH_ZERO'
381 | .latch = SEQCNT_LATCH_ZERO(clear_seq.latch),
| ^~~~~~~~~~~~~~~~~
--
In file included from include/linux/mmzone.h:16,
from include/linux/gfp.h:6,
from include/linux/radix-tree.h:12,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/clocksource.h:19,
from include/linux/timekeeper_internal.h:10,
from kernel/time/timekeeping.c:6:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:353:15: note: in expansion of macro 'SEQCNT_ZERO'
353 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
include/linux/seqlock.h:357:46: note: in expansion of macro 'SEQCOUNT_LOCKNAME_ZERO'
357 | #define SEQCNT_RAW_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/time/timekeeping.c:52:9: note: in expansion of macro 'SEQCNT_RAW_SPINLOCK_ZERO'
52 | .seq = SEQCNT_RAW_SPINLOCK_ZERO(tk_core.seq, &timekeeper_lock),
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:737:15: note: in expansion of macro 'SEQCNT_ZERO'
737 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
kernel/time/timekeeping.c:104:13: note: in expansion of macro 'SEQCNT_LATCH_ZERO'
104 | .seq = SEQCNT_LATCH_ZERO(tk_fast_mono.seq),
| ^~~~~~~~~~~~~~~~~
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:737:15: note: in expansion of macro 'SEQCNT_ZERO'
737 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
kernel/time/timekeeping.c:110:13: note: in expansion of macro 'SEQCNT_LATCH_ZERO'
110 | .seq = SEQCNT_LATCH_ZERO(tk_fast_raw.seq),
| ^~~~~~~~~~~~~~~~~
--
In file included from include/linux/mmzone.h:16,
from include/linux/gfp.h:6,
from include/linux/radix-tree.h:12,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/clocksource.h:19,
from kernel/time/jiffies.c:7:
>> include/linux/seqlock.h:141:30: error: 'seqcount_t' {aka 'struct seqcount'} has no member named 'seqcount'
141 | #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
| ^~~~~~~~
include/linux/seqlock.h:353:15: note: in expansion of macro 'SEQCNT_ZERO'
353 | .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
| ^~~~~~~~~~~
include/linux/seqlock.h:357:46: note: in expansion of macro 'SEQCOUNT_LOCKNAME_ZERO'
357 | #define SEQCNT_RAW_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/time/jiffies.c:45:2: note: in expansion of macro 'SEQCNT_RAW_SPINLOCK_ZERO'
45 | SEQCNT_RAW_SPINLOCK_ZERO(jiffies_seq, &jiffies_lock);
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +141 include/linux/seqlock.h
136
137 /**
138 * SEQCNT_ZERO() - static initializer for seqcount_t
139 * @name: Name of the seqcount_t instance
140 */
> 141 #define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
142
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH 17/18] drm: rockchip: Add VOP2 driver
by kernel test robot
Hi Sascha,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on rockchip/for-next]
[also build test WARNING on drm/drm-next drm-intel/for-linux-next drm-exynos/exynos-drm-next v5.16-rc4]
[cannot apply to drm-tip/drm-tip tegra-drm/drm/tegra/for-next airlied/drm-next next-20211208]
[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/Sascha-Hauer/drm-rockchip-RK356x...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20211209/202112090519.Beunfs20-lk...)
compiler: mips-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/8d57a528cbdfec4716a21d22d3d6c04c4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sascha-Hauer/drm-rockchip-RK356x-VOP2-support/20211208-231502
git checkout 8d57a528cbdfec4716a21d22d3d6c04c40451355
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/rockchip/
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/gpu/drm/rockchip/rockchip_drm_vop2.c: In function 'vop2_setup_cluster_alpha':
>> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1861:33: warning: variable 'top_win_pstate' set but not used [-Wunused-but-set-variable]
1861 | struct drm_plane_state *top_win_pstate;
| ^~~~~~~~~~~~~~
vim +/top_win_pstate +1861 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1855
1856 static void vop2_setup_cluster_alpha(struct vop2 *vop2, struct vop2_win *main_win)
1857 {
1858 uint32_t offset = (main_win->data->phys_id * 0x10);
1859 struct vop2_alpha_config alpha_config;
1860 struct vop2_alpha alpha;
> 1861 struct drm_plane_state *top_win_pstate;
1862 struct drm_plane_state *bottom_win_pstate;
1863 bool src_pixel_alpha_en = false;
1864 uint16_t src_glb_alpha_val, dst_glb_alpha_val;
1865 bool premulti_en = false;
1866 bool swap = false;
1867
1868 /* At one win mode, win0 is dst/bottom win, and win1 is a all zero src/top win */
1869 top_win_pstate = NULL;
1870 bottom_win_pstate = main_win->base.state;
1871 src_glb_alpha_val = 0;
1872 dst_glb_alpha_val = main_win->base.state->alpha;
1873
1874 if (!bottom_win_pstate->fb)
1875 return;
1876
1877 alpha_config.src_premulti_en = premulti_en;
1878 alpha_config.dst_premulti_en = false;
1879 alpha_config.src_pixel_alpha_en = src_pixel_alpha_en;
1880 alpha_config.dst_pixel_alpha_en = true; /* alpha value need transfer to next mix */
1881 alpha_config.src_glb_alpha_value = src_glb_alpha_val;
1882 alpha_config.dst_glb_alpha_value = dst_glb_alpha_val;
1883 vop2_parse_alpha(&alpha_config, &alpha);
1884
1885 alpha.src_color_ctrl.bits.src_dst_swap = swap;
1886 vop2_writel(vop2, RK3568_CLUSTER0_MIX_SRC_COLOR_CTRL + offset,
1887 alpha.src_color_ctrl.val);
1888 vop2_writel(vop2, RK3568_CLUSTER0_MIX_DST_COLOR_CTRL + offset,
1889 alpha.dst_color_ctrl.val);
1890 vop2_writel(vop2, RK3568_CLUSTER0_MIX_SRC_ALPHA_CTRL + offset,
1891 alpha.src_alpha_ctrl.val);
1892 vop2_writel(vop2, RK3568_CLUSTER0_MIX_DST_ALPHA_CTRL + offset,
1893 alpha.dst_alpha_ctrl.val);
1894 }
1895
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[norov:bm-new 5/12] drivers/memstick/core/ms_block.c:160:3: error: expected ')'
by kernel test robot
tree: https://github.com/norov/linux bm-new
head: 3d638c6d3a8a02375f51842f10dd505b91a11c37
commit: feaa500586b1f91d6eeb746885a775a38ac727eb [5/12] rework bitmap_weight
config: hexagon-randconfig-r045-20211208 (https://download.01.org/0day-ci/archive/20211209/202112090503.OzaTxG8D-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/norov/linux/commit/feaa500586b1f91d6eeb746885a775a38ac...
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov bm-new
git checkout feaa500586b1f91d6eeb746885a775a38ac727eb
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/memstick/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the norov/bm-new HEAD 3d638c6d3a8a02375f51842f10dd505b91a11c37 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
>> drivers/memstick/core/ms_block.c:160:3: error: expected ')'
return 0;
^
drivers/memstick/core/ms_block.c:158:5: note: to match this '('
if (bitmap_weight_eq(msb->used_blocks_bitmap, msb->block_count,
^
1 error generated.
vim +160 drivers/memstick/core/ms_block.c
0ab30494bc4f3b Maxim Levitsky 2013-09-11 145
0ab30494bc4f3b Maxim Levitsky 2013-09-11 146 /* Debug test to validate free block counts */
0ab30494bc4f3b Maxim Levitsky 2013-09-11 147 static int msb_validate_used_block_bitmap(struct msb_data *msb)
0ab30494bc4f3b Maxim Levitsky 2013-09-11 148 {
0ab30494bc4f3b Maxim Levitsky 2013-09-11 149 int total_free_blocks = 0;
0ab30494bc4f3b Maxim Levitsky 2013-09-11 150 int i;
0ab30494bc4f3b Maxim Levitsky 2013-09-11 151
0ab30494bc4f3b Maxim Levitsky 2013-09-11 152 if (!debug)
0ab30494bc4f3b Maxim Levitsky 2013-09-11 153 return 0;
0ab30494bc4f3b Maxim Levitsky 2013-09-11 154
0ab30494bc4f3b Maxim Levitsky 2013-09-11 155 for (i = 0; i < msb->zone_count; i++)
0ab30494bc4f3b Maxim Levitsky 2013-09-11 156 total_free_blocks += msb->free_block_count[i];
0ab30494bc4f3b Maxim Levitsky 2013-09-11 157
feaa500586b1f9 Yury Norov 2021-12-07 158 if (bitmap_weight_eq(msb->used_blocks_bitmap, msb->block_count,
feaa500586b1f9 Yury Norov 2021-12-07 159 msb->block_count - total_free_blocks)
0ab30494bc4f3b Maxim Levitsky 2013-09-11 @160 return 0;
0ab30494bc4f3b Maxim Levitsky 2013-09-11 161
0ab30494bc4f3b Maxim Levitsky 2013-09-11 162 pr_err("BUG: free block counts don't match the bitmap");
0ab30494bc4f3b Maxim Levitsky 2013-09-11 163 msb->read_only = true;
0ab30494bc4f3b Maxim Levitsky 2013-09-11 164 return -EINVAL;
0ab30494bc4f3b Maxim Levitsky 2013-09-11 165 }
0ab30494bc4f3b Maxim Levitsky 2013-09-11 166
:::::: The code at line 160 was first introduced by commit
:::::: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 memstick: add support for legacy memorysticks
:::::: TO: Maxim Levitsky <maximlevitsky(a)gmail.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[tobetter:odroid-5.16.y 20/75] drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.16.y
head: 04f296b5f991198f16f76ba15a23e9e00e30aac4
commit: 6720769118c835b66f65eb40c2d476fd615d9549 [20/75] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access
config: hexagon-randconfig-r021-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090524.JyN1VmD0-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/tobetter/linux/commit/6720769118c835b66f65eb40c2d476fd...
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.16.y
git checkout 6720769118c835b66f65eb40c2d476fd615d9549
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/char/
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 >>):
>> drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot' [-Werror,-Wimplicit-function-declaration]
vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
^
>> drivers/char/exynos-gpiomem.c:121:20: error: assigning to 'pgprot_t' from incompatible type 'int'
vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/phys_mem_access_prot +121 drivers/char/exynos-gpiomem.c
106
107 static int exynos_gpiomem_mmap(struct file *file, struct vm_area_struct *vma)
108 {
109 int gpio_area = 0;
110
111 while (gpio_area < inst->gpio_area_count) {
112 if ((inst->gpio_regs_phys[gpio_area] >> PAGE_SHIFT) == vma->vm_pgoff)
113 goto found;
114
115 gpio_area++;
116 }
117
118 return -EACCES;
119
120 found:
> 121 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
122 PAGE_SIZE,
123 vma->vm_page_prot);
124
125 vma->vm_ops = &exynos_gpiomem_vm_ops;
126
127 if (remap_pfn_range(vma, vma->vm_start,
128 vma->vm_pgoff,
129 PAGE_SIZE,
130 vma->vm_page_prot)) {
131 return -EAGAIN;
132 }
133
134 return 0;
135 }
136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH v3 09/18] tcp: ipv6: Add AO signing for tcp_v6_send_response
by kernel test robot
Hi Leonard,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 1fe5b01262844be03de98afdd56d1d393df04d7e]
url: https://github.com/0day-ci/linux/commits/Leonard-Crestez/tcp-Initial-supp...
base: 1fe5b01262844be03de98afdd56d1d393df04d7e
config: openrisc-randconfig-r014-20211208 (https://download.01.org/0day-ci/archive/20211209/202112090528.v4sYAZMH-lk...)
compiler: or1k-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/c40d052f30af7bd56b0803412e4f39153...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20211208-194125
git checkout c40d052f30af7bd56b0803412e4f391532253116
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash net/ipv4/ net/ipv6/
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 >>):
net/ipv6/tcp_ipv6.c: In function 'tcp_v6_send_response':
>> net/ipv6/tcp_ipv6.c:931:66: warning: parameter 'key' set but not used [-Wunused-but-set-parameter]
931 | int oif, struct tcp_md5sig_key *key, int rst,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
vim +/key +931 net/ipv6/tcp_ipv6.c
c40d052f30af7b Leonard Crestez 2021-12-08 928
a00e74442bac5a Eric Dumazet 2015-09-29 929 static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32 seq,
0f85feae6b710c Eric Dumazet 2014-12-09 930 u32 ack, u32 win, u32 tsval, u32 tsecr,
0f85feae6b710c Eric Dumazet 2014-12-09 @931 int oif, struct tcp_md5sig_key *key, int rst,
e9a5dceee56cb5 Eric Dumazet 2019-09-24 932 u8 tclass, __be32 label, u32 priority)
^1da177e4c3f41 Linus Torvalds 2005-04-16 933 {
cf533ea53ebfae Eric Dumazet 2011-10-21 934 const struct tcphdr *th = tcp_hdr(skb);
cf533ea53ebfae Eric Dumazet 2011-10-21 935 struct tcphdr *t1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 936 struct sk_buff *buff;
4c9483b2fb5d25 David S. Miller 2011-03-12 937 struct flowi6 fl6;
0f85feae6b710c Eric Dumazet 2014-12-09 938 struct net *net = sk ? sock_net(sk) : dev_net(skb_dst(skb)->dev);
e504799276e530 Daniel Lezcano 2008-03-07 939 struct sock *ctl_sk = net->ipv6.tcp_sk;
77c676da1b717e Ilpo Järvinen 2008-10-09 940 unsigned int tot_len = sizeof(struct tcphdr);
dc87efdb1a5cd4 Florian Westphal 2021-04-01 941 __be32 mrst = 0, *topt;
adf30907d63893 Eric Dumazet 2009-06-02 942 struct dst_entry *dst;
00483690552c5f Jon Maxwell 2018-05-10 943 __u32 mark = 0;
c40d052f30af7b Leonard Crestez 2021-12-08 944 #ifdef CONFIG_TCP_AUTHOPT
c40d052f30af7b Leonard Crestez 2021-12-08 945 struct tcp_authopt_info *aoinfo;
c40d052f30af7b Leonard Crestez 2021-12-08 946 struct tcp_authopt_key_info *aokey;
c40d052f30af7b Leonard Crestez 2021-12-08 947 u8 aornextkeyid;
c40d052f30af7b Leonard Crestez 2021-12-08 948 int aolen;
c40d052f30af7b Leonard Crestez 2021-12-08 949 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 950
ee684b6f283004 Andrey Vagin 2013-02-11 951 if (tsecr)
626e264dd1989b Ilpo Järvinen 2008-10-09 952 tot_len += TCPOLEN_TSTAMP_ALIGNED;
c40d052f30af7b Leonard Crestez 2021-12-08 953 #ifdef CONFIG_TCP_AUTHOPT
c40d052f30af7b Leonard Crestez 2021-12-08 954 /* Key lookup before SKB allocation */
c40d052f30af7b Leonard Crestez 2021-12-08 955 aolen = tcp_v6_send_response_init_authopt(sk, &aoinfo, &aokey, &aornextkeyid);
c40d052f30af7b Leonard Crestez 2021-12-08 956 if (aolen) {
c40d052f30af7b Leonard Crestez 2021-12-08 957 tot_len += aolen;
c40d052f30af7b Leonard Crestez 2021-12-08 958 /* Don't use MD5 */
c40d052f30af7b Leonard Crestez 2021-12-08 959 key = NULL;
c40d052f30af7b Leonard Crestez 2021-12-08 960 }
c40d052f30af7b Leonard Crestez 2021-12-08 961 #endif
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 962 #ifdef CONFIG_TCP_MD5SIG
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 963 if (key)
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 964 tot_len += TCPOLEN_MD5SIG_ALIGNED;
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 965 #endif
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 966
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks