-
Notifications
You must be signed in to change notification settings - Fork 105
drm: arise: use dummy version in-tree to avoid conflicting with DKMS #1382
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
drm: arise: use dummy version in-tree to avoid conflicting with DKMS #1382
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideReplaces the Arise DRM driver’s in-tree version metadata with a “dummy” version to avoid conflicting with DKMS, while preserving the original version block in a comment for reference. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review我来对这个diff进行审查:
改进建议: /* Original version
...
*/
/* Dummy version to avoid conflicting with DKMS */
#define DRIVER_DATE "05/19/2025"
#define DRIVER_MAJOR 0x20
#define DRIVER_MINOR 0x00
#define DRIVER_PATCHLEVEL 0x46
#define DRIVER_CLASS ""
#define DRIVER_NAME "arise" /* 添加引号 */
#define DRIVER_VENDOR "Glenfly Tech Co., Ltd."
#define DRIVER_LICENSE "GPL" /* 使用标准许可证 */
#define DRIVER_VERSION ((DRIVER_MAJOR<<24)|(DRIVER_MINOR<<16)|DRIVER_PATCHLEVEL)
#define DRIVER_VERSION_CHAR "20.00.46"
/* 添加版本号范围检查 */
#if DRIVER_MAJOR > 255 || DRIVER_MINOR > 255 || DRIVER_PATCHLEVEL > 255
#error "Version numbers must be less than 256"
#endif
#define OS_VERSION ""
#define CC_VERSION ""
#define LD_VERSION ""这些改进主要针对代码的规范性和安全性,不会影响功能,但能提高代码的可维护性和可靠性。 |
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.
Hey there - I've reviewed your changes - here's some feedback:
- The
DRIVER_NAMEmacro in the dummy block is missing quotes (should likely be"arise"), otherwise it will not be a valid string literal where used. - Consider removing the large commented-out original version block or at least adding a brief explanation above it, as it may become stale and confuse future readers about which version values are authoritative.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `DRIVER_NAME` macro in the dummy block is missing quotes (should likely be `"arise"`), otherwise it will not be a valid string literal where used.
- Consider removing the large commented-out original version block or at least adding a brief explanation above it, as it may become stale and confuse future readers about which version values are authoritative.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: opsiff The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Pull request overview
This PR addresses a versioning conflict between the in-tree Arise DRM driver and DKMS (Dynamic Kernel Module Support) builds by replacing the production version with a reduced dummy version. The original version block (version 25.00.46, major 0x25) is commented out and replaced with a dummy version (version 20.00.46, major 0x20) to prevent conflicts when both the in-tree and DKMS versions of the driver are present on a system.
Key Changes:
- Comment out the original version definitions (DRIVER_MAJOR 0x25, version "25.00.46")
- Add new dummy version definitions with reduced version number (DRIVER_MAJOR 0x20, version "20.00.46") to avoid DKMS conflicts
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by Sourcery
Enhancements: