Re: [PATCH v3 2/2] hwmon: (nct6775) Support access via Asus WMI
by kernel test robot
Hi Denis,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on v5.14 next-20210910]
[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/Denis-Pauk/hwmon-nct6775-Support...
base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: ia64-randconfig-r024-20210912 (attached as .config)
compiler: ia64-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/5b6bc5cd3f9d089d5a31a391a7cd61350...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Denis-Pauk/hwmon-nct6775-Support-access-via-Asus-WMI/20210912-190749
git checkout 5b6bc5cd3f9d089d5a31a391a7cd61350fffc073
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64
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/hwmon/nct6775.c: In function 'asuswmi_evaluate_method':
>> drivers/hwmon/nct6775.c:168:18: error: implicit declaration of function 'wmi_evaluate_method'; did you mean 'wmidev_evaluate_method'? [-Werror=implicit-function-declaration]
168 | status = wmi_evaluate_method(ASUSWMI_MGMT2_GUID, 0, method_id,
| ^~~~~~~~~~~~~~~~~~~
| wmidev_evaluate_method
cc1: some warnings being treated as errors
vim +168 drivers/hwmon/nct6775.c
158
159 static int asuswmi_evaluate_method(u32 method_id, u8 bank, u8 reg, u8 val, u32 *retval)
160 {
161 u32 args = bank | (reg << 8) | (val << 16);
162 struct acpi_buffer input = { (acpi_size) sizeof(args), &args };
163 struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL };
164 acpi_status status;
165 union acpi_object *obj;
166 u32 tmp = 0;
167
> 168 status = wmi_evaluate_method(ASUSWMI_MGMT2_GUID, 0, method_id,
169 &input, &output);
170
171 if (ACPI_FAILURE(status))
172 return -EIO;
173
174 obj = output.pointer;
175 if (obj && obj->type == ACPI_TYPE_INTEGER)
176 tmp = obj->integer.value;
177
178 if (retval)
179 *retval = tmp;
180
181 kfree(obj);
182
183 if (tmp == ASUSWMI_UNSUPPORTED_METHOD)
184 return -ENODEV;
185 return 0;
186 }
187
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[ipsec:testing 1/2] include/linux/compiler_types.h:328:38: error: call to '__compiletime_assert_633' declared with attribute error: BUILD_BUG_ON failed: XFRM_MSG_MAX != XFRM_MSG_MAPPING
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git testing
head: f693aa9c98e4e3347930f928c123bb2460317fe0
commit: 56e47fcb5c6150e22c5a591833d67c3ae7a4e9be [1/2] include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage
config: x86_64-randconfig-a005-20210908 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git/commit...
git remote add ipsec https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git
git fetch --no-tags ipsec testing
git checkout 56e47fcb5c6150e22c5a591833d67c3ae7a4e9be
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:
security/selinux/nlmsgtab.c: In function 'selinux_nlmsg_lookup':
>> include/linux/compiler_types.h:328:38: error: call to '__compiletime_assert_633' declared with attribute error: BUILD_BUG_ON failed: XFRM_MSG_MAX != XFRM_MSG_MAPPING
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:309:4: note: in definition of macro '__compiletime_assert'
309 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
security/selinux/nlmsgtab.c:192:3: note: in expansion of macro 'BUILD_BUG_ON'
192 | BUILD_BUG_ON(XFRM_MSG_MAX != XFRM_MSG_MAPPING);
| ^~~~~~~~~~~~
vim +/__compiletime_assert_633 +328 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 321 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 322 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 323 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 324 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 325 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 326 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 327 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @328 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 329
:::::: The code at line 328 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [PATCH v3 05/16] ASoC: add Rich Graph Card driver
by kernel test robot
Hi Kuninori,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on asoc/for-next]
[also build test ERROR on sound/for-next v5.14 next-20210910]
[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/Kuninori-Morimoto/ASoC-Add-Rich-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: i386-randconfig-r005-20210912 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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/b5ce49ac5dc76b68460729e0ec976c7f7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kuninori-Morimoto/ASoC-Add-Rich-Graph-Card-support/20210910-092924
git checkout b5ce49ac5dc76b68460729e0ec976c7f7ad870cf
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=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 >>):
>> sound/soc/generic/rich-graph-card.c:511:10: error: label at end of compound statement: expected statement
default:
^
;
1 error generated.
vim +511 sound/soc/generic/rich-graph-card.c
491
492 static int graph_count(struct asoc_simple_priv *priv,
493 struct graph_custom_hooks *hooks,
494 enum graph_type gtype,
495 struct device_node *lnk,
496 struct link_info *li)
497 {
498 struct device *dev = simple_priv_to_dev(priv);
499 GRAPH_CUSTOM func = NULL;
500 int ret = -EINVAL;
501
502 if (li->link >= SNDRV_MAX_LINKS) {
503 dev_err(dev, "too many links\n");
504 return ret;
505 }
506
507 switch (gtype) {
508 case GRAPH_NORMAL:
509 func = graph_count_normal;
510 break;
> 511 default:
512 }
513
514 if (!func) {
515 dev_err(dev, "non supported gtype (%d)\n", gtype);
516 goto err;
517 }
518
519 ret = func(priv, lnk, li);
520 if (ret < 0)
521 goto err;
522
523 li->link++;
524 err:
525 return ret;
526 }
527
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[intel-tdx:guest 55/127] include/linux/compiler_types.h:328:38: error: call to '__compiletime_assert_230' declared with attribute error: Need native word sized stores/loads for atomicity.
by kernel test robot
tree: https://github.com/intel/tdx.git guest
head: 3e3ee9731488f58ed27a7ec4ce674f602de44e73
commit: e9464906e1a3feb753ec5169ea0d153bf86f842e [55/127] x86/acpi, x86/boot: Add multiprocessor wake-up support
config: i386-randconfig-c021-20210912 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/e9464906e1a3feb753ec5169ea0d153bf86f842e
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout e9464906e1a3feb753ec5169ea0d153bf86f842e
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=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 <command-line>:
arch/x86/kernel/acpi/boot.c: In function 'acpi_wakeup_cpu':
>> include/linux/compiler_types.h:328:38: error: call to '__compiletime_assert_230' declared with attribute error: Need native word sized stores/loads for atomicity.
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:309:4: note: in definition of macro '__compiletime_assert'
309 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:331:2: note: in expansion of macro 'compiletime_assert'
331 | compiletime_assert(__native_word(t), \
| ^~~~~~~~~~~~~~~~~~
arch/x86/include/asm/barrier.h:65:2: note: in expansion of macro 'compiletime_assert_atomic_type'
65 | compiletime_assert_atomic_type(*p); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/barrier.h:138:33: note: in expansion of macro '__smp_store_release'
138 | #define smp_store_release(p, v) __smp_store_release(p, v)
| ^~~~~~~~~~~~~~~~~~~
arch/x86/kernel/acpi/boot.c:366:2: note: in expansion of macro 'smp_store_release'
366 | smp_store_release(&acpi_mp_wake_mailbox->wakeup_vector, start_ip);
| ^~~~~~~~~~~~~~~~~
vim +/__compiletime_assert_230 +328 include/linux/compiler_types.h
eb5c2d4b45e3d2d Will Deacon 2020-07-21 314
eb5c2d4b45e3d2d Will Deacon 2020-07-21 315 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2d Will Deacon 2020-07-21 316 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2d Will Deacon 2020-07-21 317
eb5c2d4b45e3d2d Will Deacon 2020-07-21 318 /**
eb5c2d4b45e3d2d Will Deacon 2020-07-21 319 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2d Will Deacon 2020-07-21 320 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2d Will Deacon 2020-07-21 321 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2d Will Deacon 2020-07-21 322 *
eb5c2d4b45e3d2d Will Deacon 2020-07-21 323 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2d Will Deacon 2020-07-21 324 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2d Will Deacon 2020-07-21 325 * compiler has support to do so.
eb5c2d4b45e3d2d Will Deacon 2020-07-21 326 */
eb5c2d4b45e3d2d Will Deacon 2020-07-21 327 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2d Will Deacon 2020-07-21 @328 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2d Will Deacon 2020-07-21 329
:::::: The code at line 328 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[congwang:sch_bpf2 2/2] net/sched/sch_bpf.c:90:13: error: unused variable 'bpf_flags'
by kernel test robot
tree: https://github.com/congwang/linux.git sch_bpf2
head: 470563412d91de9179d50b7f311a39f1a46321ab
commit: 470563412d91de9179d50b7f311a39f1a46321ab [2/2] net_sched: introduce eBPF based Qdisc
config: arm-randconfig-r033-20210912 (attached as .config)
compiler: arm-linux-gnueabi-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/congwang/linux/commit/470563412d91de9179d50b7f311a39f1...
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sch_bpf2
git checkout 470563412d91de9179d50b7f311a39f1a46321ab
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm
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 >>):
net/sched/sch_bpf.c: In function 'sch_bpf_dump':
>> net/sched/sch_bpf.c:90:13: error: unused variable 'bpf_flags' [-Werror=unused-variable]
90 | u32 bpf_flags = 0;
| ^~~~~~~~~
net/sched/sch_bpf.c: In function 'sch_bpf_dump_class_stats':
>> net/sched/sch_bpf.c:535:31: error: unused variable 'q' [-Werror=unused-variable]
535 | struct sch_bpf_qdisc *q = qdisc_priv(sch);
| ^
cc1: all warnings being treated as errors
vim +/bpf_flags +90 net/sched/sch_bpf.c
85
86 static int sch_bpf_dump(struct Qdisc *sch, struct sk_buff *skb)
87 {
88 struct sch_bpf_qdisc *q = qdisc_priv(sch);
89 struct nlattr *opts;
> 90 u32 bpf_flags = 0;
91
92 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
93 if (!opts)
94 goto nla_put_failure;
95
96 if (nla_put_u32(skb, TCA_SCH_BPF_MODE, q->mode))
97 goto nla_put_failure;
98
99 if (sch_bpf_dump_prog(&q->enqueue_prog, skb, TCA_SCH_BPF_ENQUEUE_PROG_NAME,
100 TCA_SCH_BPF_ENQUEUE_PROG_ID, TCA_SCH_BPF_ENQUEUE_PROG_TAG))
101 goto nla_put_failure;
102 if (sch_bpf_dump_prog(&q->dequeue_prog, skb, TCA_SCH_BPF_DEQUEUE_PROG_NAME,
103 TCA_SCH_BPF_DEQUEUE_PROG_ID, TCA_SCH_BPF_DEQUEUE_PROG_TAG))
104 goto nla_put_failure;
105
106 return nla_nest_end(skb, opts);
107
108 nla_put_failure:
109 return -1;
110 }
111
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
arch/powerpc/mm/mem.c:53:12: error: no previous prototype for 'create_section_mapping'
by kernel test robot
Hi Christophe,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 78e709522d2c012cb0daad2e668506637bffb7c2
commit: b26e8f27253a47bff90972b987112fd8396e9b8d powerpc/mem: Move cache flushing functions into mm/cacheflush.c
date: 5 months ago
config: powerpc-randconfig-s032-20210912 (attached as .config)
compiler: powerpc64-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://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 b26e8f27253a47bff90972b987112fd8396e9b8d
# 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=powerpc
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 >>):
>> arch/powerpc/mm/mem.c:53:12: error: no previous prototype for 'create_section_mapping' [-Werror=missing-prototypes]
53 | int __weak create_section_mapping(unsigned long start, unsigned long end,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/create_section_mapping +53 arch/powerpc/mm/mem.c
bc02af93dd2bbd Yasunori Goto 2006-06-27 52
4e00c5affdd4b0 Logan Gunthorpe 2020-04-10 @53 int __weak create_section_mapping(unsigned long start, unsigned long end,
4e00c5affdd4b0 Logan Gunthorpe 2020-04-10 54 int nid, pgprot_t prot)
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 55 {
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 56 return -ENODEV;
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 57 }
fecbfabe1dc940 Benjamin Herrenschmidt 2016-07-05 58
:::::: The code at line 53 was first introduced by commit
:::::: 4e00c5affdd4b04e6392001716333971932f3d0c powerpc/mm: thread pgprot_t through create_section_mapping()
:::::: TO: Logan Gunthorpe <logang(a)deltatee.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
1 year
Re: [PATCH] mac80211_hwsim: enable 6GHz channels
by kernel test robot
Hi Ramon,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mac80211-next/master]
[also build test WARNING on mac80211/master linux/master linus/master v5.14 next-20210910]
[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/Ramon-Fontes/mac80211_hwsim-enab...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
config: i386-randconfig-s002-20210912 (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/61f607d25097df8c64fc1a21b0375f69a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ramon-Fontes/mac80211_hwsim-enable-6GHz-channels/20210907-015533
git checkout 61f607d25097df8c64fc1a21b0375f69a1a38e94
# 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 >>)
>> drivers/net/wireless/mac80211_hwsim.c:3000:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] capa @@ got int @@
drivers/net/wireless/mac80211_hwsim.c:3000:70: sparse: expected restricted __le16 [usertype] capa
drivers/net/wireless/mac80211_hwsim.c:3000:70: sparse: got int
drivers/net/wireless/mac80211_hwsim.c:3058:70: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] capa @@ got int @@
drivers/net/wireless/mac80211_hwsim.c:3058:70: sparse: expected restricted __le16 [usertype] capa
drivers/net/wireless/mac80211_hwsim.c:3058:70: sparse: got int
vim +3000 drivers/net/wireless/mac80211_hwsim.c
2990
2991 static const struct ieee80211_sband_iftype_data he_capa_6ghz[] = {
2992 {
2993 /* TODO: should we support other types, e.g., P2P?*/
2994 .types_mask = BIT(NL80211_IFTYPE_STATION) |
2995 BIT(NL80211_IFTYPE_AP),
2996 .he_6ghz_capa = {
2997 .capa = IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START |
2998 IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP |
2999 IEEE80211_HE_6GHZ_CAP_MAX_MPDU_LEN |
> 3000 IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS |
3001 IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS,
3002 },
3003 .he_cap = {
3004 .has_he = true,
3005 .he_cap_elem = {
3006 .mac_cap_info[0] =
3007 IEEE80211_HE_MAC_CAP0_HTC_HE,
3008 .mac_cap_info[1] =
3009 IEEE80211_HE_MAC_CAP1_TF_MAC_PAD_DUR_16US |
3010 IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_8,
3011 .mac_cap_info[2] =
3012 IEEE80211_HE_MAC_CAP2_BSR |
3013 IEEE80211_HE_MAC_CAP2_MU_CASCADING |
3014 IEEE80211_HE_MAC_CAP2_ACK_EN,
3015 .mac_cap_info[3] =
3016 IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
3017 IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_3,
3018 .mac_cap_info[4] = IEEE80211_HE_MAC_CAP4_AMSDU_IN_AMPDU,
3019 .phy_cap_info[0] =
3020 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G |
3021 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G |
3022 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_80PLUS80_MHZ_IN_5G,
3023 .phy_cap_info[1] =
3024 IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_MASK |
3025 IEEE80211_HE_PHY_CAP1_DEVICE_CLASS_A |
3026 IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD |
3027 IEEE80211_HE_PHY_CAP1_MIDAMBLE_RX_TX_MAX_NSTS,
3028 .phy_cap_info[2] =
3029 IEEE80211_HE_PHY_CAP2_NDP_4x_LTF_AND_3_2US |
3030 IEEE80211_HE_PHY_CAP2_STBC_TX_UNDER_80MHZ |
3031 IEEE80211_HE_PHY_CAP2_STBC_RX_UNDER_80MHZ |
3032 IEEE80211_HE_PHY_CAP2_UL_MU_FULL_MU_MIMO |
3033 IEEE80211_HE_PHY_CAP2_UL_MU_PARTIAL_MU_MIMO,
3034
3035 /* Leave all the other PHY capability bytes
3036 * unset, as DCM, beam forming, RU and PPE
3037 * threshold information are not supported
3038 */
3039 },
3040 .he_mcs_nss_supp = {
3041 .rx_mcs_80 = cpu_to_le16(0xfffa),
3042 .tx_mcs_80 = cpu_to_le16(0xfffa),
3043 .rx_mcs_160 = cpu_to_le16(0xfffa),
3044 .tx_mcs_160 = cpu_to_le16(0xfffa),
3045 .rx_mcs_80p80 = cpu_to_le16(0xfffa),
3046 .tx_mcs_80p80 = cpu_to_le16(0xfffa),
3047 },
3048 },
3049 },
3050 #ifdef CONFIG_MAC80211_MESH
3051 {
3052 /* TODO: should we support other types, e.g., IBSS?*/
3053 .types_mask = BIT(NL80211_IFTYPE_MESH_POINT),
3054 .he_6ghz_capa = {
3055 .capa = IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START |
3056 IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP |
3057 IEEE80211_HE_6GHZ_CAP_MAX_MPDU_LEN |
3058 IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS |
3059 IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS,
3060 },
3061 .he_cap = {
3062 .has_he = true,
3063 .he_cap_elem = {
3064 .mac_cap_info[0] =
3065 IEEE80211_HE_MAC_CAP0_HTC_HE,
3066 .mac_cap_info[1] =
3067 IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_8,
3068 .mac_cap_info[2] =
3069 IEEE80211_HE_MAC_CAP2_ACK_EN,
3070 .mac_cap_info[3] =
3071 IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
3072 IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_3,
3073 .mac_cap_info[4] = IEEE80211_HE_MAC_CAP4_AMSDU_IN_AMPDU,
3074 .phy_cap_info[0] =
3075 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G |
3076 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G |
3077 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_80PLUS80_MHZ_IN_5G,
3078 .phy_cap_info[1] =
3079 IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_MASK |
3080 IEEE80211_HE_PHY_CAP1_DEVICE_CLASS_A |
3081 IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD |
3082 IEEE80211_HE_PHY_CAP1_MIDAMBLE_RX_TX_MAX_NSTS,
3083 .phy_cap_info[2] = 0,
3084
3085 /* Leave all the other PHY capability bytes
3086 * unset, as DCM, beam forming, RU and PPE
3087 * threshold information are not supported
3088 */
3089 },
3090 .he_mcs_nss_supp = {
3091 .rx_mcs_80 = cpu_to_le16(0xfffa),
3092 .tx_mcs_80 = cpu_to_le16(0xfffa),
3093 .rx_mcs_160 = cpu_to_le16(0xfffa),
3094 .tx_mcs_160 = cpu_to_le16(0xfffa),
3095 .rx_mcs_80p80 = cpu_to_le16(0xfffa),
3096 .tx_mcs_80p80 = cpu_to_le16(0xfffa),
3097 },
3098 },
3099 },
3100 #endif
3101 };
3102
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[hch-block:blkdev.h-includes 2/17] fs/f2fs/compress.c:562:33: error: expected ')' before 'uint'
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git blkdev.h-includes
head: 03cf53fd6d35d1ca10aea68ddadbe896f6405f3f
commit: da5bae30b9c382a015b31a976c5622ecdd98af30 [2/17] mm: don't include <linux/blk-cgroup.h> in <linux/backing-dev.h>
config: x86_64-randconfig-a012-20210912 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block blkdev.h-includes
git checkout da5bae30b9c382a015b31a976c5622ecdd98af30
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/f2fs/
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 >>):
>> fs/f2fs/compress.c:562:33: error: expected ')' before 'uint'
562 | module_param(num_compress_pages, uint, 0444);
| ^~~~~
| )
>> fs/f2fs/compress.c:563:37: error: expected ')' before string constant
563 | MODULE_PARM_DESC(num_compress_pages,
| ^
| )
564 | "Number of intermediate compress pages to preallocate");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +562 fs/f2fs/compress.c
4c8ff7095bef64 Chao Yu 2019-11-01 559
99bbe307013059 Jaegeuk Kim 2020-06-16 560 static mempool_t *compress_page_pool;
5e6bbde9598230 Chao Yu 2020-04-08 561 static int num_compress_pages = 512;
5e6bbde9598230 Chao Yu 2020-04-08 @562 module_param(num_compress_pages, uint, 0444);
5e6bbde9598230 Chao Yu 2020-04-08 @563 MODULE_PARM_DESC(num_compress_pages,
5e6bbde9598230 Chao Yu 2020-04-08 564 "Number of intermediate compress pages to preallocate");
5e6bbde9598230 Chao Yu 2020-04-08 565
:::::: The code at line 562 was first introduced by commit
:::::: 5e6bbde95982300d66d78fb282d4ee39df78fc33 f2fs: introduce mempool for {,de}compress intermediate page allocation
:::::: TO: Chao Yu <yuchao0(a)huawei.com>
:::::: CC: Jaegeuk Kim <jaegeuk(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [PATCH v3 08/16] ASoC: rich-graph-card: add Codec2Codec support
by kernel test robot
Hi Kuninori,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on sound/for-next v5.14 next-20210910]
[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/Kuninori-Morimoto/ASoC-Add-Rich-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: i386-randconfig-r005-20210912 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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/75094c7c873a758d2196b5867d930669a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kuninori-Morimoto/ASoC-Add-Rich-Graph-Card-support/20210910-092924
git checkout 75094c7c873a758d2196b5867d930669a15d2e20
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 >>):
>> sound/soc/generic/rich-graph-card.c:879:6: warning: variable 'ep0' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (!of_get_property(ports, "rate", &val)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/rich-graph-card.c:920:14: note: uninitialized use occurs here
of_node_put(ep0);
^~~
sound/soc/generic/rich-graph-card.c:879:2: note: remove the 'if' if its condition is always false
if (!of_get_property(ports, "rate", &val)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/rich-graph-card.c:854:25: note: initialize the variable 'ep0' to silence this warning
struct device_node *ep0, *ep1;
^
= NULL
>> sound/soc/generic/rich-graph-card.c:879:6: warning: variable 'ep1' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (!of_get_property(ports, "rate", &val)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/rich-graph-card.c:921:14: note: uninitialized use occurs here
of_node_put(ep1);
^~~
sound/soc/generic/rich-graph-card.c:879:2: note: remove the 'if' if its condition is always false
if (!of_get_property(ports, "rate", &val)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/rich-graph-card.c:854:31: note: initialize the variable 'ep1' to silence this warning
struct device_node *ep0, *ep1;
^
= NULL
sound/soc/generic/rich-graph-card.c:1119:10: error: label at end of compound statement: expected statement
default:
^
;
2 warnings and 1 error generated.
vim +879 sound/soc/generic/rich-graph-card.c
844
845 int rich_graph_link_c2c(struct asoc_simple_priv *priv,
846 struct device_node *lnk,
847 struct link_info *li)
848 {
849 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
850 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
851 struct snd_soc_pcm_stream *c2c_conf = dai_props->c2c_conf;
852 struct device_node *port0, *port1, *ports;
853 struct device_node *codec0_port, *codec1_port;
854 struct device_node *ep0, *ep1;
855 u32 val;
856 int ret = -EINVAL;
857
858 /*
859 * codec2codec {
860 * ports {
861 * rate = <48000>;
862 * => lnk: port@0 { c2c0_ep: { ... = codec0_ep; }; };
863 * port@1 { c2c1_ep: { ... = codec1_ep; }; };
864 * };
865 * };
866 *
867 * Codec {
868 * ports {
869 * port@0 { codec0_ep: ... }; };
870 * port@1 { codec1_ep: ... }; };
871 * };
872 * };
873 */
874 of_node_get(lnk);
875 port0 = lnk;
876 ports = of_get_parent(port0);
877 port1 = of_get_next_child(ports, lnk);
878
> 879 if (!of_get_property(ports, "rate", &val)) {
880 struct device *dev = simple_priv_to_dev(priv);
881
882 dev_err(dev, "Codec2Codec needs rate settings\n");
883 goto err;
884 }
885
886 c2c_conf->formats = SNDRV_PCM_FMTBIT_S32_LE; /* update ME */
887 c2c_conf->rate_min =
888 c2c_conf->rate_max = val;
889 c2c_conf->channels_min =
890 c2c_conf->channels_max = 2; /* update ME */
891 dai_link->params = c2c_conf;
892
893 ep0 = port_to_endpoint(port0);
894 ep1 = port_to_endpoint(port1);
895
896 codec0_port = of_graph_get_remote_port(ep0);
897 codec1_port = of_graph_get_remote_port(ep1);
898
899 /*
900 * call Codec first.
901 * see
902 * __graph_parse_node() :: DAI Naming
903 */
904 ret = graph_parse_node(priv, GRAPH_C2C, codec1_port, li, 0);
905 if (ret < 0)
906 goto err;
907
908 /*
909 * call CPU, and set DAI Name
910 */
911 ret = graph_parse_node(priv, GRAPH_C2C, codec0_port, li, 1);
912 if (ret < 0)
913 goto err;
914
915 graph_link_init(priv, codec0_port, li, 1);
916 err:
917 of_node_put(ports);
918 of_node_put(port0);
919 of_node_put(port1);
920 of_node_put(ep0);
921 of_node_put(ep1);
922
923 return ret;
924 }
925 EXPORT_SYMBOL_GPL(rich_graph_link_c2c);
926
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [PATCH v12] asus-wmi: Add support for custom fan curves
by kernel test robot
Hi "Luke,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on next-20210910]
[cannot apply to linux/master v5.14]
[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/Luke-D-Jones/asus-wmi-Add-suppor...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c605c39677b9842b0566013e0cf30bc13e90bdbc
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/2142349dddbba87624d073f580614b46b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Luke-D-Jones/asus-wmi-Add-support-for-custom-fan-curves/20210912-094248
git checkout 2142349dddbba87624d073f580614b46b2e8fb74
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=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 >>):
drivers/platform/x86/asus-wmi.c: In function 'fan_curve_store':
>> drivers/platform/x86/asus-wmi.c:2346:3: error: 'old_value' undeclared (first use in this function); did you mean 'si_value'?
2346 | old_value = data->percents[index];
| ^~~~~~~~~
| si_value
drivers/platform/x86/asus-wmi.c:2346:3: note: each undeclared identifier is reported only once for each function it appears in
vim +2346 drivers/platform/x86/asus-wmi.c
2325
2326 static ssize_t fan_curve_store(struct device *dev,
2327 struct device_attribute *attr, const char *buf,
2328 size_t count)
2329 {
2330 struct asus_wmi *asus = dev_get_drvdata(dev);
2331 struct fan_curve_data *data;
2332 u8 value;
2333 int err;
2334
2335 int index = to_sensor_dev_attr_2(attr)->index;
2336 int nr = to_sensor_dev_attr_2(attr)->nr;
2337 int pwm = nr & FAN_CURVE_PWM_MASK;
2338
2339 data = fan_curve_data_select(asus, attr);
2340
2341 err = kstrtou8(buf, 10, &value);
2342 if (err < 0)
2343 return err;
2344
2345 if (pwm) {
> 2346 old_value = data->percents[index];
2347 data->percents[index] = value;
2348 } else {
2349 old_value = data->temps[index];
2350 data->temps[index] = value;
2351 }
2352
2353 /*
2354 * Mark as disabled so the user has to explicitly enable to apply a
2355 * changed fan curve. This prevents potential lockups from writing out
2356 * many changes as one-write-per-change.
2357 */
2358 data->enabled = false;
2359
2360 return count;
2361 }
2362
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year