net: dm9051: Make remove() callback a void function
Subsystems (2)
PATCH 1/1 net: dm9051: Make remove() callback a void function
From: Stephen Rothwell <[email protected]>
Changes introduced since the merge window in the spi subsystem and available at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
make the remove() callback for spi return void rather than int, breaking the newly added dm9051 driver fail to build. This patch fixes this issue, converting the remove() function provided by the driver to return void.
--- drivers/net/ethernet/davicom/dm9051.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/davicom/dm9051.c +1 -3
@@ -1225,15 +1225,13 @@ static int dm9051_probe(struct spi_device *spi)return 0 ; } -static int dm9051_drv_remove (struct spi_device *spi) +static void dm9051_drv_remove (struct spi_device *spi) {struct device *dev = &spi->dev;struct net_device *ndev =dev_get_drvdata (dev);struct board_info *db =to_dm9051_board (ndev);phy_disconnect (db->phydev); - -return 0 ; }static const struct of_device_id dm9051_match_table[] = {
Signature · 1 line
2.30.2
PATCH 1/1 net: dm9051: Make remove() callback a void function
From: Stephen Rothwell <[email protected]>
Changes introduced since the merge window in the spi subsystem and available at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
make the remove() callback for spi return void rather than int, breaking the newly added dm9051 driver fail to build. This patch fixes this issue, converting the remove() function provided by the driver to return void.
--- drivers/net/ethernet/davicom/dm9051.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/davicom/dm9051.c +1 -3
@@ -1225,15 +1225,13 @@ static int dm9051_probe(struct spi_device *spi)return 0 ; } -static int dm9051_drv_remove (struct spi_device *spi) +static void dm9051_drv_remove (struct spi_device *spi) {struct device *dev = &spi->dev;struct net_device *ndev =dev_get_drvdata (dev);struct board_info *db =to_dm9051_board (ndev);phy_disconnect (db->phydev); - -return 0 ; }static const struct of_device_id dm9051_match_table[] = {
Signature · 1 line
2.30.2
Jakub Kicinski
maintainerQuoted 7 lines · On Mon, 28 Feb 2022 17:39:57 +0000 Mark Brown wrote:
From: Stephen Rothwell <[email protected]>
Changes introduced since the merge window in the spi subsystem and available at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
Quoted 8 lines
make the
remove()callback for spi return void rather than int, breaking the newly added dm9051 driver fail to build. This patch fixes this issue, converting theremove()function provided by the driver to return void.Signed-off-by Stephen Rothwell <[email protected]>[Rewrote commit message -- broonie]Signed-off-by Mark Brown <[email protected]>
Pulled & applied, thanks!
Hi Jakub,
Quoted 14 lines · On Mon, 28 Feb 2022 11:49:13 -0800 Jakub Kicinski <[email protected]> wrote:
Quoted 12 lines · On Mon, 28 Feb 2022 17:39:57 +0000 Mark Brown wrote:
From: Stephen Rothwell <[email protected]>
Changes introduced since the merge window in the spi subsystem and available at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
make the
remove()callback for spi return void rather than int, breaking the newly added dm9051 driver fail to build. This patch fixes this issue, converting theremove()function provided by the driver to return void.
Quoted 5 lines
Quoted 3 lines
Signed-off-by Stephen Rothwell <[email protected]>[Rewrote commit message -- broonie]Signed-off-by Mark Brown <[email protected]>Pulled & applied, thanks!
For future reference, that patch of mine should have been applied as part of the merge commit that brought in the topic branch.
Signature · 2 lines
Cheers, Stephen Rothwell
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 28 Feb 2022 17:39:57 +0000 you wrote:
From: Stephen Rothwell <[email protected]>
Changes introduced since the merge window in the spi subsystem and available at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
[...]
Here is the summary with links:
- net: dm9051: Make remove() callback a void function
https://git.kernel.org/netdev/net-next/c/0b9e69e1a1e4
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
kernel test robot
build botThank you for the patch! Yet something to improve:
Hi Mark,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[cannot apply to net/master horms-ipvs/master linus/master v5.17-rc6 next-20220301] [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/Mark-Brown/net-dm9051-Make-remove-callback-a-void-function/20220301-020029 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git b42a738e409b62f38a15ce7530e8290b00f823a4 config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20220302/[email protected]/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/4f1ed1b207b356e0ab8359938d59742f8bf418a9
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mark-Brown/net-dm9051-Make-remove-callback-a-void-function/20220301-020029 git checkout 4f1ed1b207b356e0ab8359938d59742f8bf418a9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/net/ethernet/davicom/
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/davicom/dm9051.c:1253:12: error: incompatible function pointer types initializing 'int (*)(struct spi_device *)' with an expression of type 'void (struct spi_device *)' [-Werror,-Wincompatible-function-pointer-types]
.remove = dm9051_drv_remove,
^~~~~~~~~~~~~~~~~1 error generated.
vim +1253 drivers/net/ethernet/davicom/dm9051.c
2dc95a4d30edda Joseph CHAMG 2022-02-11 1246
2dc95a4d30edda Joseph CHAMG 2022-02-11 1247 static struct spi_driver dm9051_driver = {
2dc95a4d30edda Joseph CHAMG 2022-02-11 1248 .driver = {
2dc95a4d30edda Joseph CHAMG 2022-02-11 1249 .name = DRVNAME_9051,
2dc95a4d30edda Joseph CHAMG 2022-02-11 1250 .of_match_table = dm9051_match_table,
2dc95a4d30edda Joseph CHAMG 2022-02-11 1251 },
2dc95a4d30edda Joseph CHAMG 2022-02-11 1252 .probe = dm9051_probe,
2dc95a4d30edda Joseph CHAMG 2022-02-11 @1253 .remove = dm9051_drv_remove,
2dc95a4d30edda Joseph CHAMG 2022-02-11 1254 .id_table = dm9051_id_table,
2dc95a4d30edda Joseph CHAMG 2022-02-11 1255 };
2dc95a4d30edda Joseph CHAMG 2022-02-11 1256 module_spi_driver(dm9051_driver);2dc95a4d30edda Joseph CHAMG 2022-02-11 1257
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]