deepin-community / kernel-rolling

Kernel source tree for rolling-stable and mainline releases
Other
2 stars 1 forks source link

net: ethernet: phytmac: Convert to platform remove callback returning… #24

Closed opsiff closed 2 weeks ago

opsiff commented 2 weeks ago

… void

0edb555: platform: Make platform_driver::remove() return void cause build error, so convert .remove from int to void

drivers/net/ethernet/phytium/phytmac_platform.c:243:19: error: initialization of ‘void ()(struct platform_device )’ from incompatible pointer type ‘int ()(struct platform_device )’ [-Werror=incompatible-pointer-types] 243 | .remove = phytmac_plat_remove, | ^~~~~~~ drivers/net/ethernet/phytium/phytmac_platform.c:243:19: note: (near initialization for ‘phytmac_driver..remove’)

deepin-ci-robot commented 2 weeks ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign xzl01 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[https:/raw.githubusercontent.com/deepin-community/template-repository/master/debian/deepin/OWNERS](https://github.com/deepin-community/kernel-rolling/blob/deepin/v6.12-rc7/https:/raw.githubusercontent.com/deepin-community/template-repository/master/debian/deepin/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment