Skip to content

updating micron plugin with latest models support added#2772

Closed
sivaprasad6541 wants to merge 2 commits intolinux-nvme:masterfrom
sivaprasad6541:update-micron-plugin-with-new-models-support
Closed

updating micron plugin with latest models support added#2772
sivaprasad6541 wants to merge 2 commits intolinux-nvme:masterfrom
sivaprasad6541:update-micron-plugin-with-new-models-support

Conversation

@sivaprasad6541
Copy link
Contributor

No description provided.

@igaw
Copy link
Collaborator

igaw commented May 7, 2025

@sivaprasad6541 the reason I haven't pulled it yet, is that there are many whitespace issues reported by checkpatch, e.g. inconsistent indention etc.

Please address the issues reported by checkpath, but the invidiual errors/warnings with a grain of salt. Checkpatch is a bit overeager and not everything make sense. Generally follow the kernel coding style.

Thanks!

nvme_print_flags_t flags;

struct {
char *err;
Copy link
Contributor

Choose a reason for hiding this comment

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

why not

const char *

struct json_object *logPages = NULL;
struct json_object *stats = NULL;
int field_count = ARRAY_SIZE(ocp_c0_log_page);
int field_count = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

probably should be an unsigned type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As we pass this field to generic_parser as a parameter, we had to use just int.

struct json_object *root;
struct json_object *logPages;
struct json_object *stats = NULL;
int field_count = ARRAY_SIZE(hyperscale_c0_log_page);
Copy link
Contributor

Choose a reason for hiding this comment

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

probably should be an unsigned type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As we pass this field to generic_parser as a parameter, we had to use just int.

int val;
} pcie_correctable_errors[] = {
{ "Unsupported Request Error Status (URES)", 20,
{ (char *)"Unsupported Request Error Status (URES)", 20,
Copy link
Contributor

Choose a reason for hiding this comment

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

Just change type to 'const char *' and casting won't be needed.

@sivaprasad6541 sivaprasad6541 deleted the update-micron-plugin-with-new-models-support branch May 8, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants