Skip to content

mass conversion of k_work API #33924

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

Closed
wants to merge 22 commits into from

Conversation

pabigot
Copy link
Collaborator

@pabigot pabigot commented Mar 31, 2021

Absent an assignee to manage the conversion, use coccinelle to do a blanket translation from the deprecated API to the replacement API.

Conversions have been grouped into areas for convenience. There is no guarantee of bisectability between the resulting commits, as conversions in one commit may depend on conversions in another commit. Conversions of remaining time API are not optimized.

pabigot added 8 commits March 31, 2021 10:36
This is a demonstration; all uses of the k_work API should be reviewed
for correctness, rather than rote conversion.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
pabigot added 5 commits March 31, 2021 18:13
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
pabigot added 9 commits April 1, 2021 06:17
Some required transformations were missed by Coccinelle, possibly
because of parsing problems.  A commented API mis-use was fixed manual
now that the introspection isn't required, but the comment has not
been revised.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
Replace all existing deprecated API with the recommended alternative.

Be aware that this does not address architectural errors in the use
of the work API.

Signed-off-by: Peter Bigot <[email protected]>
This reverts commit f06feecff6159ef79bf7d6087e123a31d74e8576.

Signed-off-by: Peter Bigot <[email protected]>
Copy link
Member

@dleach02 dleach02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it help bisectability if these commits were squashed into one?

@jukkar
Copy link
Member

jukkar commented Apr 23, 2021

Would it help bisectability if these commits were squashed into one?

I thought the commits in this PR were just an examples for maintainers to use, so this PR is not to be merged as is anyway.

@galak
Copy link
Collaborator

galak commented May 7, 2021

Closing as all code has been changed in tree now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants