mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/imagination: annotate pvr_fw_version_packed() with __maybe_unused
Building with clang and W=1 leads to warning about unused
pvr_fw_version_packed(). Fix by annotating it with __maybe_unused.
See also commit 6863f5643d ("kbuild: allow Clang to find unused static
inline functions for W=1 build").
Reviewed-by: Matt Coster <matt.coster@imgtec.com>
Tested-by: Nathan Chancellor <nathan@kernel.org> # build
Link: https://patchwork.freedesktop.org/patch/msgid/190e4eefef6c5e62052a01af0084c69361e216ef.1725962479.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
298766ac8b
commit
60c174898d
|
|
@ -220,7 +220,7 @@ pvr_ioctl_get_bo_mmap_offset(struct drm_device *drm_dev, void *raw_args,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static __always_inline u64
|
||||
static __always_inline __maybe_unused u64
|
||||
pvr_fw_version_packed(u32 major, u32 minor)
|
||||
{
|
||||
return ((u64)major << 32) | minor;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user