-
Notifications
You must be signed in to change notification settings - Fork 8k
toolchain: Add the __deprecated_version macro #91934
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
base: main
Are you sure you want to change the base?
Conversation
bad5d4e
to
7a8f165
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the warning message output by this macro is rather cryptic:
test.c:19:5: warning: 'foo' is deprecated: 4.3 [-Wdeprecated-declarations]
The message should be more clear to say something like "planned removal in v4.3"
7a8f165
to
24a7853
Compare
24a7853
to
6dabbab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
66bca44
345f30f
to
66bca44
Compare
f8b6446
66bca44
to
f8b6446
Compare
f8b6446
to
a15ba02
Compare
Add the `__deprecated_version` macro to print version information when deprecation warnings are triggered. Signed-off-by: James Roy <[email protected]>
Add the `__deprecated_version` macro to print version information when deprecation warnings are triggered. Signed-off-by: James Roy <[email protected]>
a15ba02
to
0c2703f
Compare
2048da5
to
549896f
Compare
scripts/checkpatch.pl
Outdated
@@ -1,5 +1,6 @@ | |||
#!/usr/bin/env perl | |||
# SPDX-License-Identifier: GPL-2.0 | |||
# SPDX-License-Identifier: Apache-2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last time I checked, Linux has not relicensed their code as Apache 2.0.
Add macro __deprecated_version to the checklists of `scripts/checkpatch.pl` and `scripts/tags.sh`. Signed-off-by: James Roy <[email protected]>
Add `__deprecated_version` macro to the Toolchain entry list. Signed-off-by: James Roy <[email protected]>
549896f
to
2a6ace8
Compare
|
For more to see #87662
Closes: #87662