Skip to content

Conversation

gastmaier
Copy link
Contributor

@gastmaier gastmaier commented Aug 4, 2025

PR Description

To solve

cast from 'void (*)(struct device *)' to 'devm_action_fn' (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict] 48 | status = devm_add_action_helper(thisIpcore->dev, (devm_action_fn)put_device, &thisIpcore->i2c->dev); | 

on strict compile

Not sure the upstream for this driver.

Note: changed base to test #2877

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly (if there is the case)

To solve
  cast from 'void (*)(struct device *)' to 'devm_action_fn' (aka 'void
  (*)(void *)') converts to incompatible function type
  [-Werror,-Wcast-function-type-strict]
on strict compile

Signed-off-by: Jorge Marques <[email protected]>
@gastmaier gastmaier changed the base branch from main to ci/changes August 4, 2025 15:56
To avoid unused warnings.

Signed-off-by: Jorge Marques <[email protected]>
@gastmaier gastmaier closed this Aug 5, 2025
@gastmaier gastmaier reopened this Aug 5, 2025
Base automatically changed from ci/changes to main August 5, 2025 12:01
@gastmaier gastmaier marked this pull request as draft August 6, 2025 08:01
@gastmaier gastmaier changed the base branch from main to ci/changes August 6, 2025 08:01
@gastmaier gastmaier force-pushed the staging/mw-fix branch 3 times, most recently from ba04519 to c8f46b8 Compare August 6, 2025 09:04
@gastmaier gastmaier force-pushed the staging/mw-fix branch 3 times, most recently from 3ca0cc8 to d2196a2 Compare August 6, 2025 11:58
Base automatically changed from ci/changes to main August 6, 2025 12:01
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.

1 participant