]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Fix return type of crc .poll()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 10 Jul 2019 12:51:43 +0000 (15:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2019 17:17:31 +0000 (20:17 +0300)
commitb3f8ffa1e3cfccb725a0cfb71f16f526e1887230
tree4bf996b8bb141480aa02afcb9dcd5fff5192bf97
parent1dfa3e616d4a25d7e05faf581b6c14499d60f9b2
drm: Fix return type of crc .poll()

Sparse compains:
../drivers/gpu/drm/drm_debugfs_crc.c:350:17: warning: incorrect type in initializer (different base types)
../drivers/gpu/drm/drm_debugfs_crc.c:350:17:    expected restricted __poll_t ( *poll )( ... )
../drivers/gpu/drm/drm_debugfs_crc.c:350:17:    got unsigned int ( * )( ... )

Change the .poll() return type to __poll_t to silence it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190710125143.9965-5-ville.syrjala@linux.intel.com
Reviewed-by: Sean Paul <sean@poorly.run>
drivers/gpu/drm/drm_debugfs_crc.c