drm/i915: drop a bunch of superfluous inlines
Remove a number of inlines from .c files, and let the compiler decide what's best. There's more to do, but need to start somewhere, and need to start setting the example. Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200420140438.14672-2-jani.nikula@intel.com
This commit is contained in:
@@ -5455,8 +5455,8 @@ static bool skl_plane_wm_equals(struct drm_i915_private *dev_priv,
|
||||
return skl_wm_level_equals(&wm1->trans_wm, &wm2->trans_wm);
|
||||
}
|
||||
|
||||
static inline bool skl_ddb_entries_overlap(const struct skl_ddb_entry *a,
|
||||
const struct skl_ddb_entry *b)
|
||||
static bool skl_ddb_entries_overlap(const struct skl_ddb_entry *a,
|
||||
const struct skl_ddb_entry *b)
|
||||
{
|
||||
return a->start < b->end && b->start < a->end;
|
||||
}
|
||||
@@ -5907,8 +5907,7 @@ static void ilk_optimize_watermarks(struct intel_atomic_state *state,
|
||||
mutex_unlock(&dev_priv->wm.wm_mutex);
|
||||
}
|
||||
|
||||
static inline void skl_wm_level_from_reg_val(u32 val,
|
||||
struct skl_wm_level *level)
|
||||
static void skl_wm_level_from_reg_val(u32 val, struct skl_wm_level *level)
|
||||
{
|
||||
level->plane_en = val & PLANE_WM_EN;
|
||||
level->ignore_lines = val & PLANE_WM_IGNORE_LINES;
|
||||
|
Reference in New Issue
Block a user