deepin-community / kernel-rolling

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

can: phytium: Convert to platform remove callback returning void #21

Closed opsiff closed 2 weeks ago

opsiff commented 2 weeks ago

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

Log: drivers/net/can/phytium/phytium_can_platform.c:220:19: error: initialization of ‘void ()(struct platform_device )’ from incompatible pointer type ‘int ()(struct platform_device )’ [-Werror=incompatible-pointer-types] 220 | .remove = phytium_can_plat_remove, | ^~~~~~~ drivers/net/can/phytium/phytium_can_platform.c:220:19: note: (near initialization for ‘phytium_can_plat_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 liujianqiang-niu 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