[arm:zii 169/186] drivers/net/dsa/mt7530.c:3005:25: error: initialization of 'int (*)(struct phylink_pcs *, unsigned int, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const str...
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: d3ebd79d7fb6476e2409c147e4dcc304733f7ae6
commit: 1305d352ef9eeab497176235f3d1533e42ac25ec [169/186] net: phylink: pass mode into pcs_validate()
config: arm-randconfig-r011-20211214 (https://download.01.org/0day-ci/archive/20211215/202112151041.jln1Nvjj-lk...)
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
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 1305d352ef9eeab497176235f3d1533e42ac25ec
# 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=arm SHELL=/bin/bash drivers/net/dsa/
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/net/dsa/mt7530.c: In function 'mt753x_phylink_mac_select_pcs':
drivers/net/dsa/mt7530.c:2707:40: error: 'struct mt753x_pcs' has no member named 'phylink_pcs'
2707 | return &priv->pcs[port].phylink_pcs;
| ^
drivers/net/dsa/mt7530.c: In function 'mt7531_cpu_port_config':
drivers/net/dsa/mt7530.c:2882:52: error: 'struct mt753x_pcs' has no member named 'phylink_pcs'
2882 | mt753x_phylink_pcs_link_up(&priv->pcs[port].phylink_pcs, MLO_AN_FIXED,
| ^
drivers/net/dsa/mt7530.c: At top level:
>> drivers/net/dsa/mt7530.c:3005:25: error: initialization of 'int (*)(struct phylink_pcs *, unsigned int, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
3005 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3005:25: note: (near initialization for 'mt7530_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c:3012:25: error: initialization of 'int (*)(struct phylink_pcs *, unsigned int, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
3012 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3012:25: note: (near initialization for 'mt7531_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c: In function 'mt753x_setup':
drivers/net/dsa/mt7530.c:3039:33: error: 'priv->pcs[i].pcs' is a pointer; did you mean to use '->'?
3039 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^
| ->
drivers/net/dsa/mt7530.c:3039:44: error: 'struct mt7530_priv' has no member named 'pcs_ops'
3039 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^~
cc1: some warnings being treated as errors
vim +3005 drivers/net/dsa/mt7530.c
c288575f7810a5 Landen Chao 2020-09-11 3003
76c8c505247c56 Russell King (Oracle 2021-11-21 3004) static const struct phylink_pcs_ops mt7530_pcs_ops = {
76c8c505247c56 Russell King (Oracle 2021-11-21 @3005) .pcs_validate = mt753x_pcs_validate,
76c8c505247c56 Russell King (Oracle 2021-11-21 3006) .pcs_get_state = mt7530_pcs_get_state,
76c8c505247c56 Russell King (Oracle 2021-11-21 3007) .pcs_config = mt753x_pcs_config,
76c8c505247c56 Russell King (Oracle 2021-11-21 3008) .pcs_an_restart = mt7530_pcs_an_restart,
76c8c505247c56 Russell King (Oracle 2021-11-21 3009) };
88bdef8be9f649 Landen Chao 2020-09-11 3010
:::::: The code at line 3005 was first introduced by commit
:::::: 76c8c505247c567d0883b44bab8b678bc9238bfb net: dsa: mt7530: partially convert to phylink_pcs *EXPERIMENTAL*
:::::: TO: Russell King (Oracle) <rmk+kernel(a)armlinux.org.uk>
:::::: CC: Russell King (Oracle) <rmk+kernel(a)armlinux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[xilinx-xlnx:xlnx_rebase_v5.4 908/1768] drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: abafefebd1f1e040eef74e4ab571ea08bf745641
commit: 68a922ded3cde24cb75c0cad0c62403d97ca9aaf [908/1768] usb: dwc3: Add code for supporting entering into D3 state during suspend
config: i386-randconfig-r006-20211214 (https://download.01.org/0day-ci/archive/20211215/202112151028.nmXHl55L-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/68a922ded3cde24cb75c0cad0c624...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
git checkout 68a922ded3cde24cb75c0cad0c62403d97ca9aaf
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/usb/
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 drivers/usb/dwc3/core.c:36:
drivers/usb/dwc3/core.h:1430:6: warning: no previous prototype for 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
1430 | void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1432:6: warning: no previous prototype for 'dwc3_set_simple_data' [-Wmissing-prototypes]
1432 | void dwc3_set_simple_data(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1434:6: warning: no previous prototype for 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
1434 | void dwc3_simple_check_quirks(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
1436 | int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h: In function 'dwc3_set_usb_core_power':
>> drivers/usb/dwc3/core.h:1437:5: warning: control reaches end of non-void function [-Wreturn-type]
1437 | { ; }
| ^
--
In file included from drivers/usb/dwc3/host.c:12:
include/linux/usb/xhci_pdriver.h:22:6: warning: no previous prototype for 'dwc3_host_wakeup_capable' [-Wmissing-prototypes]
22 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/host.c:14:
drivers/usb/dwc3/core.h:1430:6: warning: no previous prototype for 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
1430 | void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1432:6: warning: no previous prototype for 'dwc3_set_simple_data' [-Wmissing-prototypes]
1432 | void dwc3_set_simple_data(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1434:6: warning: no previous prototype for 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
1434 | void dwc3_simple_check_quirks(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
1436 | int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/host.c:16:6: error: redefinition of 'dwc3_host_wakeup_capable'
16 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/host.c:12:
include/linux/usb/xhci_pdriver.h:22:6: note: previous definition of 'dwc3_host_wakeup_capable' was here
22 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/host.c:14:
drivers/usb/dwc3/core.h: In function 'dwc3_set_usb_core_power':
>> drivers/usb/dwc3/core.h:1437:5: warning: control reaches end of non-void function [-Wreturn-type]
1437 | { ; }
| ^
--
In file included from drivers/usb/dwc3/trace.h:19,
from drivers/usb/dwc3/trace.c:11:
drivers/usb/dwc3/core.h:1430:6: warning: no previous prototype for 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
1430 | void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1432:6: warning: no previous prototype for 'dwc3_set_simple_data' [-Wmissing-prototypes]
1432 | void dwc3_set_simple_data(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1434:6: warning: no previous prototype for 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
1434 | void dwc3_simple_check_quirks(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/core.h:1436:5: warning: no previous prototype for 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
1436 | int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/trace.h:343,
from drivers/usb/dwc3/trace.c:11:
include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
vim +/dwc3_set_usb_core_power +1436 drivers/usb/dwc3/core.h
1420
1421 #if IS_ENABLED(CONFIG_USB_DWC3_OF_SIMPLE)
1422 int dwc3_enable_hw_coherency(struct device *dev);
1423 void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup);
1424 void dwc3_set_simple_data(struct dwc3 *dwc);
1425 void dwc3_simple_check_quirks(struct dwc3 *dwc);
1426 int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on);
1427 #else
1428 static inline int dwc3_enable_hw_coherency(struct device *dev)
1429 { return 1; }
> 1430 void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
1431 { ; }
1432 void dwc3_set_simple_data(struct dwc3 *dwc)
1433 { ; }
> 1434 void dwc3_simple_check_quirks(struct dwc3 *dwc)
1435 { ; }
> 1436 int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
> 1437 { ; }
1438 #endif
1439
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[arm:zii 111/186] drivers/net/ethernet/cadence/macb_main.c:736:26: error: incompatible types when returning type 'struct phylink_pcs' but 'struct phylink_pcs *' was expected
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: d3ebd79d7fb6476e2409c147e4dcc304733f7ae6
commit: 4a3afb218aacb819703cf3336e5c7c83b41b10fb [111/186] net: macb: use .mac_select_pcs() interface
config: microblaze-randconfig-r013-20211214 (https://download.01.org/0day-ci/archive/20211215/202112151024.Zg0UOSvY-lk...)
compiler: microblaze-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
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 4a3afb218aacb819703cf3336e5c7c83b41b10fb
# 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=microblaze SHELL=/bin/bash drivers/net/
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/net/ethernet/cadence/macb_main.c: In function 'macb_mac_select_pcs':
>> drivers/net/ethernet/cadence/macb_main.c:736:26: error: incompatible types when returning type 'struct phylink_pcs' but 'struct phylink_pcs *' was expected
736 | return bp->phylink_sgmii_pcs;
| ~~^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/cadence/macb_main.c:739:1: error: control reaches end of non-void function [-Werror=return-type]
739 | }
| ^
cc1: some warnings being treated as errors
vim +736 drivers/net/ethernet/cadence/macb_main.c
726
727 static struct phylink_pcs *macb_mac_select_pcs(struct phylink_config *config,
728 phy_interface_t interface)
729 {
730 struct net_device *ndev = to_net_dev(config->dev);
731 struct macb *bp = netdev_priv(ndev);
732
733 if (interface == PHY_INTERFACE_MODE_10GBASER)
734 return &bp->phylink_usx_pcs;
735 else if (interface == PHY_INTERFACE_MODE_SGMII)
> 736 return bp->phylink_sgmii_pcs;
737 else
738 return NULL;
739 }
740
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[xilinx-xlnx:xlnx_rebase_v5.4 942/1768] drivers/mtd/spi-nor/spi-nor.c:5196:14: error: implicit declaration of function 'of_get_next_parent'; did you mean 'of_get_parent'?
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: abafefebd1f1e040eef74e4ab571ea08bf745641
commit: 24bcc7359bdd609cedf0a715d77dc39e4ad782db [942/1768] mtd: spi-nor: Added axi-qspi support in spi-nor framework
config: i386-randconfig-a001-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150952.YLxYr8r4-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/24bcc7359bdd609cedf0a715d77dc...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
git checkout 24bcc7359bdd609cedf0a715d77dc39e4ad782db
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mtd/spi-nor/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/mtd/spi-nor/spi-nor.c: In function 'spi_nor_write_ear':
drivers/mtd/spi-nor/spi-nor.c:691:5: warning: variable 'code' set but not used [-Wunused-but-set-variable]
691 | u8 code;
| ^~~~
drivers/mtd/spi-nor/spi-nor.c: In function 'spi_nor_read':
drivers/mtd/spi-nor/spi-nor.c:2741:9: warning: variable 'addr' set but not used [-Wunused-but-set-variable]
2741 | loff_t addr = 0;
| ^~~~
drivers/mtd/spi-nor/spi-nor.c: In function 'spi_nor_set_addr_width':
>> drivers/mtd/spi-nor/spi-nor.c:5196:14: error: implicit declaration of function 'of_get_next_parent'; did you mean 'of_get_parent'? [-Werror=implicit-function-declaration]
5196 | np_spi = of_get_next_parent(np);
| ^~~~~~~~~~~~~~~~~~
| of_get_parent
>> drivers/mtd/spi-nor/spi-nor.c:5196:12: warning: assignment to 'struct device_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
5196 | np_spi = of_get_next_parent(np);
| ^
drivers/mtd/spi-nor/spi-nor.c: In function 'spi_nor_get_flash_info':
drivers/mtd/spi-nor/spi-nor.c:5266:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
5266 | return jinfo;
| ^~~~~
drivers/mtd/spi-nor/spi-nor.c:5281:9: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
5281 | return info;
| ^~~~
drivers/mtd/spi-nor/spi-nor.c: In function 'spi_nor_scan':
drivers/mtd/spi-nor/spi-nor.c:5295:6: warning: unused variable 'is_dual' [-Wunused-variable]
5295 | u32 is_dual;
| ^~~~~~~
drivers/mtd/spi-nor/spi-nor.c:5294:22: warning: unused variable 'np_spi' [-Wunused-variable]
5294 | struct device_node *np_spi;
| ^~~~~~
At top level:
drivers/mtd/spi-nor/spi-nor.c:781:12: warning: 'read_ear' defined but not used [-Wunused-function]
781 | static int read_ear(struct spi_nor *nor, struct flash_info *info)
| ^~~~~~~~
cc1: some warnings being treated as errors
vim +5196 drivers/mtd/spi-nor/spi-nor.c
5162
5163 static int spi_nor_set_addr_width(struct spi_nor *nor)
5164 {
5165 struct device_node *np = spi_nor_get_flash_node(nor);
5166 struct device_node *np_spi;
5167 if (nor->addr_width) {
5168 /* already configured from SFDP */
5169 } else if (nor->info->addr_width) {
5170 nor->addr_width = nor->info->addr_width;
5171 } else if (nor->mtd.size > 0x1000000) {
5172 #ifdef CONFIG_OF
5173 np_spi = of_get_next_parent(np);
5174 if (of_property_match_string(np_spi, "compatible",
5175 "xlnx,zynq-qspi-1.0") >= 0) {
5176 int status;
5177
5178 nor->addr_width = 3;
5179 nor->params.set_4byte(nor, false);
5180 status = read_ear(nor, (struct flash_info *)nor->info);
5181 if (status < 0)
5182 dev_warn(nor->dev, "failed to read ear reg\n");
5183 else
5184 nor->curbank = status & EAR_SEGMENT_MASK;
5185 } else {
5186 #endif
5187 /*
5188 * enable 4-byte addressing if the
5189 * device exceeds 16MiB
5190 */
5191 nor->addr_width = 4;
5192 if (JEDEC_MFR(nor->info) == SNOR_MFR_SPANSION ||
5193 nor->info->flags & SPI_NOR_4B_OPCODES) {
5194 spi_nor_set_4byte_opcodes(nor);
5195 } else {
> 5196 np_spi = of_get_next_parent(np);
5197 if (of_property_match_string(np_spi,
5198 "compatible",
5199 "xlnx,xps-spi-2.00.a") >= 0) {
5200 nor->addr_width = 3;
5201 nor->params.set_4byte(nor, false);
5202 } else {
5203 nor->params.set_4byte(nor, true);
5204 if (nor->isstacked) {
5205 nor->spi->master->flags |=
5206 SPI_MASTER_U_PAGE;
5207 nor->params.set_4byte(nor, true);
5208 nor->spi->master->flags &=
5209 ~SPI_MASTER_U_PAGE;
5210 }
5211 }
5212 }
5213 #ifdef CONFIG_OF
5214 }
5215 #endif
5216 } else {
5217 nor->addr_width = 3;
5218 }
5219
5220 if (nor->addr_width > SPI_NOR_MAX_ADDR_WIDTH) {
5221 dev_err(nor->dev, "address width is too large: %u\n",
5222 nor->addr_width);
5223 return -EINVAL;
5224 }
5225
5226 /* Set 4byte opcodes when possible. */
5227 if (nor->addr_width == 4 && nor->flags & SNOR_F_4B_OPCODES &&
5228 !(nor->flags & SNOR_F_HAS_4BAIT))
5229 spi_nor_set_4byte_opcodes(nor);
5230
5231 return 0;
5232 }
5233
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[arm:zii 147/186] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:56: error: passing argument 1 of 'pcs_to_axienet_local' from incompatible pointer type
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: d3ebd79d7fb6476e2409c147e4dcc304733f7ae6
commit: dc659b3d109e3e55a76c0ed143119dad7b369ec8 [147/186] net: axienet: convert to phylink_pcs
config: arm-randconfig-r011-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150906.gbKc24gn-lk...)
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
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout dc659b3d109e3e55a76c0ed143119dad7b369ec8
# 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=arm SHELL=/bin/bash drivers/net/dsa/ drivers/net/ethernet/xilinx/
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/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_pcs_config':
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1531:56: error: passing argument 1 of 'pcs_to_axienet_local' from incompatible pointer type [-Werror=incompatible-pointer-types]
1531 | struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
| ^~~
| |
| struct phylink_config *
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: expected 'struct phylink_pcs *' but argument is of type 'struct phylink_config *'
1506 | static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
| ~~~~~~~~~~~~~~~~~~~~^~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1532:60: error: passing argument 1 of 'pcs_to_axienet_local' from incompatible pointer type [-Werror=incompatible-pointer-types]
1532 | struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
| ^~~
| |
| struct phylink_config *
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1506:71: note: expected 'struct phylink_pcs *' but argument is of type 'struct phylink_config *'
1506 | static struct axienet_local *pcs_to_axienet_local(struct phylink_pcs *pcs)
| ~~~~~~~~~~~~~~~~~~~~^~~
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1537:29: error: 'iface' undeclared (first use in this function)
1537 | iface == PHY_INTERFACE_MODE_SGMII ?
| ^~~~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1537:29: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: At top level:
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1554:23: error: initialization of 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const long unsigned int *, bool)' {aka 'int (*)(struct phylink_pcs *, unsigned int, phy_interface_t, const long unsigned int *, _Bool)'} from incompatible pointer type 'int (*)(struct phylink_config *, unsigned int, phy_interface_t, const long unsigned int *, bool)' {aka 'int (*)(struct phylink_config *, unsigned int, phy_interface_t, const long unsigned int *, _Bool)'} [-Werror=incompatible-pointer-types]
1554 | .pcs_config = axienet_pcs_config,
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1554:23: note: (near initialization for 'axienet_pcs_ops.pcs_config')
cc1: some warnings being treated as errors
vim +/pcs_to_axienet_local +1531 drivers/net/ethernet/xilinx/xilinx_axienet_main.c
1525
1526 static int axienet_pcs_config(struct phylink_config *pcs, unsigned int mode,
1527 phy_interface_t interface,
1528 const unsigned long *advertising,
1529 bool permit_pause_to_mac)
1530 {
> 1531 struct net_device *ndev = pcs_to_axienet_local(pcs)->ndev;
1532 struct mdio_device *pcs_phy = pcs_to_axienet_local(pcs)->pcs_phy;
1533 int ret;
1534
1535 ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr,
1536 XLNX_MII_STD_SELECT_REG,
> 1537 iface == PHY_INTERFACE_MODE_SGMII ?
1538 XLNX_MII_STD_SELECT_SGMII : 0);
1539 if (ret < 0) {
1540 netdev_warn(ndev, "Failed to switch PHY interface: %d\n",
1541 ret);
1542 return ret;
1543 }
1544
1545 ret = phylink_mii_c22_pcs_config(pcs_phy, mode, interface, advertising);
1546 if (ret < 0)
1547 netdev_warn(ndev, "Failed to configure PCS: %d\n", ret);
1548
1549 return ret;
1550 }
1551
1552 static const struct phylink_pcs_ops axienet_pcs_ops = {
1553 .pcs_get_state = axienet_pcs_get_state,
> 1554 .pcs_config = axienet_pcs_config,
1555 .pcs_an_restart = axienet_pcs_an_restart,
1556 };
1557
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[xilinx-xlnx:xlnx_rebase_v5.4 906/1768] drivers/usb/dwc3/core.h:1433:6: warning: no previous prototype for 'dwc3_simple_check_quirks'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: abafefebd1f1e040eef74e4ab571ea08bf745641
commit: 782658c51bbcd85a39a5d9a51b57224f185d7670 [906/1768] usb: dwc3: Correct errors when dwc3 loaded as module
config: i386-randconfig-r006-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150907.Y5RHvtvo-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/782658c51bbcd85a39a5d9a51b572...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
git checkout 782658c51bbcd85a39a5d9a51b57224f185d7670
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/usb/
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 drivers/usb/dwc3/core.c:36:
drivers/usb/dwc3/core.h:1429:6: warning: no previous prototype for 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
1429 | void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1431:6: warning: no previous prototype for 'dwc3_set_simple_data' [-Wmissing-prototypes]
1431 | void dwc3_set_simple_data(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/core.h:1433:6: warning: no previous prototype for 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
1433 | void dwc3_simple_check_quirks(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/usb/dwc3/host.c:12:
include/linux/usb/xhci_pdriver.h:22:6: warning: no previous prototype for 'dwc3_host_wakeup_capable' [-Wmissing-prototypes]
22 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/host.c:14:
drivers/usb/dwc3/core.h:1429:6: warning: no previous prototype for 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
1429 | void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1431:6: warning: no previous prototype for 'dwc3_set_simple_data' [-Wmissing-prototypes]
1431 | void dwc3_set_simple_data(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/core.h:1433:6: warning: no previous prototype for 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
1433 | void dwc3_simple_check_quirks(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/host.c:16:6: error: redefinition of 'dwc3_host_wakeup_capable'
16 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/host.c:12:
include/linux/usb/xhci_pdriver.h:22:6: note: previous definition of 'dwc3_host_wakeup_capable' was here
22 | void dwc3_host_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/usb/dwc3/trace.h:19,
from drivers/usb/dwc3/trace.c:11:
drivers/usb/dwc3/core.h:1429:6: warning: no previous prototype for 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
1429 | void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/core.h:1431:6: warning: no previous prototype for 'dwc3_set_simple_data' [-Wmissing-prototypes]
1431 | void dwc3_set_simple_data(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/core.h:1433:6: warning: no previous prototype for 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
1433 | void dwc3_simple_check_quirks(struct dwc3 *dwc)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/trace.h:343,
from drivers/usb/dwc3/trace.c:11:
include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
vim +/dwc3_simple_check_quirks +1433 drivers/usb/dwc3/core.h
1420
1421 #if IS_ENABLED(CONFIG_USB_DWC3_OF_SIMPLE)
1422 int dwc3_enable_hw_coherency(struct device *dev);
1423 void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup);
1424 void dwc3_set_simple_data(struct dwc3 *dwc);
1425 void dwc3_simple_check_quirks(struct dwc3 *dwc);
1426 #else
1427 static inline int dwc3_enable_hw_coherency(struct device *dev)
1428 { return 1; }
> 1429 void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
1430 { ; }
1431 void dwc3_set_simple_data(struct dwc3 *dwc)
1432 { ; }
> 1433 void dwc3_simple_check_quirks(struct dwc3 *dwc)
1434 { ; }
1435 #endif
1436
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH 05/43] asm: x86: instrument usercopy in get_user() and __put_user_size()
by kernel test robot
Hi Alexander,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tip/x86/mm]
[also build test WARNING on linus/master v5.16-rc5]
[cannot apply to tip/x86/core hnaz-mm/master next-20211213]
[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/Alexander-Potapenko/Add-KernelMe...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 35fa745286ac44ee26ed100c2bd2553368ad193b
config: i386-randconfig-s002-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150931.TDelnQbm-lk...)
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/3209eff1f0c7f4de1f9685c4692c7ad79...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexander-Potapenko/Add-KernelMemorySanitizer-infrastructure/20211215-003033
git checkout 3209eff1f0c7f4de1f9685c4692c7ad79e8f225b
# 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 arch/x86/kernel/ kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long long [usertype] * @@
arch/x86/kernel/signal.c:359:9: sparse: expected void const volatile [noderef] __user *ptr
arch/x86/kernel/signal.c:359:9: sparse: got unsigned long long [usertype] *
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
>> arch/x86/kernel/signal.c:359:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got unsigned long long [usertype] * @@
arch/x86/kernel/signal.c:359:9: sparse: expected void [noderef] __user *to
arch/x86/kernel/signal.c:359:9: sparse: got unsigned long long [usertype] *
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:359:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long long [usertype] * @@
arch/x86/kernel/signal.c:419:9: sparse: expected void const volatile [noderef] __user *ptr
arch/x86/kernel/signal.c:419:9: sparse: got unsigned long long [usertype] *
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got unsigned long long [usertype] * @@
arch/x86/kernel/signal.c:419:9: sparse: expected void [noderef] __user *to
arch/x86/kernel/signal.c:419:9: sparse: got unsigned long long [usertype] *
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:419:9: sparse: sparse: cast removes address space '__user' of expression
arch/x86/kernel/signal.c:952:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct lockdep_map const *lock @@ got struct lockdep_map [noderef] __rcu * @@
arch/x86/kernel/signal.c:952:9: sparse: expected struct lockdep_map const *lock
arch/x86/kernel/signal.c:952:9: sparse: got struct lockdep_map [noderef] __rcu *
--
kernel/signal.c: note: in included file (through arch/x86/include/uapi/asm/signal.h, arch/x86/include/asm/signal.h, include/uapi/linux/signal.h, ...):
include/uapi/asm-generic/signal-defs.h:83:29: sparse: sparse: multiple address spaces given
kernel/signal.c:195:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:195:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:195:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:198:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:198:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:198:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:480:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:480:9: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:480:9: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:484:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:484:34: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:484:34: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:517:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:517:9: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:517:9: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:520:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:520:36: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:520:36: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:542:53: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct k_sigaction *ka @@ got struct k_sigaction [noderef] __rcu * @@
kernel/signal.c:542:53: sparse: expected struct k_sigaction *ka
kernel/signal.c:542:53: sparse: got struct k_sigaction [noderef] __rcu *
include/uapi/asm-generic/signal-defs.h:83:29: sparse: sparse: multiple address spaces given
kernel/signal.c:695:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:695:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:695:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:697:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:697:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:697:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:1260:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char * @@
kernel/signal.c:1260:29: sparse: expected void const volatile [noderef] __user *ptr
kernel/signal.c:1260:29: sparse: got unsigned char *
>> kernel/signal.c:1260:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got unsigned char * @@
kernel/signal.c:1260:29: sparse: expected void const [noderef] __user *from
kernel/signal.c:1260:29: sparse: got unsigned char *
>> kernel/signal.c:1260:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got unsigned char * @@
kernel/signal.c:1260:29: sparse: expected void const [noderef] __user *from
kernel/signal.c:1260:29: sparse: got unsigned char *
kernel/signal.c:1327:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1327:9: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1327:9: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:1328:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct k_sigaction *action @@ got struct k_sigaction [noderef] __rcu * @@
kernel/signal.c:1328:16: sparse: expected struct k_sigaction *action
kernel/signal.c:1328:16: sparse: got struct k_sigaction [noderef] __rcu *
kernel/signal.c:1347:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1347:34: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1347:34: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:1924:36: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1924:36: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1924:36: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2034:44: sparse: sparse: cast removes address space '__rcu' of expression
kernel/signal.c:2053:65: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2053:65: sparse: expected struct task_struct *tsk
kernel/signal.c:2053:65: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2054:40: sparse: sparse: cast removes address space '__rcu' of expression
kernel/signal.c:2072:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sighand_struct *psig @@ got struct sighand_struct [noderef] __rcu *[noderef] __rcu sighand @@
kernel/signal.c:2072:14: sparse: expected struct sighand_struct *psig
kernel/signal.c:2072:14: sparse: got struct sighand_struct [noderef] __rcu *[noderef] __rcu sighand
kernel/signal.c:2101:46: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected struct task_struct *t @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2101:46: sparse: expected struct task_struct *t
kernel/signal.c:2101:46: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2102:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *parent @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2102:34: sparse: expected struct task_struct *parent
kernel/signal.c:2102:34: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2131:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *parent @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2131:24: sparse: expected struct task_struct *parent
kernel/signal.c:2131:24: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2134:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *parent @@ got struct task_struct [noderef] __rcu *real_parent @@
kernel/signal.c:2134:24: sparse: expected struct task_struct *parent
kernel/signal.c:2134:24: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/signal.c:2167:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sighand_struct *sighand @@ got struct sighand_struct [noderef] __rcu *sighand @@
kernel/signal.c:2167:17: sparse: expected struct sighand_struct *sighand
kernel/signal.c:2167:17: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/signal.c:2205:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2205:41: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2205:41: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2207:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2207:39: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2207:39: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2257:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2257:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2257:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2312:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2312:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2312:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2346:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2346:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2346:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2348:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2348:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2348:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2445:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2445:41: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2445:41: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2530:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2530:41: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2530:41: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2542:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2542:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2542:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2580:52: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2580:52: sparse: expected struct task_struct *tsk
kernel/signal.c:2580:52: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2582:49: sparse: sparse: cast removes address space '__rcu' of expression
kernel/signal.c:2619:49: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sighand_struct *sighand @@ got struct sighand_struct [noderef] __rcu *sighand @@
kernel/signal.c:2619:49: sparse: expected struct sighand_struct *sighand
kernel/signal.c:2619:49: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/signal.c:2951:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2951:27: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2951:27: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2971:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2971:29: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2971:29: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3038:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3038:27: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3038:27: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3040:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3040:29: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3040:29: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3191:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3191:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3191:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3194:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3194:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3194:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3580:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3580:27: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3580:27: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3592:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3592:37: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3592:37: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3597:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3597:35: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3597:35: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3602:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3602:29: sparse: expected struct spinlock [usertype] *lock
vim +359 arch/x86/kernel/signal.c
75779f05264b99 arch/x86/kernel/signal.c Hiroshi Shimamoto 2009-02-27 324
7e907f48980d66 arch/x86/kernel/signal_32.c Ingo Molnar 2008-03-06 325 static int
235b80226b986d arch/x86/kernel/signal.c Al Viro 2012-11-09 326 __setup_frame(int sig, struct ksignal *ksig, sigset_t *set,
7e907f48980d66 arch/x86/kernel/signal_32.c Ingo Molnar 2008-03-06 327 struct pt_regs *regs)
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 328 {
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 329 struct sigframe __user *frame;
7e907f48980d66 arch/x86/kernel/signal_32.c Ingo Molnar 2008-03-06 330 void __user *restorer;
b00d8f8f0b2b39 arch/x86/kernel/signal.c Al Viro 2020-02-15 331 void __user *fp = NULL;
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 332
b00d8f8f0b2b39 arch/x86/kernel/signal.c Al Viro 2020-02-15 333 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fp);
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 334
5c1f178094631e arch/x86/kernel/signal.c Al Viro 2020-02-15 335 if (!user_access_begin(frame, sizeof(*frame)))
3d0aedd9538e6b arch/x86/kernel/signal_32.c Hiroshi Shimamoto 2008-09-12 336 return -EFAULT;
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 337
5c1f178094631e arch/x86/kernel/signal.c Al Viro 2020-02-15 338 unsafe_put_user(sig, &frame->sig, Efault);
b00d8f8f0b2b39 arch/x86/kernel/signal.c Al Viro 2020-02-15 339 unsafe_put_sigcontext(&frame->sc, fp, regs, set, Efault);
5c1f178094631e arch/x86/kernel/signal.c Al Viro 2020-02-15 340 unsafe_put_user(set->sig[1], &frame->extramask[0], Efault);
1a3e4ca41c5a38 arch/x86/kernel/signal_32.c Roland McGrath 2008-04-09 341 if (current->mm->context.vdso)
6f121e548f8367 arch/x86/kernel/signal.c Andy Lutomirski 2014-05-05 342 restorer = current->mm->context.vdso +
0a6d1fa0d2b48f arch/x86/kernel/signal.c Andy Lutomirski 2015-10-05 343 vdso_image_32.sym___kernel_sigreturn;
9fbbd4dd17d071 arch/i386/kernel/signal.c Andi Kleen 2007-02-13 344 else
ade1af77129dea arch/x86/kernel/signal_32.c Jan Engelhardt 2008-01-30 345 restorer = &frame->retcode;
235b80226b986d arch/x86/kernel/signal.c Al Viro 2012-11-09 346 if (ksig->ka.sa.sa_flags & SA_RESTORER)
235b80226b986d arch/x86/kernel/signal.c Al Viro 2012-11-09 347 restorer = ksig->ka.sa.sa_restorer;
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 348
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 349 /* Set up to return from userspace. */
5c1f178094631e arch/x86/kernel/signal.c Al Viro 2020-02-15 350 unsafe_put_user(restorer, &frame->pretcode, Efault);
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 351
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 352 /*
7e907f48980d66 arch/x86/kernel/signal_32.c Ingo Molnar 2008-03-06 353 * This is popl %eax ; movl $__NR_sigreturn, %eax ; int $0x80
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 354 *
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 355 * WE DO NOT USE IT ANY MORE! It's only left here for historical
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 356 * reasons and because gdb uses it as a signature to notice
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 357 * signal handler stack frames.
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 358 */
5c1f178094631e arch/x86/kernel/signal.c Al Viro 2020-02-15 @359 unsafe_put_user(*((u64 *)&retcode), (u64 *)frame->retcode, Efault);
5c1f178094631e arch/x86/kernel/signal.c Al Viro 2020-02-15 360 user_access_end();
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 361
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 362 /* Set up registers for signal handler */
65ea5b03499035 arch/x86/kernel/signal_32.c H. Peter Anvin 2008-01-30 363 regs->sp = (unsigned long)frame;
235b80226b986d arch/x86/kernel/signal.c Al Viro 2012-11-09 364 regs->ip = (unsigned long)ksig->ka.sa.sa_handler;
65ea5b03499035 arch/x86/kernel/signal_32.c H. Peter Anvin 2008-01-30 365 regs->ax = (unsigned long)sig;
92bc2056855b32 arch/x86/kernel/signal_32.c Harvey Harrison 2008-02-08 366 regs->dx = 0;
92bc2056855b32 arch/x86/kernel/signal_32.c Harvey Harrison 2008-02-08 367 regs->cx = 0;
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 368
65ea5b03499035 arch/x86/kernel/signal_32.c H. Peter Anvin 2008-01-30 369 regs->ds = __USER_DS;
65ea5b03499035 arch/x86/kernel/signal_32.c H. Peter Anvin 2008-01-30 370 regs->es = __USER_DS;
65ea5b03499035 arch/x86/kernel/signal_32.c H. Peter Anvin 2008-01-30 371 regs->ss = __USER_DS;
65ea5b03499035 arch/x86/kernel/signal_32.c H. Peter Anvin 2008-01-30 372 regs->cs = __USER_CS;
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 373
283828f3c19ceb arch/i386/kernel/signal.c David Howells 2006-01-18 374 return 0;
b00d8f8f0b2b39 arch/x86/kernel/signal.c Al Viro 2020-02-15 375
b00d8f8f0b2b39 arch/x86/kernel/signal.c Al Viro 2020-02-15 376 Efault:
b00d8f8f0b2b39 arch/x86/kernel/signal.c Al Viro 2020-02-15 377 user_access_end();
b00d8f8f0b2b39 arch/x86/kernel/signal.c Al Viro 2020-02-15 378 return -EFAULT;
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 379 }
^1da177e4c3f41 arch/i386/kernel/signal.c Linus Torvalds 2005-04-16 380
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week