Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lpc: phytium-lpc-snoop: Convert to platform remove callback returning… #18

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

opsiff
Copy link
Member

@opsiff opsiff commented Nov 13, 2024

… void

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

Log:
drivers/misc/phytium-lpc-snoop.c:317:19: error: initialization of ‘void (*)(struct platform_device )’ from incompatible pointer type ‘int ()(struct platform_device *)’ [-Werror=incompatible-pointer-types]
317 | .remove = phytium_lpc_snoop_remove,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/phytium-lpc-snoop.c:317:19: note: (near initialization for ‘phytium_lpc_snoop_driver..remove’)

… void

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

Log:
drivers/misc/phytium-lpc-snoop.c:317:19: error: initialization of ‘void (*)(struct platform_device *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’ [-Werror=incompatible-pointer-types]
  317 |         .remove = phytium_lpc_snoop_remove,
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/phytium-lpc-snoop.c:317:19: note: (near initialization for ‘phytium_lpc_snoop_driver.<anonymous>.remove’)
@deepin-ci-robot
Copy link

[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 hudeng-go 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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MingcongBai MingcongBai merged commit 2d0795c into deepin-community:deepin/v6.12-rc7 Nov 14, 2024
2 of 8 checks passed
@opsiff opsiff deleted the patch-11 branch November 14, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants