Skip to content

Commit cba6dba

Browse files
committed
drm/i915: Unexport i915_ppgtt_init()
As i915_ppgtt_init() is not used outside of i915_gem_gtt.c we can make it static. Signed-off-by: Chris Wilson <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Matthew Auld <[email protected]>
1 parent 1ca3712 commit cba6dba

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/gpu/drm/i915/i915_gem_gtt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ static void gtt_write_workarounds(struct drm_device *dev)
21562156
I915_WRITE(GEN8_L3_LRA_1_GPGPU, GEN9_L3_LRA_1_GPGPU_DEFAULT_VALUE_BXT);
21572157
}
21582158

2159-
int i915_ppgtt_init(struct drm_device *dev, struct i915_hw_ppgtt *ppgtt)
2159+
static int i915_ppgtt_init(struct drm_device *dev, struct i915_hw_ppgtt *ppgtt)
21602160
{
21612161
struct drm_i915_private *dev_priv = dev->dev_private;
21622162
int ret = 0;

drivers/gpu/drm/i915/i915_gem_gtt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ int i915_ggtt_init_hw(struct drm_device *dev);
520520
void i915_gem_init_ggtt(struct drm_device *dev);
521521
void i915_ggtt_cleanup_hw(struct drm_device *dev);
522522

523-
int i915_ppgtt_init(struct drm_device *dev, struct i915_hw_ppgtt *ppgtt);
524523
int i915_ppgtt_init_hw(struct drm_device *dev);
525524
void i915_ppgtt_release(struct kref *kref);
526525
struct i915_hw_ppgtt *i915_ppgtt_create(struct drm_device *dev,

0 commit comments

Comments
 (0)