]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: avoid useless use of inline
authorJani Nikula <jani.nikula@intel.com>
Mon, 30 Nov 2020 11:13:53 +0000 (13:13 +0200)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 3 Dec 2020 05:29:01 +0000 (13:29 +0800)
commitb53c322d036e32280acf36cc26a5cdf868f97174
tree1af6e1583a53587fcb513f884d00a87127398f82
parentb840e69a6d9629359a03233e998da5b3392bf926
drm/i915/gvt: avoid useless use of inline

In most cases, we are better off letting the compiler decide whether to
inline static functions in .c files or not. In this case, the inline
will be ignored anyway as mmio_pm_restore_handler() is passed as a
function pointer.

Fixes: 0c973c4587e3 ("drm/i915/gvt: Save/restore HW status to support GVT suspend/resume")
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Hang Yuan <hang.yuan@linux.intel.com>
Cc: Colin Xu <colin.xu@intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: intel-gvt-dev@lists.freedesktop.org
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20201130111353.25406-1-jani.nikula@intel.com
drivers/gpu/drm/i915/gvt/handlers.c