CHECK: Macro argument 'mcdev' may be better as '(mcdev)' to avoid precedence issues #161: FILE: drivers/fwctl/mlx5/main.c:11: +#define mlx5ctl_err(mcdev, format, ...) \ + dev_err(&mcdev->fwctl.dev, format, ##__VA_ARGS__) CHECK: Macro argument 'mcdev' may be better as '(mcdev)' to avoid precedence issues #164: FILE: drivers/fwctl/mlx5/main.c:14: +#define mlx5ctl_dbg(mcdev, format, ...) \ + dev_dbg(&mcdev->fwctl.dev, "PID %u: " format, current->pid, \ + ##__VA_ARGS__) CHECK: Please use a blank line after function/struct/union/enum declarations #178: FILE: drivers/fwctl/mlx5/main.c:28: +}; +DEFINE_FREE(mlx5ctl, struct mlx5ctl_dev *, if (_T) fwctl_put(&_T->fwctl)); ERROR: trailing statements should be on next line #178: FILE: drivers/fwctl/mlx5/main.c:28: +DEFINE_FREE(mlx5ctl, struct mlx5ctl_dev *, if (_T) fwctl_put(&_T->fwctl)); CHECK: Lines should not end with a '(' #519: FILE: drivers/fwctl/mlx5/main.c:369: + struct mlx5ctl_dev *mcdev __free(mlx5ctl) = fwctl_alloc_device( total: 1 errors, 0 warnings, 4 checks, 510 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 81df0ce8a427 ("fwctl/mlx5: Support for communicating with mlx5 fw") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.