[kbuild] Re: [PATCH v9 1/3] bluetooth: msft: Handle MSFT Monitor Device Event
by Dan Carpenter
Hi Manish,
url: https://github.com/0day-ci/linux/commits/Manish-Mandlik/bluetooth-msft-Ha...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: i386-randconfig-m021-20211216 (https://download.01.org/0day-ci/archive/20211217/202112171439.KaggScQN-lk... )
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
net/bluetooth/msft.c:757 msft_vendor_evt() warn: inconsistent returns '&hdev->lock'.
vim +757 net/bluetooth/msft.c
3e54c5890c87a30 Luiz Augusto von Dentz 2021-12-01 714 void msft_vendor_evt(struct hci_dev *hdev, void *data, struct sk_buff *skb)
145373cb1b1fcdb Miao-chen Chou 2020-04-03 715 {
145373cb1b1fcdb Miao-chen Chou 2020-04-03 716 struct msft_data *msft = hdev->msft_data;
e5af6a85decc8c1 Manish Mandlik 2021-12-16 717 u8 *evt_prefix;
e5af6a85decc8c1 Manish Mandlik 2021-12-16 718 u8 *evt;
145373cb1b1fcdb Miao-chen Chou 2020-04-03 719
145373cb1b1fcdb Miao-chen Chou 2020-04-03 720 if (!msft)
145373cb1b1fcdb Miao-chen Chou 2020-04-03 721 return;
145373cb1b1fcdb Miao-chen Chou 2020-04-03 722
145373cb1b1fcdb Miao-chen Chou 2020-04-03 723 /* When the extension has defined an event prefix, check that it
145373cb1b1fcdb Miao-chen Chou 2020-04-03 724 * matches, and otherwise just return.
145373cb1b1fcdb Miao-chen Chou 2020-04-03 725 */
145373cb1b1fcdb Miao-chen Chou 2020-04-03 726 if (msft->evt_prefix_len > 0) {
e5af6a85decc8c1 Manish Mandlik 2021-12-16 727 evt_prefix = msft_skb_pull(hdev, skb, 0, msft->evt_prefix_len);
e5af6a85decc8c1 Manish Mandlik 2021-12-16 728 if (!evt_prefix)
145373cb1b1fcdb Miao-chen Chou 2020-04-03 729 return;
145373cb1b1fcdb Miao-chen Chou 2020-04-03 730
e5af6a85decc8c1 Manish Mandlik 2021-12-16 731 if (memcmp(evt_prefix, msft->evt_prefix, msft->evt_prefix_len))
145373cb1b1fcdb Miao-chen Chou 2020-04-03 732 return;
145373cb1b1fcdb Miao-chen Chou 2020-04-03 733 }
145373cb1b1fcdb Miao-chen Chou 2020-04-03 734
145373cb1b1fcdb Miao-chen Chou 2020-04-03 735 /* Every event starts at least with an event code and the rest of
145373cb1b1fcdb Miao-chen Chou 2020-04-03 736 * the data is variable and depends on the event code.
145373cb1b1fcdb Miao-chen Chou 2020-04-03 737 */
145373cb1b1fcdb Miao-chen Chou 2020-04-03 738 if (skb->len < 1)
145373cb1b1fcdb Miao-chen Chou 2020-04-03 739 return;
145373cb1b1fcdb Miao-chen Chou 2020-04-03 740
e5af6a85decc8c1 Manish Mandlik 2021-12-16 741 hci_dev_lock(hdev);
145373cb1b1fcdb Miao-chen Chou 2020-04-03 742
e5af6a85decc8c1 Manish Mandlik 2021-12-16 743 evt = msft_skb_pull(hdev, skb, 0, sizeof(*evt));
e5af6a85decc8c1 Manish Mandlik 2021-12-16 744 if (!evt)
e5af6a85decc8c1 Manish Mandlik 2021-12-16 745 return;
Missing hci_dev_unlock(hdev);
e5af6a85decc8c1 Manish Mandlik 2021-12-16 746
e5af6a85decc8c1 Manish Mandlik 2021-12-16 747 switch (*evt) {
e5af6a85decc8c1 Manish Mandlik 2021-12-16 748 case MSFT_EV_LE_MONITOR_DEVICE:
e5af6a85decc8c1 Manish Mandlik 2021-12-16 749 msft_monitor_device_evt(hdev, skb);
e5af6a85decc8c1 Manish Mandlik 2021-12-16 750 break;
e5af6a85decc8c1 Manish Mandlik 2021-12-16 751
e5af6a85decc8c1 Manish Mandlik 2021-12-16 752 default:
e5af6a85decc8c1 Manish Mandlik 2021-12-16 753 bt_dev_dbg(hdev, "MSFT vendor event 0x%02x", *evt);
e5af6a85decc8c1 Manish Mandlik 2021-12-16 754 break;
e5af6a85decc8c1 Manish Mandlik 2021-12-16 755 }
e5af6a85decc8c1 Manish Mandlik 2021-12-16 756
e5af6a85decc8c1 Manish Mandlik 2021-12-16 @757 hci_dev_unlock(hdev);
145373cb1b1fcdb Miao-chen Chou 2020-04-03 758 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
4 months, 2 weeks
Re: [PATCH v2 5/5] clk: qcom: lpass: Add support for LPASS clock controller for SC7280
by kernel test robot
Hi Taniya,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on robh/for-next linus/master v5.16-rc6 next-20211220]
[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/Taniya-Das/Add-support-for-LPASS...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20211221/202112210805.wI87zJw0-lk...)
compiler: hppa-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/fec640fab5ec498e79475ecd4b15bc950...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Taniya-Das/Add-support-for-LPASS-Core-and-Audio-Clock-for-SC7280/20211221-004818
git checkout fec640fab5ec498e79475ecd4b15bc95035a76b1
# 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=parisc SHELL=/bin/bash drivers/clk/qcom/
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/clk/qcom/lpassaudiocc-sc7280.c:39:9: warning: this decimal constant is unsigned only in ISO C90
39 | { 595200000, 3600000000, 0 },
| ^
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/of.h:14,
from include/linux/clk-provider.h:9,
from drivers/clk/qcom/lpassaudiocc-sc7280.c:6:
drivers/clk/qcom/lpassaudiocc-sc7280.c: In function 'lpass_audio_cc_sc7280_probe':
include/linux/stddef.h:8:14: error: called object is not a function or function pointer
8 | #define NULL ((void *)0)
| ^
include/linux/pm_clock.h:82:25: note: in expansion of macro 'NULL'
82 | #define pm_clk_suspend NULL
| ^~~~
drivers/clk/qcom/lpassaudiocc-sc7280.c:740:9: note: in expansion of macro 'pm_clk_suspend'
740 | pm_clk_suspend(&pdev->dev);
| ^~~~~~~~~~~~~~
drivers/clk/qcom/lpassaudiocc-sc7280.c: In function 'lpass_aon_cc_sc7280_probe':
include/linux/stddef.h:8:14: error: called object is not a function or function pointer
8 | #define NULL ((void *)0)
| ^
include/linux/pm_clock.h:82:25: note: in expansion of macro 'NULL'
82 | #define pm_clk_suspend NULL
| ^~~~
drivers/clk/qcom/lpassaudiocc-sc7280.c:798:9: note: in expansion of macro 'pm_clk_suspend'
798 | pm_clk_suspend(&pdev->dev);
| ^~~~~~~~~~~~~~
vim +39 drivers/clk/qcom/lpassaudiocc-sc7280.c
37
38 static const struct pll_vco zonda_vco[] = {
> 39 { 595200000, 3600000000, 0 },
40 };
41
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
4 months, 3 weeks
[PATCH] crypto: fix semicolon.cocci warnings
by kernel test robot
From: kernel test robot <lkp(a)intel.com>
drivers/crypto/ccp/sev-dev.c:263:2-3: Unneeded semicolon
Remove unneeded semicolon.
Generated by: scripts/coccinelle/misc/semicolon.cocci
Fixes: 3d725965f836 ("crypto: ccp - Add SEV_INIT_EX support")
CC: David Rientjes <rientjes(a)google.com>
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head: 696645d25bafd6ba3562611c29bc8ecd47066dfe
commit: 3d725965f836a7acbd1674e33644bec18373de53 [83/95] crypto: ccp - Add SEV_INIT_EX support
:::::: branch date: 31 hours ago
:::::: commit date: 31 hours ago
sev-dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/crypto/ccp/sev-dev.c
+++ b/drivers/crypto/ccp/sev-dev.c
@@ -260,7 +260,7 @@ static void sev_write_init_ex_file_if_re
break;
default:
return;
- };
+ }
sev_write_init_ex_file();
}
4 months, 3 weeks
[driver-core:debugfs_cleanup 4/5] fs/d_path.c:59 prepend() warn: unsigned 'p->len' is never less than zero.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head: a04bbe0a2c7e98669e11a47f94e53dd8228bbeba
commit: e95d5bed5d58c2f5352969369827e7135fa2261e [4/5] fs: make d_path-like functions all have unsigned size
config: i386-randconfig-m031-20211228 (https://download.01.org/0day-ci/archive/20220101/202201010156.bJvO7Gaw-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
fs/d_path.c:59 prepend() warn: unsigned 'p->len' is never less than zero.
vim +59 fs/d_path.c
b0cfcdd9b9672e Linus Torvalds 2021-07-16 55
b0cfcdd9b9672e Linus Torvalds 2021-07-16 56 static bool prepend(struct prepend_buffer *p, const char *str, int namelen)
b0cfcdd9b9672e Linus Torvalds 2021-07-16 57 {
b0cfcdd9b9672e Linus Torvalds 2021-07-16 58 // Already overflowed?
b0cfcdd9b9672e Linus Torvalds 2021-07-16 @59 if (p->len < 0)
b0cfcdd9b9672e Linus Torvalds 2021-07-16 60 return false;
b0cfcdd9b9672e Linus Torvalds 2021-07-16 61
b0cfcdd9b9672e Linus Torvalds 2021-07-16 62 // Will overflow?
b0cfcdd9b9672e Linus Torvalds 2021-07-16 63 if (p->len < namelen) {
b0cfcdd9b9672e Linus Torvalds 2021-07-16 64 // Fill as much as possible from the end of the name
b0cfcdd9b9672e Linus Torvalds 2021-07-16 65 str += namelen - p->len;
b0cfcdd9b9672e Linus Torvalds 2021-07-16 66 p->buf -= p->len;
b0cfcdd9b9672e Linus Torvalds 2021-07-16 67 prepend_copy(p->buf, str, p->len);
b0cfcdd9b9672e Linus Torvalds 2021-07-16 68 p->len = -1;
b0cfcdd9b9672e Linus Torvalds 2021-07-16 69 return false;
b0cfcdd9b9672e Linus Torvalds 2021-07-16 70 }
b0cfcdd9b9672e Linus Torvalds 2021-07-16 71
b0cfcdd9b9672e Linus Torvalds 2021-07-16 72 // Fits fully
ad08ae586586ea Al Viro 2021-05-12 73 p->len -= namelen;
ad08ae586586ea Al Viro 2021-05-12 74 p->buf -= namelen;
b0cfcdd9b9672e Linus Torvalds 2021-07-16 75 return prepend_copy(p->buf, str, namelen);
7a5cf791a74764 Al Viro 2018-03-05 76 }
7a5cf791a74764 Al Viro 2018-03-05 77
:::::: The code at line 59 was first introduced by commit
:::::: b0cfcdd9b9672ea90642f33d6c0dd8516553adf2 d_path: make 'prepend()' fill up the buffer exactly on overflow
:::::: TO: Linus Torvalds <torvalds(a)linux-foundation.org>
:::::: 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
4 months, 3 weeks
Re: [PATCH v6 2/2] Driver for ON Semi AR0521 camera sensor
by kernel test robot
Hi "Krzysztof,
I love your patch! Yet something to improve:
[auto build test ERROR on media-tree/master]
[also build test ERROR on linus/master v5.16-rc7 next-20211224]
[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/Krzysztof-Ha-asa/On-Semi-AR0521-...
base: git://linuxtv.org/media_tree.git master
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220101/202201010737.V5A5o9x5-lk...)
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/664482ab74a2331a7a7ead9256b0455cf...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Krzysztof-Ha-asa/On-Semi-AR0521-sensor-driver/20211223-150758
git checkout 664482ab74a2331a7a7ead9256b0455cfc3334c7
# save the config file 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 include/linux/device.h:25,
from include/linux/pm_runtime.h:11,
from drivers/media/i2c/ar0521.c:10:
>> drivers/media/i2c/ar0521.c:1029:21: error: initialization of 'int (*)(struct device *)' from incompatible pointer type 'void (*)(struct device *)' [-Werror=incompatible-pointer-types]
1029 | SET_RUNTIME_PM_OPS(ar0521_power_off, ar0521_power_on, NULL)
| ^~~~~~~~~~~~~~~~
include/linux/pm.h:341:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
341 | .runtime_suspend = suspend_fn, \
| ^~~~~~~~~~
drivers/media/i2c/ar0521.c:1029:21: note: (near initialization for 'ar0521_pm_ops.runtime_suspend')
1029 | SET_RUNTIME_PM_OPS(ar0521_power_off, ar0521_power_on, NULL)
| ^~~~~~~~~~~~~~~~
include/linux/pm.h:341:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
341 | .runtime_suspend = suspend_fn, \
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +1029 drivers/media/i2c/ar0521.c
1026
1027 static const struct dev_pm_ops ar0521_pm_ops = {
1028 SET_SYSTEM_SLEEP_PM_OPS(ar0521_suspend, ar0521_resume)
> 1029 SET_RUNTIME_PM_OPS(ar0521_power_off, ar0521_power_on, NULL)
1030 };
1031 static const struct of_device_id ar0521_dt_ids[] = {
1032 {.compatible = "onnn,ar0521"},
1033 {}
1034 };
1035 MODULE_DEVICE_TABLE(of, ar0521_dt_ids);
1036
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
4 months, 4 weeks
arch/arm64/kvm/hyp/nvhe/setup.c:133:17: warning: no previous prototype for '__pkvm_init_finalise'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1b4e3f26f9f7553b260b8aed43967500961448a6
commit: f320bc742bc23c1d43567712fe2814bf04b19ebc KVM: arm64: Prepare the creation of s1 mappings at EL2
date: 10 months ago
config: arm64-randconfig-r035-20211231 (https://download.01.org/0day-ci/archive/20220101/202201010637.S574BWhv-lk...)
compiler: aarch64-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/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 f320bc742bc23c1d43567712fe2814bf04b19ebc
# 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=arm64 SHELL=/bin/bash arch/arm64/kvm/ drivers/edac/
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 >>):
>> arch/arm64/kvm/hyp/nvhe/setup.c:133:17: warning: no previous prototype for '__pkvm_init_finalise' [-Wmissing-prototypes]
133 | void __noreturn __pkvm_init_finalise(void)
| ^~~~~~~~~~~~~~~~~~~~
vim +/__pkvm_init_finalise +133 arch/arm64/kvm/hyp/nvhe/setup.c
132
> 133 void __noreturn __pkvm_init_finalise(void)
134 {
135 struct kvm_host_data *host_data = this_cpu_ptr(&kvm_host_data);
136 struct kvm_cpu_context *host_ctxt = &host_data->host_ctxt;
137 unsigned long nr_pages, reserved_pages, pfn;
138 int ret;
139
140 /* Now that the vmemmap is backed, install the full-fledged allocator */
141 pfn = hyp_virt_to_pfn(hyp_pgt_base);
142 nr_pages = hyp_s1_pgtable_pages();
143 reserved_pages = hyp_early_alloc_nr_used_pages();
144 ret = hyp_pool_init(&hpool, pfn, nr_pages, reserved_pages);
145 if (ret)
146 goto out;
147
148 pkvm_pgtable_mm_ops = (struct kvm_pgtable_mm_ops) {
149 .zalloc_page = hyp_zalloc_hyp_page,
150 .phys_to_virt = hyp_phys_to_virt,
151 .virt_to_phys = hyp_virt_to_phys,
152 .get_page = hyp_get_page,
153 .put_page = hyp_put_page,
154 };
155 pkvm_pgtable.mm_ops = &pkvm_pgtable_mm_ops;
156
157 out:
158 /*
159 * We tail-called to here from handle___pkvm_init() and will not return,
160 * so make sure to propagate the return value to the host.
161 */
162 cpu_reg(host_ctxt, 1) = ret;
163
164 __host_enter(host_ctxt);
165 }
166
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
4 months, 4 weeks
arch/powerpc/platforms/52xx/lite5200_pm.c:215:9: error: implicit declaration of function 'enable_kernel_fp'
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: 1b4e3f26f9f7553b260b8aed43967500961448a6
commit: 7d68c89169508064c460a1208f38ed0589d226fa powerpc/32s: Allow deselecting CONFIG_PPC_FPU on mpc832x
date: 1 year, 1 month ago
config: powerpc-randconfig-r034-20220101 (https://download.01.org/0day-ci/archive/20220101/202201010554.xCKQH2XW-lk...)
compiler: powerpc-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/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 7d68c89169508064c460a1208f38ed0589d226fa
# 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=powerpc SHELL=/bin/bash arch/powerpc/platforms/52xx/ arch/powerpc/platforms/83xx/
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/platforms/52xx/lite5200_pm.c: In function 'lite5200_pm_enter':
>> arch/powerpc/platforms/52xx/lite5200_pm.c:215:9: error: implicit declaration of function 'enable_kernel_fp' [-Werror=implicit-function-declaration]
215 | enable_kernel_fp();
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
arch/powerpc/platforms/83xx/suspend.c: In function 'mpc83xx_suspend_enter':
>> arch/powerpc/platforms/83xx/suspend.c:210:17: error: implicit declaration of function 'enable_kernel_fp' [-Werror=implicit-function-declaration]
210 | enable_kernel_fp();
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/enable_kernel_fp +215 arch/powerpc/platforms/52xx/lite5200_pm.c
ee983079ce0464 Domen Puncer 2007-07-18 204
ee983079ce0464 Domen Puncer 2007-07-18 205 static int lite5200_pm_enter(suspend_state_t state)
ee983079ce0464 Domen Puncer 2007-07-18 206 {
ee983079ce0464 Domen Puncer 2007-07-18 207 /* deep sleep? let mpc52xx code handle that */
ee983079ce0464 Domen Puncer 2007-07-18 208 if (state == PM_SUSPEND_STANDBY) {
ee983079ce0464 Domen Puncer 2007-07-18 209 return mpc52xx_pm_enter(state);
ee983079ce0464 Domen Puncer 2007-07-18 210 }
ee983079ce0464 Domen Puncer 2007-07-18 211
ee983079ce0464 Domen Puncer 2007-07-18 212 lite5200_save_regs();
ee983079ce0464 Domen Puncer 2007-07-18 213
ee983079ce0464 Domen Puncer 2007-07-18 214 /* effectively save FP regs */
ee983079ce0464 Domen Puncer 2007-07-18 @215 enable_kernel_fp();
ee983079ce0464 Domen Puncer 2007-07-18 216
ee983079ce0464 Domen Puncer 2007-07-18 217 lite5200_low_power(sram, mbar);
ee983079ce0464 Domen Puncer 2007-07-18 218
ee983079ce0464 Domen Puncer 2007-07-18 219 lite5200_restore_regs();
ee983079ce0464 Domen Puncer 2007-07-18 220
ee983079ce0464 Domen Puncer 2007-07-18 221 iounmap(mbar);
ee983079ce0464 Domen Puncer 2007-07-18 222 return 0;
ee983079ce0464 Domen Puncer 2007-07-18 223 }
ee983079ce0464 Domen Puncer 2007-07-18 224
:::::: The code at line 215 was first introduced by commit
:::::: ee983079ce04641523b23b8ed02cc3503632351e [POWERPC] MPC5200 low power mode
:::::: TO: Domen Puncer <domen.puncer(a)telargo.com>
:::::: CC: Paul Mackerras <paulus(a)samba.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
4 months, 4 weeks
drivers/net/usb/lan78xx.c:2963:27: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4f3d93c6eaff6b84e43b63e0d7a119c5920e1020
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 8 months ago
config: i386-randconfig-s002-20211123 (https://download.01.org/0day-ci/archive/20220101/202201010449.pwZ9p571-lk...)
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 d991bb1c8da842a2a0b9dc83b1005e655783f861
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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>
sparse warnings: (new ones prefixed by >>)
drivers/net/usb/lan78xx.c:2963:29: sparse: sparse: cast to restricted __be16
>> drivers/net/usb/lan78xx.c:2963:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __wsum [usertype] csum @@ got unsigned short [usertype] @@
drivers/net/usb/lan78xx.c:2963:27: sparse: expected restricted __wsum [usertype] csum
drivers/net/usb/lan78xx.c:2963:27: sparse: got unsigned short [usertype]
vim +2963 drivers/net/usb/lan78xx.c
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2949
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2950 static void lan78xx_rx_csum_offload(struct lan78xx_net *dev,
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2951 struct sk_buff *skb,
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2952 u32 rx_cmd_a, u32 rx_cmd_b)
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2953 {
9343ac87f2a4e0 Dave Stevenson 2018-06-25 2954 /* HW Checksum offload appears to be flawed if used when not stripping
9343ac87f2a4e0 Dave Stevenson 2018-06-25 2955 * VLAN headers. Drop back to S/W checksums under these conditions.
9343ac87f2a4e0 Dave Stevenson 2018-06-25 2956 */
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2957 if (!(dev->net->features & NETIF_F_RXCSUM) ||
9343ac87f2a4e0 Dave Stevenson 2018-06-25 2958 unlikely(rx_cmd_a & RX_CMD_A_ICSM_) ||
9343ac87f2a4e0 Dave Stevenson 2018-06-25 2959 ((rx_cmd_a & RX_CMD_A_FVTG_) &&
9343ac87f2a4e0 Dave Stevenson 2018-06-25 2960 !(dev->net->features & NETIF_F_HW_VLAN_CTAG_RX))) {
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2961 skb->ip_summed = CHECKSUM_NONE;
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2962 } else {
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 @2963 skb->csum = ntohs((u16)(rx_cmd_b >> RX_CMD_B_CSUM_SHIFT_));
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2964 skb->ip_summed = CHECKSUM_COMPLETE;
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2965 }
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2966 }
55d7de9de6c30a Woojung.Huh(a)microchip.com 2015-07-30 2967
:::::: The code at line 2963 was first introduced by commit
:::::: 55d7de9de6c30adce8d675c7ce513e283829c2ff Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver
:::::: TO: Woojung.Huh(a)microchip.com <Woojung.Huh(a)microchip.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
4 months, 4 weeks
drivers/irqchip/irq-xilinx-intc.c:127:14: warning: no previous prototype for 'xintc_get_irq'
by kernel test robot
Hi Robert,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4f3d93c6eaff6b84e43b63e0d7a119c5920e1020
commit: debf69cfd4c618c7036a13cc4edd1faf87ce7d53 irqchip/xilinx: Expose Kconfig option for Zynq/ZynqMP
date: 8 months ago
config: arm64-buildonly-randconfig-r005-20211231 (https://download.01.org/0day-ci/archive/20220101/202201010402.GsFaB29E-lk...)
compiler: aarch64-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/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 debf69cfd4c618c7036a13cc4edd1faf87ce7d53
# 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=arm64 SHELL=/bin/bash drivers/irqchip/
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/irqchip/irq-xilinx-intc.c:127:14: warning: no previous prototype for 'xintc_get_irq' [-Wmissing-prototypes]
127 | unsigned int xintc_get_irq(void)
| ^~~~~~~~~~~~~
vim +/xintc_get_irq +127 drivers/irqchip/irq-xilinx-intc.c
67862a3c47fcfc Mubin Sayyed 2020-03-17 126
4cea749d56bec9 Marc Zyngier 2020-03-30 @127 unsigned int xintc_get_irq(void)
4cea749d56bec9 Marc Zyngier 2020-03-30 128 {
4cea749d56bec9 Marc Zyngier 2020-03-30 129 unsigned int irq = -1;
4cea749d56bec9 Marc Zyngier 2020-03-30 130 u32 hwirq;
4cea749d56bec9 Marc Zyngier 2020-03-30 131
4cea749d56bec9 Marc Zyngier 2020-03-30 132 hwirq = xintc_read(primary_intc, IVR);
4cea749d56bec9 Marc Zyngier 2020-03-30 133 if (hwirq != -1U)
4cea749d56bec9 Marc Zyngier 2020-03-30 134 irq = irq_find_mapping(primary_intc->root_domain, hwirq);
4cea749d56bec9 Marc Zyngier 2020-03-30 135
4cea749d56bec9 Marc Zyngier 2020-03-30 136 pr_debug("irq-xilinx: hwirq=%d, irq=%d\n", hwirq, irq);
4cea749d56bec9 Marc Zyngier 2020-03-30 137
4cea749d56bec9 Marc Zyngier 2020-03-30 138 return irq;
4cea749d56bec9 Marc Zyngier 2020-03-30 139 }
4cea749d56bec9 Marc Zyngier 2020-03-30 140
:::::: The code at line 127 was first introduced by commit
:::::: 4cea749d56bec9409f3bd126d2b2f949dc6c66e2 Revert "irqchip/xilinx: Enable generic irq multi handler"
:::::: TO: Marc Zyngier <maz(a)kernel.org>
:::::: CC: Marc Zyngier <maz(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
4 months, 4 weeks