------------------------------------------------------------------------------------ Commit 0eca1044b5ce ("nvme-auth: modify nvme_auth_transform_key() to return status") ------------------------------------------------------------------------------------ total: 0 errors, 0 warnings, 0 checks, 221 lines checked Commit 0eca1044b5ce ("nvme-auth: modify nvme_auth_transform_key() to return status") has no obvious style problems and is ready for submission. ----------------------------------------------------------- Commit 116fd5ce8dac ("nvme-keyring: add 'dhchap' key type") ----------------------------------------------------------- total: 0 errors, 0 warnings, 0 checks, 239 lines checked Commit 116fd5ce8dac ("nvme-keyring: add 'dhchap' key type") has no obvious style problems and is ready for submission. ------------------------------------------------------------- Commit 2f3399626586 ("nvme-auth: switch to use 'struct key'") ------------------------------------------------------------- CHECK: Alignment should match open parenthesis #305: FILE: drivers/nvme/common/keyring.c:475: +struct key *nvme_dhchap_psk_create(struct key *keyring, + const u8 *data, size_t data_len) CHECK: Comparison to NULL could be written "!data" #317: FILE: drivers/nvme/common/keyring.c:487: + if (data == NULL || !data_len) CHECK: Alignment should match open parenthesis #419: FILE: drivers/nvme/host/auth.c:1042: + ctrl->host_key = nvme_auth_extract_key(ctrl->opts->keyring, + ctrl->opts->dhchap_secret, CHECK: Alignment should match open parenthesis #431: FILE: drivers/nvme/host/auth.c:1051: + ctrl->ctrl_key = nvme_auth_extract_key(ctrl->opts->keyring, + ctrl->opts->dhchap_ctrl_secret, CHECK: Alignment should match open parenthesis #705: FILE: include/linux/nvme-keyring.h:23: +struct key *nvme_dhchap_psk_create(struct key *keyring, + const u8 *data, size_t data_len); CHECK: Please use a blank line after function/struct/union/enum declarations #726: FILE: include/linux/nvme-keyring.h:46: +} +static inline struct key *nvme_dhchap_psk_refresh(struct key *keyring, CHECK: Alignment should match open parenthesis #727: FILE: include/linux/nvme-keyring.h:47: +static inline struct key *nvme_dhchap_psk_refresh(struct key *keyring, + const char *hostnqn, const char *subnqn, CHECK: Please use a blank line after function/struct/union/enum declarations #732: FILE: include/linux/nvme-keyring.h:52: +} +static inline struct key *nvme_dhchap_psk_lookup(struct key *keyring, CHECK: Alignment should match open parenthesis #733: FILE: include/linux/nvme-keyring.h:53: +static inline struct key *nvme_dhchap_psk_lookup(struct key *keyring, + const char *hostnqn, const char *subnqn, u8 hmac); CHECK: Please use a blank line after function/struct/union/enum declarations #737: FILE: include/linux/nvme-keyring.h:57: +} +u8 nvme_dhchap_psk_hash(struct key *key) total: 0 errors, 0 warnings, 10 checks, 643 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 2f3399626586 ("nvme-auth: switch to use 'struct key'") has style problems, please review. --------------------------------------------------------------------- Commit 4fe287533f16 ("nvme: parse dhchap keys during option parsing") --------------------------------------------------------------------- CHECK: braces {} should be used on all arms of this statement #389: FILE: drivers/nvme/host/sysfs.c:829: + if (key_validate(key)) [...] + else { [...] CHECK: Unbalanced braces around else statement #391: FILE: drivers/nvme/host/sysfs.c:831: + else { CHECK: braces {} should be used on all arms of this statement #486: FILE: drivers/nvme/host/sysfs.c:907: + if (key_validate(key)) [...] + else { [...] CHECK: Unbalanced braces around else statement #488: FILE: drivers/nvme/host/sysfs.c:909: + else { CHECK: Alignment should match open parenthesis #577: FILE: drivers/nvme/host/sysfs.c:975: +static ssize_t dhchap_key_show(struct device *dev, + struct device_attribute *attr, char *buf) CHECK: braces {} should be used on all arms of this statement #586: FILE: drivers/nvme/host/sysfs.c:984: + if (key_validate(key)) [...] + else { [...] CHECK: Unbalanced braces around else statement #588: FILE: drivers/nvme/host/sysfs.c:986: + else { CHECK: Alignment should match open parenthesis #601: FILE: drivers/nvme/host/sysfs.c:999: +static ssize_t dhchap_ctrl_key_show(struct device *dev, + struct device_attribute *attr, char *buf) total: 0 errors, 0 warnings, 8 checks, 562 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 4fe287533f16 ("nvme: parse dhchap keys during option parsing") has style problems, please review. ---------------------------------------------------------------------------- Commit 2126979c85cf ("nvmet-auth: parse dhchap key from configfs attribute") ---------------------------------------------------------------------------- CHECK: braces {} should be used on all arms of this statement #290: FILE: drivers/nvme/target/configfs.c:2249: + if (key_validate(key)) [...] + else { [...] CHECK: Unbalanced braces around else statement #292: FILE: drivers/nvme/target/configfs.c:2251: + else { CHECK: braces {} should be used on all arms of this statement #347: FILE: drivers/nvme/target/configfs.c:2306: + if (key_validate(key)) [...] + else { [...] CHECK: Unbalanced braces around else statement #349: FILE: drivers/nvme/target/configfs.c:2308: + else { total: 0 errors, 0 warnings, 4 checks, 376 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 2126979c85cf ("nvmet-auth: parse dhchap key from configfs attribute") has style problems, please review. ------------------------------------------------------------------------------- Commit fe4a46515454 ("nvme: allow to pass in key description as dhchap secret") ------------------------------------------------------------------------------- CHECK: Unbalanced braces around else statement #236: FILE: drivers/nvme/host/sysfs.c:837: + } else CHECK: Unbalanced braces around else statement #303: FILE: drivers/nvme/host/sysfs.c:924: + } else CHECK: Unbalanced braces around else statement #499: FILE: drivers/nvme/target/configfs.c:2257: + } else CHECK: Unbalanced braces around else statement #516: FILE: drivers/nvme/target/configfs.c:2315: + } else total: 0 errors, 0 warnings, 4 checks, 451 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit fe4a46515454 ("nvme: allow to pass in key description as dhchap secret") has style problems, please review. --------------------------------------------------------------------------------------- Commit edbcc6dc0d73 ("nvme-auth: wait for authentication to finish when changing keys") --------------------------------------------------------------------------------------- total: 0 errors, 0 warnings, 0 checks, 30 lines checked Commit edbcc6dc0d73 ("nvme-auth: wait for authentication to finish when changing keys") has no obvious style problems and is ready for submission. ---------------------------------------------------------------------- Commit 5ff6694c886c ("nvme-fabrics: allow to pass in keyring by name") ---------------------------------------------------------------------- total: 0 errors, 0 warnings, 0 checks, 37 lines checked Commit 5ff6694c886c ("nvme-fabrics: allow to pass in keyring by name") has no obvious style problems and is ready for submission. ---------------------------------------------------------------------- Commit c1f00d7ebc22 ("nvmet: add configfs attribute 'dhchap_keyring'") ---------------------------------------------------------------------- CHECK: Alignment should match open parenthesis #42: FILE: drivers/nvme/target/configfs.c:2351: +static ssize_t nvmet_host_dhchap_keyring_show(struct config_item *item, + char *page) CHECK: Alignment should match open parenthesis #67: FILE: drivers/nvme/target/configfs.c:2376: +static ssize_t nvmet_host_dhchap_keyring_store(struct config_item *item, + const char *page, size_t count) total: 0 errors, 0 warnings, 2 checks, 95 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit c1f00d7ebc22 ("nvmet: add configfs attribute 'dhchap_keyring'") has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.