Rather than using #ifdef's around a static char array, use the
existing helper macro from <sys/cdefs.h> for SCCS IDs. To
preserve existing behavior, add -DNO__SCCSID to CFLAGS to not
include SCCS IDs in the built library by default.
Details
Details
- Reviewers
imp brooks rgrimes dab - Commits
- rS334053: Use __SCCSID for SCCS IDs in libkvm sources.
- Built a libkvm and compared 'readelf -p .comment' before and after.
- Also accidentally got the CFLAGS wrong the first try which showed the SCCS IDs in .comment.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 16752 Build 16641: arc lint + arc unit
Event Timeline
Comment Actions
LGTM. I'm not sure the blank line between FBSDID and SCCSID is useful, but don't care much one way or another.
Comment Actions
Yeah, I actually meant to post a comment asking about the blank line. I would be fine with collapsing it now that the ID isn't surrounded by N layers of #ifdef.
Comment Actions
I would like to see the blank line collapsed.
Other than I like the decluttering effect this patch has.