From: Alyssa Rosenzweig Date: Wed, 25 May 2022 14:57:48 +0000 (-0400) Subject: drm/panfrost: Constify argument to has_hw_issue X-Git-Tag: v6.0-rc1~138^2~22^2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a17775a1af59573b1023e4ff2419ba48f4b6f648;p=thirdparty%2Fkernel%2Flinux.git drm/panfrost: Constify argument to has_hw_issue Logically, this function is free of side effects, so any pointers it takes should be const. Needed to avoid a warning in the next patch. Reviewed-by: Steven Price Signed-off-by: Alyssa Rosenzweig Link: https://patchwork.freedesktop.org/patch/msgid/20220525145754.25866-4-alyssa.rosenzweig@collabora.com --- diff --git a/drivers/gpu/drm/panfrost/panfrost_issues.h b/drivers/gpu/drm/panfrost/panfrost_issues.h index 41a714ce6fcee..14670ee58ace5 100644 --- a/drivers/gpu/drm/panfrost/panfrost_issues.h +++ b/drivers/gpu/drm/panfrost/panfrost_issues.h @@ -251,7 +251,7 @@ enum panfrost_hw_issue { #define hw_issues_g76 0 -static inline bool panfrost_has_hw_issue(struct panfrost_device *pfdev, +static inline bool panfrost_has_hw_issue(const struct panfrost_device *pfdev, enum panfrost_hw_issue issue) { return test_bit(issue, pfdev->features.hw_issues);