== Series Details == Series: Framework for display parameters (rev3) URL : https://patchwork.freedesktop.org/series/124645/ State : warning == Summary == Error: dim checkpatch failed b5f879154dd6 drm/i915/display: Add framework to add parameters specific to display Traceback (most recent call last): File "scripts/spdxcheck.py", line 6, in <module> from ply import lex, yacc ModuleNotFoundError: No module named 'ply' Traceback (most recent call last): File "scripts/spdxcheck.py", line 6, in <module> from ply import lex, yacc ModuleNotFoundError: No module named 'ply' Traceback (most recent call last): File "scripts/spdxcheck.py", line 6, in <module> from ply import lex, yacc ModuleNotFoundError: No module named 'ply' -:79: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #79: new file mode 100644 -:207: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #207: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:124: +intel_display_debugfs_create_int(const char *name, umode_t mode, + struct dentry *parent, int *value) -:216: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #216: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:133: +intel_display_debugfs_create_uint(const char *name, umode_t mode, + struct dentry *parent, unsigned int *value) -:223: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mode' - possible side-effects? #223: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:140: +#define _intel_display_param_create_file(parent, name, mode, valp) \ + do { \ + if (mode) \ + _Generic(valp, \ + bool * : debugfs_create_bool, \ + int * : intel_display_debugfs_create_int, \ + unsigned int * : intel_display_debugfs_create_uint, \ + unsigned long * : debugfs_create_ulong, \ + char ** : debugfs_create_str) \ + (name, mode, parent, valp); \ + } while (0) -:223: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'valp' - possible side-effects? #223: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:140: +#define _intel_display_param_create_file(parent, name, mode, valp) \ + do { \ + if (mode) \ + _Generic(valp, \ + bool * : debugfs_create_bool, \ + int * : intel_display_debugfs_create_int, \ + unsigned int * : intel_display_debugfs_create_uint, \ + unsigned long * : debugfs_create_ulong, \ + char ** : debugfs_create_str) \ + (name, mode, parent, valp); \ + } while (0) -:226: CHECK:CAMELCASE: Avoid CamelCase: <_Generic> #226: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:143: + _Generic(valp, \ -:231: CHECK:SPACING: spaces preferred around that '*' (ctx:WxO) #231: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:148: + char ** : debugfs_create_str) \ ^ -:231: ERROR:SPACING: space prohibited after that '*' (ctx:OxW) #231: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:148: + char ** : debugfs_create_str) \ ^ -:255: WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon #255: FILE: drivers/gpu/drm/i915/display/intel_display_debugfs_params.c:172: +#define REGISTER(T, x, unused, mode, ...) _intel_display_param_create_file( \ + dir, #x, mode, &i915->display.params.x); -:332: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'name' - possible side-effects? #332: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:9: +#define intel_display_param_named(name, T, perm, desc) \ + module_param_named(name, intel_display_modparams.name, T, perm); \ + MODULE_PARM_DESC(name, desc) -:335: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'name' - possible side-effects? #335: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:12: +#define intel_display_param_named_unsafe(name, T, perm, desc) \ + module_param_named_unsafe(name, intel_display_modparams.name, T, perm); \ + MODULE_PARM_DESC(name, desc) -:344: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #344: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:21: +}; +/* -:362: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #362: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:39: +#define _param_dup(valp) \ + _Generic(valp, \ + char ** : _param_dup_charp, \ + default : _param_nop) \ + (valp) -:362: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'valp' - possible side-effects? #362: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:39: +#define _param_dup(valp) \ + _Generic(valp, \ + char ** : _param_dup_charp, \ + default : _param_nop) \ + (valp) -:364: CHECK:SPACING: spaces preferred around that '*' (ctx:WxO) #364: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:41: + char ** : _param_dup_charp, \ ^ -:364: ERROR:SPACING: space prohibited after that '*' (ctx:OxW) #364: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:41: + char ** : _param_dup_charp, \ ^ -:365: WARNING:TABSTOP: Statements should start on a tabstop #365: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:42: + default : _param_nop) \ -:365: ERROR:TRAILING_STATEMENTS: trailing statements should be on next line #365: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:42: + default : _param_nop) \ -:371: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'x' may be better as '(x)' to avoid precedence issues #371: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:48: +#define DUP(T, x, ...) _param_dup(&dest->x); -:371: WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon #371: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:48: +#define DUP(T, x, ...) _param_dup(&dest->x); -:382: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #382: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:59: +#define _param_free(valp) \ + _Generic(valp, \ + char ** : _param_free_charp, \ + default : _param_nop) \ + (valp) -:382: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'valp' - possible side-effects? #382: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:59: +#define _param_free(valp) \ + _Generic(valp, \ + char ** : _param_free_charp, \ + default : _param_nop) \ + (valp) -:384: CHECK:SPACING: spaces preferred around that '*' (ctx:WxO) #384: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:61: + char ** : _param_free_charp, \ ^ -:384: ERROR:SPACING: space prohibited after that '*' (ctx:OxW) #384: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:61: + char ** : _param_free_charp, \ ^ -:385: WARNING:TABSTOP: Statements should start on a tabstop #385: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:62: + default : _param_nop) \ -:385: ERROR:TRAILING_STATEMENTS: trailing statements should be on next line #385: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:62: + default : _param_nop) \ -:391: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'x' may be better as '(x)' to avoid precedence issues #391: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:68: +#define FREE(T, x, ...) _param_free(¶ms->x); -:391: WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon #391: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:68: +#define FREE(T, x, ...) _param_free(¶ms->x); -:401: WARNING:SPDX_LICENSE_TAG: Improper SPDX comment style for 'drivers/gpu/drm/i915/display/intel_display_params.h', please use '/*' instead #401: FILE: drivers/gpu/drm/i915/display/intel_display_params.h:1: +// SPDX-License-Identifier: MIT -:401: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #401: FILE: drivers/gpu/drm/i915/display/intel_display_params.h:1: +// SPDX-License-Identifier: MIT -:425: ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros with multiple statements should be enclosed in a do - while loop #425: FILE: drivers/gpu/drm/i915/display/intel_display_params.h:25: +#define MEMBER(T, member, ...) T member; -:425: WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon #425: FILE: drivers/gpu/drm/i915/display/intel_display_params.h:25: +#define MEMBER(T, member, ...) T member; -:429: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #429: FILE: drivers/gpu/drm/i915/display/intel_display_params.h:29: +}; +#undef MEMBER total: 8 errors, 9 warnings, 16 checks, 372 lines checked a9ecd43fe419 drm/i915/display: Dump also display parameters -:62: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val' - possible side-effects? #62: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:65: +#define _param_print(p, driver_name, name, val) \ + _Generic(val, \ + bool : _param_print_bool, \ + int : _param_print_int, \ + unsigned int : _param_print_uint, \ + unsigned long : _param_print_ulong, \ + char * : _param_print_charp)(p, driver_name, name, val) -:63: CHECK:CAMELCASE: Avoid CamelCase: <_Generic> #63: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:66: + _Generic(val, \ -:79: WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon #79: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:82: +#define PRINT(T, x, ...) _param_print(p, i915->drm.driver->name, #x, i915->display.params.x); total: 0 errors, 1 warnings, 2 checks, 128 lines checked 1bdf32e74da2 drm/i915/display: Move enable_fbc module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:34: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #34: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:31: +intel_display_param_named_unsafe(enable_fbc, int, 0400, + "Enable frame buffer compression for power savings " total: 0 errors, 1 warnings, 1 checks, 73 lines checked 3c6c64b6178d drm/i915/display: Move psr related module parameters under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:35: +intel_display_param_named_unsafe(enable_psr, int, 0400, + "Enable PSR " -:26: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #26: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:40: +intel_display_param_named(psr_safest_params, bool, 0400, + "Replace PSR VBT parameters by the safest and not optimal ones. This " -:31: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #31: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:45: +intel_display_param_named_unsafe(enable_psr2_sel_fetch, bool, 0400, + "Enable PSR2 selective fetch " total: 0 errors, 1 warnings, 3 checks, 120 lines checked 5b094ffa8588 drm/i915/display: Move vbt_firmware module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:31: +intel_display_param_named_unsafe(vbt_firmware, charp, 0400, + "Load VBT from specified file under /lib/firmware"); total: 0 errors, 1 warnings, 1 checks, 40 lines checked cfdfe93121b3 drm/i915/display: Move lvds_channel_mode module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:34: +intel_display_param_named_unsafe(lvds_channel_mode, int, 0400, + "Specify LVDS channel mode " total: 0 errors, 1 warnings, 1 checks, 46 lines checked 7fc5e6b8c19b drm/i915/display: Move panel_use_ssc module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:38: +intel_display_param_named_unsafe(panel_use_ssc, int, 0400, + "Use Spread Spectrum Clock with panels [LVDS/eDP] " total: 0 errors, 1 warnings, 1 checks, 44 lines checked 6c9d449fc6f9 drm/i915/display: Move vbt_sdvo_panel_type module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:34: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #34: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:42: +intel_display_param_named_unsafe(vbt_sdvo_panel_type, int, 0400, + "Override/Ignore selection of SDVO panel mode in the VBT " total: 0 errors, 1 warnings, 1 checks, 42 lines checked 26d5fef4237d drm/i915/display: Move enable_dc module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:46: +intel_display_param_named_unsafe(enable_dc, int, 0400, + "Enable power-saving display C-states. " total: 0 errors, 1 warnings, 1 checks, 44 lines checked 49ea7e891aeb drm/i915/display: Move enable_dpt module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:51: +intel_display_param_named_unsafe(enable_dpt, bool, 0400, + "Enable display page table (DPT) (default: true)"); total: 0 errors, 1 warnings, 1 checks, 63 lines checked 7626e8cbd21a drm/i915/display: Move enable_sagv module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:54: +intel_display_param_named_unsafe(enable_sagv, bool, 0600, + "Enable system agent voltage/frequency scaling (SAGV) (default: true)"); total: 0 errors, 1 warnings, 1 checks, 49 lines checked 823f9537a15a drm/i915/display: Move disable_power_well module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:57: +intel_display_param_named_unsafe(disable_power_well, int, 0400, + "Disable display power wells when possible " total: 0 errors, 1 warnings, 1 checks, 77 lines checked e2ae9e3b50a4 drm/i915/display: Move enable_ips module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one total: 0 errors, 1 warnings, 0 checks, 46 lines checked e0af7fbee796 drm/i915/display: Move invert_brightness module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:53: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #53: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:63: +intel_display_param_named_unsafe(invert_brightness, int, 0400, + "Invert backlight brightness " total: 0 errors, 1 warnings, 1 checks, 65 lines checked 12e14692bad7 drm/i915/display: Move edp_vswing module parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:38: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #38: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:71: +intel_display_param_named_unsafe(edp_vswing, int, 0400, + "Ignore/Override vswing pre-emph table selection from VBT " total: 0 errors, 1 warnings, 1 checks, 49 lines checked 7d0be537e0e2 drm/i915/display: Move enable_dpcd_backlightmodule parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:76: +intel_display_param_named(enable_dpcd_backlight, int, 0400, + "Enable support for DPCD backlight control" total: 0 errors, 1 warnings, 1 checks, 50 lines checked af46e2f0298d drm/i915/display: Move load_detect_test parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:43: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #43: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:80: +intel_display_param_named_unsafe(load_detect_test, bool, 0400, + "Force-enable the VGA load detect code for testing (default:false). " total: 0 errors, 1 warnings, 1 checks, 50 lines checked 37c4f496e191 drm/i915/display: Move force_reset_modeset_test parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:84: +intel_display_param_named_unsafe(force_reset_modeset_test, bool, 0400, + "Force a modeset during gpu reset for testing (default:false). " total: 0 errors, 1 warnings, 1 checks, 43 lines checked bd12ea3feddf drm/i915/display: Move disable_display parameter under display -:11: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:33: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #33: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:88: +intel_display_param_named(disable_display, bool, 0400, + "Disable display (default: false)"); total: 0 errors, 1 warnings, 1 checks, 41 lines checked 22a1c56acd14 drm/i915/display: Use device parameters instead of module in I915_STATE_WARN -:38: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #38: FILE: drivers/gpu/drm/i915/i915_params.c:97: +i915_param_named(verbose_state_checks, bool, 0400, "Enable verbose logs (ie. WARN_ON()) in case of unexpected hw state conditions."); total: 0 errors, 0 warnings, 1 checks, 17 lines checked 07c9bfa33f61 drm/i915/display: Move verbose_state_checks under display -:10: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:33: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #33: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:91: +intel_display_param_named(verbose_state_checks, bool, 0400, + "Enable verbose logs (ie. WARN_ON()) in case of unexpected hw state conditions."); total: 0 errors, 1 warnings, 1 checks, 40 lines checked 14b7107b76f1 drm/i915/display: Move nuclear_pageflip under display -:10: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:33: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #33: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:94: +intel_display_param_named_unsafe(nuclear_pageflip, bool, 0400, + "Force enable atomic functionality on platforms that don't have full support yet."); total: 0 errors, 1 warnings, 1 checks, 40 lines checked a9556e698002 drm/i915/display: Move enable_dp_mst under display -:10: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one -:20: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #20: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:97: +intel_display_param_named_unsafe(enable_dp_mst, bool, 0400, + "Enable multi-stream transport (MST) for new DisplayPort sinks. (default: true)"); total: 0 errors, 1 warnings, 1 checks, 55 lines checked b08c63c91437 drm/i915/display: Use same permissions for enable_sagv as for rest -:25: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #25: FILE: drivers/gpu/drm/i915/display/intel_display_params.c:54: +intel_display_param_named_unsafe(enable_sagv, bool, 0400, "Enable system agent voltage/frequency scaling (SAGV) (default: true)"); total: 0 errors, 0 warnings, 1 checks, 8 lines checked