]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: remove trailing semicolon from AMDGPU_PM_POLICY_ATTR macro
authorYang Wang <kevinyang.wang@amd.com>
Wed, 18 Mar 2026 00:58:07 +0000 (20:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2026 14:48:09 +0000 (10:48 -0400)
commit0d892afb52d2b940d891b6b52dc9f04debef2d81
tree62a0db9be9bee7956ad5b07a7e5253682e561761
parent3d9de5d86a1658cadb311461b001eb1df67263ad
drm/amd/pm: remove trailing semicolon from AMDGPU_PM_POLICY_ATTR macro

macros should not include a trailing semicolon as per kernel coding
style (checkpatch.pl warning).

move the semicolon from the macro definition to the invocation sites instead.

checkpatch.pl logs:
WARNING: macros should not use a trailing semicolon
+#define AMDGPU_PM_POLICY_ATTR(_name, _id)                                  \
+       static struct amdgpu_pm_policy_attr pm_policy_attr_##_name = {     \
+               .dev_attr = __ATTR(_name, 0644, amdgpu_get_pm_policy_attr, \
+                                  amdgpu_set_pm_policy_attr),             \
+               .id = PP_PM_POLICY_##_id,                                  \
+       };

Fixes: 4d154b1ca580 ("drm/amd/pm: Add support for DPM policies")
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c