[LU-4453] Have prepare-commit-msg or checkpatch.pl to warn about deprecated cfs_* uses Created: 07/Jan/14 Updated: 03/Jun/14 Resolved: 03/Jun/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.6.0 |
| Fix Version/s: | Lustre 2.6.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andreas Dilger | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | RoDC, checkpatch | ||
| Severity: | 3 |
| Rank (Obsolete): | 12208 |
| Description |
|
It would be useful for prepare-commit-msg and/or checkpatch.pl warn about cfs_list_() and cfs_atomic_() and other deprecated wrappers in new patches. I think checkpatch.pl has a feature for reporting on deprecated function usage, or we could call the sed script to report on any changes that it finds. Now that we are close to finishing the cfs_* wrapper removal we don't want to introduce new users in patches that are landing. |
| Comments |
| Comment by John Hammond [ 08/Jan/14 ] |
|
For checkpatch.pl to warn on cfs_xxx() identifiers we would need to modify Documentation/feature-removal-schedule.txt in the kernel source. Or we could modify checkpatch.pl. Or we could use sed. |
| Comment by John Hammond [ 12/Feb/14 ] |
|
What exactly should we warn about:
Other? We should also update the coding guidelines to say what's deprecated. |
| Comment by John Hammond [ 12/Feb/14 ] |
|
| Comment by John Hammond [ 12/Feb/14 ] |
|
Bad functions:
Including asm headers. |
| Comment by John Hammond [ 11/Mar/14 ] |
|
Please see http://review.whamcloud.com/#/c/9585/. |
| Comment by Li Xi (Inactive) [ 12/Mar/14 ] |
|
Do we really need to remove the checking of Documentation/feature-removal-schedule.txt? I think it might be better if we both check Documentation/feature-removal-schedule.txt and keep a special list of Lustre (e.g. cfs_*). Otherwise, it is easy to miss some deprecated functions/include files in Documentation/feature-removal-schedule.txt. |
| Comment by John Hammond [ 12/Mar/14 ] |
|
Hi Li Xi, I see your point, but when I looked at checkpatch.pl from the 3.12 tree I saw that the deprecated function logic had been removed entirely. |
| Comment by Li Xi (Inactive) [ 12/Mar/14 ] |
|
Ah, I see. That file has been removed since 9c0ece069b3. Thanks for pointing that out. |
| Comment by Jodi Levi (Inactive) [ 03/Jun/14 ] |
|
Patch landed to Master. |