Skip to content
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

plugin/ocp_fid_c6h:Added the ocp C6h feature api #2097

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

VigneshwaranSaravana
Copy link
Contributor

@VigneshwaranSaravana VigneshwaranSaravana commented Oct 20, 2023

Added the ocp C6h feature api.

Reviewed-by: Karthik Balan karthik.b82@samsung.com, Arunpandian J arun.j@samsung.com
Signed-off-by: Vigneshwaran Saravanan/SSD TS Dev /SSIR/Engineer/Samsung Electronics s.vignesh@samsung.com

Reviewed-by: Karthik Balan karthik.b82@samsung.com, Arunpandian J arun.j@samsung.com
Signed-off-by: Vigneshwaran Saravanan/SSD TS Dev /SSIR/Engineer/Samsung Electronics <s.vignesh@samsung.com>
static int set_plp_health_check_interval(int argc, char **argv, struct command *cmd,
struct plugin *plugin)
{
const char *desc = "Define Issue Set Feature command (FID : 0xC2) PLP Health Check Interval";
Copy link
Contributor

@ikegami-t ikegami-t Oct 23, 2023

Choose a reason for hiding this comment

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

The indentations should be fixed and also please refer the commit messages PR comments below to check patch.

  1. plugins/wdc: enhanced SN861 device support #2079 (comment)
  2. plugins/memblaze: Add smart-log-add and latency-feature functions #2087 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, you can use checkpatch.pl from the Linux project to figure out the obvious style problems:

$ ~/work/linux/scripts/checkpatch.pl -g HEAD 
WARNING: Missing commit description - Add an appropriate one

WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#20: 
new file mode 100644

ERROR: trailing whitespace
#95: FILE: Documentation/nvme-ocp-set-plp-health-check-interval.txt:11:
+'nvme ocp set-plp-health-check-interval' <device> [--plp_health_interval=<plp_health_interval> | -p <plp_health_interval>] [--save | -s] [--no-uuid | -n] $

ERROR: code indent should use tabs where possible
#153: FILE: plugins/ocp/ocp-nvme.c:1970:
+                struct plugin *plugin)$

WARNING: please, no spaces at the start of a line
#153: FILE: plugins/ocp/ocp-nvme.c:1970:
+                struct plugin *plugin)$

WARNING: please, no spaces at the start of a line
#155: FILE: plugins/ocp/ocp-nvme.c:1972:
+    const char *desc = "Define Issue Set Feature command (FID : 0xC2) PLP Health Check Interval";$

FWIW, we just added a checkpatch.pl github workflow check to libnvme. I suppose we should also
add this to nvme-cli soon. I just want to see how it work in libnvme first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Incorporated the review comments

Copy link
Contributor

Choose a reason for hiding this comment

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

Still checkpatch.pl erorrs and warnings are remained as head.log and head^.log.

Reviewed-by: Karthik Balan karthik.b82@samsung.com, Arunpandian J arun.j@samsung.com
Signed-off-by: Vigneshwaran Saravanan/SSD TS Dev /SSIR/Engineer/Samsung Electronics <s.vignesh@samsung.com>
@igaw igaw merged commit 70b4959 into linux-nvme:master Nov 7, 2023
15 checks passed
@igaw
Copy link
Collaborator

igaw commented Nov 7, 2023

Thanks!

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