trivial: replace last usages of __FUNCTION__ in kernel
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
8cfc7f9c00
commit
9b4778f680
@@ -210,7 +210,7 @@ static int drm_mode_object_get(struct drm_device *dev,
|
||||
int ret;
|
||||
|
||||
WARN(!mutex_is_locked(&dev->mode_config.mutex),
|
||||
"%s called w/o mode_config lock\n", __FUNCTION__);
|
||||
"%s called w/o mode_config lock\n", __func__);
|
||||
again:
|
||||
if (idr_pre_get(&dev->mode_config.crtc_idr, GFP_KERNEL) == 0) {
|
||||
DRM_ERROR("Ran out memory getting a mode number\n");
|
||||
|
@@ -1445,7 +1445,7 @@ static void i915_write_fence_reg(struct drm_i915_fence_reg *reg)
|
||||
|
||||
if ((obj_priv->gtt_offset & ~I915_FENCE_START_MASK) ||
|
||||
(obj_priv->gtt_offset & (obj->size - 1))) {
|
||||
WARN(1, "%s: object not 1M or size aligned\n", __FUNCTION__);
|
||||
WARN(1, "%s: object not 1M or size aligned\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1478,7 +1478,7 @@ static void i830_write_fence_reg(struct drm_i915_fence_reg *reg)
|
||||
|
||||
if ((obj_priv->gtt_offset & ~I915_FENCE_START_MASK) ||
|
||||
(obj_priv->gtt_offset & (obj->size - 1))) {
|
||||
WARN(1, "%s: object not 1M or size aligned\n", __FUNCTION__);
|
||||
WARN(1, "%s: object not 1M or size aligned\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user