* [xlnx:xlnx_rebase_v5.4 1296/1704] drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2021-04-07 13:08 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-07 13:08 UTC (permalink / raw)
To: Vishal Sagar; +Cc: kbuild-all, linux-arm-kernel, Michal Simek, Hyun Kwon
[-- Attachment #1: Type: text/plain, Size: 3869 bytes --]
Hi Vishal,
First bad commit (maybe != root cause):
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 914337937cb6a106a2942347d8c8feacd2223299
commit: 0b197959bbbdb68e1da974bd013339f08704b178 [1296/1704] staging: xlnxsync: Fix the uapi header license
config: x86_64-randconfig-s021-20210407 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-279-g6d5d9b42-dirty
# https://github.com/Xilinx/linux-xlnx/commit/0b197959bbbdb68e1da974bd013339f08704b178
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 0b197959bbbdb68e1da974bd013339f08704b178
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *platform_data @@ got void [noderef] <asn:2> *regs @@
drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: expected void *platform_data
drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: got void [noderef] <asn:2> *regs
vim +231 drivers/usb/dwc3/dwc3-of-simple.c
6d0468b837bc2b Michal Simek 2020-03-16 211
783997b6a777ef Piyush Mehta 2020-01-23 212 static int dwc3_simple_set_phydata(struct dwc3_of_simple *simple)
783997b6a777ef Piyush Mehta 2020-01-23 213 {
783997b6a777ef Piyush Mehta 2020-01-23 214 struct device *dev = simple->dev;
783997b6a777ef Piyush Mehta 2020-01-23 215 struct device_node *np = dev->of_node;
783997b6a777ef Piyush Mehta 2020-01-23 216 struct phy *phy;
783997b6a777ef Piyush Mehta 2020-01-23 217
783997b6a777ef Piyush Mehta 2020-01-23 218 np = of_get_next_child(np, NULL);
783997b6a777ef Piyush Mehta 2020-01-23 219
783997b6a777ef Piyush Mehta 2020-01-23 220 if (np) {
783997b6a777ef Piyush Mehta 2020-01-23 221 phy = of_phy_get(np, "usb3-phy");
783997b6a777ef Piyush Mehta 2020-01-23 222 if (IS_ERR(phy)) {
783997b6a777ef Piyush Mehta 2020-01-23 223 dev_err(dev, "%s: Can't find usb3-phy\n", __func__);
783997b6a777ef Piyush Mehta 2020-01-23 224 return PTR_ERR(phy);
783997b6a777ef Piyush Mehta 2020-01-23 225 }
783997b6a777ef Piyush Mehta 2020-01-23 226
783997b6a777ef Piyush Mehta 2020-01-23 227 /* Store phy for future usage */
783997b6a777ef Piyush Mehta 2020-01-23 228 simple->phy = phy;
783997b6a777ef Piyush Mehta 2020-01-23 229
783997b6a777ef Piyush Mehta 2020-01-23 230 /* assign USB vendor regs addr to phy platform_data */
783997b6a777ef Piyush Mehta 2020-01-23 @231 phy->dev.platform_data = simple->regs;
783997b6a777ef Piyush Mehta 2020-01-23 232
783997b6a777ef Piyush Mehta 2020-01-23 233 phy_put(phy);
783997b6a777ef Piyush Mehta 2020-01-23 234 } else {
783997b6a777ef Piyush Mehta 2020-01-23 235 dev_err(dev, "%s: Can't find child node\n", __func__);
783997b6a777ef Piyush Mehta 2020-01-23 236 return -EINVAL;
783997b6a777ef Piyush Mehta 2020-01-23 237 }
783997b6a777ef Piyush Mehta 2020-01-23 238
783997b6a777ef Piyush Mehta 2020-01-23 239 return 0;
783997b6a777ef Piyush Mehta 2020-01-23 240 }
783997b6a777ef Piyush Mehta 2020-01-23 241
:::::: The code at line 231 was first introduced by commit
:::::: 783997b6a777efb7efa5fa47602d04a7ddcbee87 dwc3: Add support for setting USB control registers as phy platform data
:::::: TO: Piyush Mehta <piyush.mehta@xilinx.com>
:::::: CC: Michal Simek <michal.simek@xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33039 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [xlnx:xlnx_rebase_v5.4 1296/1704] drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2021-04-07 13:08 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-07 13:08 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3942 bytes --]
Hi Vishal,
First bad commit (maybe != root cause):
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 914337937cb6a106a2942347d8c8feacd2223299
commit: 0b197959bbbdb68e1da974bd013339f08704b178 [1296/1704] staging: xlnxsync: Fix the uapi header license
config: x86_64-randconfig-s021-20210407 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-279-g6d5d9b42-dirty
# https://github.com/Xilinx/linux-xlnx/commit/0b197959bbbdb68e1da974bd013339f08704b178
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 0b197959bbbdb68e1da974bd013339f08704b178
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *platform_data @@ got void [noderef] <asn:2> *regs @@
drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: expected void *platform_data
drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: got void [noderef] <asn:2> *regs
vim +231 drivers/usb/dwc3/dwc3-of-simple.c
6d0468b837bc2b Michal Simek 2020-03-16 211
783997b6a777ef Piyush Mehta 2020-01-23 212 static int dwc3_simple_set_phydata(struct dwc3_of_simple *simple)
783997b6a777ef Piyush Mehta 2020-01-23 213 {
783997b6a777ef Piyush Mehta 2020-01-23 214 struct device *dev = simple->dev;
783997b6a777ef Piyush Mehta 2020-01-23 215 struct device_node *np = dev->of_node;
783997b6a777ef Piyush Mehta 2020-01-23 216 struct phy *phy;
783997b6a777ef Piyush Mehta 2020-01-23 217
783997b6a777ef Piyush Mehta 2020-01-23 218 np = of_get_next_child(np, NULL);
783997b6a777ef Piyush Mehta 2020-01-23 219
783997b6a777ef Piyush Mehta 2020-01-23 220 if (np) {
783997b6a777ef Piyush Mehta 2020-01-23 221 phy = of_phy_get(np, "usb3-phy");
783997b6a777ef Piyush Mehta 2020-01-23 222 if (IS_ERR(phy)) {
783997b6a777ef Piyush Mehta 2020-01-23 223 dev_err(dev, "%s: Can't find usb3-phy\n", __func__);
783997b6a777ef Piyush Mehta 2020-01-23 224 return PTR_ERR(phy);
783997b6a777ef Piyush Mehta 2020-01-23 225 }
783997b6a777ef Piyush Mehta 2020-01-23 226
783997b6a777ef Piyush Mehta 2020-01-23 227 /* Store phy for future usage */
783997b6a777ef Piyush Mehta 2020-01-23 228 simple->phy = phy;
783997b6a777ef Piyush Mehta 2020-01-23 229
783997b6a777ef Piyush Mehta 2020-01-23 230 /* assign USB vendor regs addr to phy platform_data */
783997b6a777ef Piyush Mehta 2020-01-23 @231 phy->dev.platform_data = simple->regs;
783997b6a777ef Piyush Mehta 2020-01-23 232
783997b6a777ef Piyush Mehta 2020-01-23 233 phy_put(phy);
783997b6a777ef Piyush Mehta 2020-01-23 234 } else {
783997b6a777ef Piyush Mehta 2020-01-23 235 dev_err(dev, "%s: Can't find child node\n", __func__);
783997b6a777ef Piyush Mehta 2020-01-23 236 return -EINVAL;
783997b6a777ef Piyush Mehta 2020-01-23 237 }
783997b6a777ef Piyush Mehta 2020-01-23 238
783997b6a777ef Piyush Mehta 2020-01-23 239 return 0;
783997b6a777ef Piyush Mehta 2020-01-23 240 }
783997b6a777ef Piyush Mehta 2020-01-23 241
:::::: The code at line 231 was first introduced by commit
:::::: 783997b6a777efb7efa5fa47602d04a7ddcbee87 dwc3: Add support for setting USB control registers as phy platform data
:::::: TO: Piyush Mehta <piyush.mehta@xilinx.com>
:::::: CC: Michal Simek <michal.simek@xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33039 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-07 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 13:08 [xlnx:xlnx_rebase_v5.4 1296/1704] drivers/usb/dwc3/dwc3-of-simple.c:231:40: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot
2021-04-07 13:08 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.