linux-stable/include/uapi/drm
Carlos Llamas 45611d5ad8 drm/fourcc: fix integer type usage in uapi header
[ Upstream commit 20b8264394 ]

Kernel uapi headers are supposed to use __[us]{8,16,32,64} types defined
by <linux/types.h> as opposed to 'uint32_t' and similar. See [1] for the
relevant discussion about this topic. In this particular case, the usage
of 'uint64_t' escaped headers_check as these macros are not being called
here. However, the following program triggers a compilation error:

  #include <drm/drm_fourcc.h>

  int main()
  {
  	unsigned long x = AMD_FMT_MOD_CLEAR(RB);
  	return 0;
  }

gcc error:
  drm.c:5:27: error: ‘uint64_t’ undeclared (first use in this function)
      5 |         unsigned long x = AMD_FMT_MOD_CLEAR(RB);
        |                           ^~~~~~~~~~~~~~~~~

This patch changes AMD_FMT_MOD_{SET,CLEAR} macros to use the correct
integer types, which fixes the above issue.

  [1] https://lkml.org/lkml/2019/6/5/18

Fixes: 8ba16d5993 ("drm/fourcc: Add AMD DRM modifiers.")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-07 17:55:00 +02:00
..
amdgpu_drm.h drm/amdgpu: add gc 10.3.6 support 2022-02-17 15:59:06 -05:00
armada_drm.h
drm.h drm: document DRM_IOCTL_MODE_GETFB2 2021-12-14 12:03:32 +01:00
drm_fourcc.h drm/fourcc: fix integer type usage in uapi header 2022-07-07 17:55:00 +02:00
drm_mode.h drm: document struct drm_mode_fb_cmd2 2022-02-06 21:38:46 +01:00
drm_sarea.h
etnaviv_drm.h drm/etnaviv: provide more ID values via GET_PARAM ioctl. 2021-01-22 12:33:57 +01:00
exynos_drm.h drm/exynos: Rename Exynos to lowercase 2020-01-21 09:09:42 +09:00
i810_drm.h
i915_drm.h drm/i915/uapi: document behaviour for DG2 64K support 2022-02-19 22:26:48 -08:00
lima_drm.h drm/lima: support heap buffer creation 2020-01-27 22:01:09 +08:00
mga_drm.h drm/mga/mga_ioc32: Use struct_group() for memcpy() region 2021-09-25 08:20:48 -07:00
msm_drm.h drm/msm: Add MSM_SUBMIT_FENCE_SN_IN 2022-03-04 22:49:52 -08:00
nouveau_drm.h drm/nouveau: support synchronous pushbuf submission 2020-01-29 15:49:56 +10:00
omap_drm.h Revert "drm/omap: add OMAP_BO flags to affect buffer allocation" 2019-10-23 10:41:41 -04:00
panfrost_drm.h drm/panfrost: Update create_bo flags comment 2022-01-10 16:39:46 +00:00
qxl_drm.h
r128_drm.h
radeon_drm.h
savage_drm.h
sis_drm.h
tegra_drm.h drm/tegra: Add new UAPI to header 2021-08-10 14:48:17 +02:00
v3d_drm.h drm/v3d: add multiple syncobjs support 2021-10-04 10:08:46 +01:00
vc4_drm.h
vgem_drm.h
via_drm.h
virtgpu_drm.h drm/virtgpu api: define a dummy fence signaled event 2021-11-29 11:46:32 +01:00
vmwgfx_drm.h drm/vmwgfx: Allow checking for gl43 contexts 2021-12-09 13:16:29 -05:00