diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-30 03:55:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:54 -0400 |
commit | bf9d89295233ae2ba7b312c78ee5657307b09f4c (patch) | |
tree | 3da2fbcd93937bfa1907a893dc0d418c78f3d37b /drivers/char/drm | |
parent | 8e24eea728068bbeb6a3c500b848f883a20bf225 (diff) |
drivers/char: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r-- | drivers/char/drm/drmP.h | 8 | ||||
-rw-r--r-- | drivers/char/drm/drm_sysfs.c | 2 | ||||
-rw-r--r-- | drivers/char/drm/i830_dma.c | 18 | ||||
-rw-r--r-- | drivers/char/drm/i830_drv.h | 2 | ||||
-rw-r--r-- | drivers/char/drm/i830_irq.c | 8 | ||||
-rw-r--r-- | drivers/char/drm/i915_dma.c | 4 | ||||
-rw-r--r-- | drivers/char/drm/i915_drv.h | 2 | ||||
-rw-r--r-- | drivers/char/drm/radeon_cp.c | 2 |
8 files changed, 23 insertions, 23 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index ecee3547a13f..213b3ca3468e 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h | |||
@@ -160,7 +160,7 @@ struct drm_device; | |||
160 | * \param arg arguments | 160 | * \param arg arguments |
161 | */ | 161 | */ |
162 | #define DRM_ERROR(fmt, arg...) \ | 162 | #define DRM_ERROR(fmt, arg...) \ |
163 | printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__ , ##arg) | 163 | printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* " fmt , __func__ , ##arg) |
164 | 164 | ||
165 | /** | 165 | /** |
166 | * Memory error output. | 166 | * Memory error output. |
@@ -170,7 +170,7 @@ struct drm_device; | |||
170 | * \param arg arguments | 170 | * \param arg arguments |
171 | */ | 171 | */ |
172 | #define DRM_MEM_ERROR(area, fmt, arg...) \ | 172 | #define DRM_MEM_ERROR(area, fmt, arg...) \ |
173 | printk(KERN_ERR "[" DRM_NAME ":%s:%s] *ERROR* " fmt , __FUNCTION__, \ | 173 | printk(KERN_ERR "[" DRM_NAME ":%s:%s] *ERROR* " fmt , __func__, \ |
174 | drm_mem_stats[area].name , ##arg) | 174 | drm_mem_stats[area].name , ##arg) |
175 | 175 | ||
176 | #define DRM_INFO(fmt, arg...) printk(KERN_INFO "[" DRM_NAME "] " fmt , ##arg) | 176 | #define DRM_INFO(fmt, arg...) printk(KERN_INFO "[" DRM_NAME "] " fmt , ##arg) |
@@ -187,7 +187,7 @@ struct drm_device; | |||
187 | if ( drm_debug ) \ | 187 | if ( drm_debug ) \ |
188 | printk(KERN_DEBUG \ | 188 | printk(KERN_DEBUG \ |
189 | "[" DRM_NAME ":%s] " fmt , \ | 189 | "[" DRM_NAME ":%s] " fmt , \ |
190 | __FUNCTION__ , ##arg); \ | 190 | __func__ , ##arg); \ |
191 | } while (0) | 191 | } while (0) |
192 | #else | 192 | #else |
193 | #define DRM_DEBUG(fmt, arg...) do { } while (0) | 193 | #define DRM_DEBUG(fmt, arg...) do { } while (0) |
@@ -238,7 +238,7 @@ do { \ | |||
238 | if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || \ | 238 | if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || \ |
239 | dev->lock.file_priv != file_priv ) { \ | 239 | dev->lock.file_priv != file_priv ) { \ |
240 | DRM_ERROR( "%s called without lock held, held %d owner %p %p\n",\ | 240 | DRM_ERROR( "%s called without lock held, held %d owner %p %p\n",\ |
241 | __FUNCTION__, _DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ),\ | 241 | __func__, _DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ),\ |
242 | dev->lock.file_priv, file_priv ); \ | 242 | dev->lock.file_priv, file_priv ); \ |
243 | return -EINVAL; \ | 243 | return -EINVAL; \ |
244 | } \ | 244 | } \ |
diff --git a/drivers/char/drm/drm_sysfs.c b/drivers/char/drm/drm_sysfs.c index 7a1d9a782ddb..9a32169e88fb 100644 --- a/drivers/char/drm/drm_sysfs.c +++ b/drivers/char/drm/drm_sysfs.c | |||
@@ -34,7 +34,7 @@ static int drm_sysfs_suspend(struct device *dev, pm_message_t state) | |||
34 | struct drm_minor *drm_minor = to_drm_minor(dev); | 34 | struct drm_minor *drm_minor = to_drm_minor(dev); |
35 | struct drm_device *drm_dev = drm_minor->dev; | 35 | struct drm_device *drm_dev = drm_minor->dev; |
36 | 36 | ||
37 | printk(KERN_ERR "%s\n", __FUNCTION__); | 37 | printk(KERN_ERR "%s\n", __func__); |
38 | 38 | ||
39 | if (drm_dev->driver->suspend) | 39 | if (drm_dev->driver->suspend) |
40 | return drm_dev->driver->suspend(drm_dev, state); | 40 | return drm_dev->driver->suspend(drm_dev, state); |
diff --git a/drivers/char/drm/i830_dma.c b/drivers/char/drm/i830_dma.c index 60c9376be486..a86ab30b4620 100644 --- a/drivers/char/drm/i830_dma.c +++ b/drivers/char/drm/i830_dma.c | |||
@@ -692,7 +692,7 @@ static void i830EmitState(struct drm_device * dev) | |||
692 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; | 692 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; |
693 | unsigned int dirty = sarea_priv->dirty; | 693 | unsigned int dirty = sarea_priv->dirty; |
694 | 694 | ||
695 | DRM_DEBUG("%s %x\n", __FUNCTION__, dirty); | 695 | DRM_DEBUG("%s %x\n", __func__, dirty); |
696 | 696 | ||
697 | if (dirty & I830_UPLOAD_BUFFERS) { | 697 | if (dirty & I830_UPLOAD_BUFFERS) { |
698 | i830EmitDestVerified(dev, sarea_priv->BufferState); | 698 | i830EmitDestVerified(dev, sarea_priv->BufferState); |
@@ -1043,7 +1043,7 @@ static void i830_dma_dispatch_flip(struct drm_device * dev) | |||
1043 | RING_LOCALS; | 1043 | RING_LOCALS; |
1044 | 1044 | ||
1045 | DRM_DEBUG("%s: page=%d pfCurrentPage=%d\n", | 1045 | DRM_DEBUG("%s: page=%d pfCurrentPage=%d\n", |
1046 | __FUNCTION__, | 1046 | __func__, |
1047 | dev_priv->current_page, | 1047 | dev_priv->current_page, |
1048 | dev_priv->sarea_priv->pf_current_page); | 1048 | dev_priv->sarea_priv->pf_current_page); |
1049 | 1049 | ||
@@ -1206,7 +1206,7 @@ static void i830_dma_quiescent(struct drm_device * dev) | |||
1206 | OUT_RING(0); | 1206 | OUT_RING(0); |
1207 | ADVANCE_LP_RING(); | 1207 | ADVANCE_LP_RING(); |
1208 | 1208 | ||
1209 | i830_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__); | 1209 | i830_wait_ring(dev, dev_priv->ring.Size - 8, __func__); |
1210 | } | 1210 | } |
1211 | 1211 | ||
1212 | static int i830_flush_queue(struct drm_device * dev) | 1212 | static int i830_flush_queue(struct drm_device * dev) |
@@ -1223,7 +1223,7 @@ static int i830_flush_queue(struct drm_device * dev) | |||
1223 | OUT_RING(0); | 1223 | OUT_RING(0); |
1224 | ADVANCE_LP_RING(); | 1224 | ADVANCE_LP_RING(); |
1225 | 1225 | ||
1226 | i830_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__); | 1226 | i830_wait_ring(dev, dev_priv->ring.Size - 8, __func__); |
1227 | 1227 | ||
1228 | for (i = 0; i < dma->buf_count; i++) { | 1228 | for (i = 0; i < dma->buf_count; i++) { |
1229 | struct drm_buf *buf = dma->buflist[i]; | 1229 | struct drm_buf *buf = dma->buflist[i]; |
@@ -1344,7 +1344,7 @@ static void i830_do_init_pageflip(struct drm_device * dev) | |||
1344 | { | 1344 | { |
1345 | drm_i830_private_t *dev_priv = dev->dev_private; | 1345 | drm_i830_private_t *dev_priv = dev->dev_private; |
1346 | 1346 | ||
1347 | DRM_DEBUG("%s\n", __FUNCTION__); | 1347 | DRM_DEBUG("%s\n", __func__); |
1348 | dev_priv->page_flipping = 1; | 1348 | dev_priv->page_flipping = 1; |
1349 | dev_priv->current_page = 0; | 1349 | dev_priv->current_page = 0; |
1350 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; | 1350 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; |
@@ -1354,7 +1354,7 @@ static int i830_do_cleanup_pageflip(struct drm_device * dev) | |||
1354 | { | 1354 | { |
1355 | drm_i830_private_t *dev_priv = dev->dev_private; | 1355 | drm_i830_private_t *dev_priv = dev->dev_private; |
1356 | 1356 | ||
1357 | DRM_DEBUG("%s\n", __FUNCTION__); | 1357 | DRM_DEBUG("%s\n", __func__); |
1358 | if (dev_priv->current_page != 0) | 1358 | if (dev_priv->current_page != 0) |
1359 | i830_dma_dispatch_flip(dev); | 1359 | i830_dma_dispatch_flip(dev); |
1360 | 1360 | ||
@@ -1367,7 +1367,7 @@ static int i830_flip_bufs(struct drm_device *dev, void *data, | |||
1367 | { | 1367 | { |
1368 | drm_i830_private_t *dev_priv = dev->dev_private; | 1368 | drm_i830_private_t *dev_priv = dev->dev_private; |
1369 | 1369 | ||
1370 | DRM_DEBUG("%s\n", __FUNCTION__); | 1370 | DRM_DEBUG("%s\n", __func__); |
1371 | 1371 | ||
1372 | LOCK_TEST_WITH_RETURN(dev, file_priv); | 1372 | LOCK_TEST_WITH_RETURN(dev, file_priv); |
1373 | 1373 | ||
@@ -1437,7 +1437,7 @@ static int i830_getparam(struct drm_device *dev, void *data, | |||
1437 | int value; | 1437 | int value; |
1438 | 1438 | ||
1439 | if (!dev_priv) { | 1439 | if (!dev_priv) { |
1440 | DRM_ERROR("%s called with no initialization\n", __FUNCTION__); | 1440 | DRM_ERROR("%s called with no initialization\n", __func__); |
1441 | return -EINVAL; | 1441 | return -EINVAL; |
1442 | } | 1442 | } |
1443 | 1443 | ||
@@ -1464,7 +1464,7 @@ static int i830_setparam(struct drm_device *dev, void *data, | |||
1464 | drm_i830_setparam_t *param = data; | 1464 | drm_i830_setparam_t *param = data; |
1465 | 1465 | ||
1466 | if (!dev_priv) { | 1466 | if (!dev_priv) { |
1467 | DRM_ERROR("%s called with no initialization\n", __FUNCTION__); | 1467 | DRM_ERROR("%s called with no initialization\n", __func__); |
1468 | return -EINVAL; | 1468 | return -EINVAL; |
1469 | } | 1469 | } |
1470 | 1470 | ||
diff --git a/drivers/char/drm/i830_drv.h b/drivers/char/drm/i830_drv.h index 4caba8c54455..b5bf8cc0fdaa 100644 --- a/drivers/char/drm/i830_drv.h +++ b/drivers/char/drm/i830_drv.h | |||
@@ -158,7 +158,7 @@ extern int i830_driver_device_is_agp(struct drm_device * dev); | |||
158 | if (I830_VERBOSE) \ | 158 | if (I830_VERBOSE) \ |
159 | printk("BEGIN_LP_RING(%d)\n", (n)); \ | 159 | printk("BEGIN_LP_RING(%d)\n", (n)); \ |
160 | if (dev_priv->ring.space < n*4) \ | 160 | if (dev_priv->ring.space < n*4) \ |
161 | i830_wait_ring(dev, n*4, __FUNCTION__); \ | 161 | i830_wait_ring(dev, n*4, __func__); \ |
162 | outcount = 0; \ | 162 | outcount = 0; \ |
163 | outring = dev_priv->ring.tail; \ | 163 | outring = dev_priv->ring.tail; \ |
164 | ringmask = dev_priv->ring.tail_mask; \ | 164 | ringmask = dev_priv->ring.tail_mask; \ |
diff --git a/drivers/char/drm/i830_irq.c b/drivers/char/drm/i830_irq.c index a33db5f0967f..91ec2bb497e9 100644 --- a/drivers/char/drm/i830_irq.c +++ b/drivers/char/drm/i830_irq.c | |||
@@ -58,7 +58,7 @@ static int i830_emit_irq(struct drm_device * dev) | |||
58 | drm_i830_private_t *dev_priv = dev->dev_private; | 58 | drm_i830_private_t *dev_priv = dev->dev_private; |
59 | RING_LOCALS; | 59 | RING_LOCALS; |
60 | 60 | ||
61 | DRM_DEBUG("%s\n", __FUNCTION__); | 61 | DRM_DEBUG("%s\n", __func__); |
62 | 62 | ||
63 | atomic_inc(&dev_priv->irq_emitted); | 63 | atomic_inc(&dev_priv->irq_emitted); |
64 | 64 | ||
@@ -77,7 +77,7 @@ static int i830_wait_irq(struct drm_device * dev, int irq_nr) | |||
77 | unsigned long end = jiffies + HZ * 3; | 77 | unsigned long end = jiffies + HZ * 3; |
78 | int ret = 0; | 78 | int ret = 0; |
79 | 79 | ||
80 | DRM_DEBUG("%s\n", __FUNCTION__); | 80 | DRM_DEBUG("%s\n", __func__); |
81 | 81 | ||
82 | if (atomic_read(&dev_priv->irq_received) >= irq_nr) | 82 | if (atomic_read(&dev_priv->irq_received) >= irq_nr) |
83 | return 0; | 83 | return 0; |
@@ -124,7 +124,7 @@ int i830_irq_emit(struct drm_device *dev, void *data, | |||
124 | LOCK_TEST_WITH_RETURN(dev, file_priv); | 124 | LOCK_TEST_WITH_RETURN(dev, file_priv); |
125 | 125 | ||
126 | if (!dev_priv) { | 126 | if (!dev_priv) { |
127 | DRM_ERROR("%s called with no initialization\n", __FUNCTION__); | 127 | DRM_ERROR("%s called with no initialization\n", __func__); |
128 | return -EINVAL; | 128 | return -EINVAL; |
129 | } | 129 | } |
130 | 130 | ||
@@ -147,7 +147,7 @@ int i830_irq_wait(struct drm_device *dev, void *data, | |||
147 | drm_i830_irq_wait_t *irqwait = data; | 147 | drm_i830_irq_wait_t *irqwait = data; |
148 | 148 | ||
149 | if (!dev_priv) { | 149 | if (!dev_priv) { |
150 | DRM_ERROR("%s called with no initialization\n", __FUNCTION__); | 150 | DRM_ERROR("%s called with no initialization\n", __func__); |
151 | return -EINVAL; | 151 | return -EINVAL; |
152 | } | 152 | } |
153 | 153 | ||
diff --git a/drivers/char/drm/i915_dma.c b/drivers/char/drm/i915_dma.c index ef7bf143a80c..f47e46e3529f 100644 --- a/drivers/char/drm/i915_dma.c +++ b/drivers/char/drm/i915_dma.c | |||
@@ -194,7 +194,7 @@ static int i915_dma_resume(struct drm_device * dev) | |||
194 | { | 194 | { |
195 | drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; | 195 | drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; |
196 | 196 | ||
197 | DRM_DEBUG("%s\n", __FUNCTION__); | 197 | DRM_DEBUG("%s\n", __func__); |
198 | 198 | ||
199 | if (!dev_priv->sarea) { | 199 | if (!dev_priv->sarea) { |
200 | DRM_ERROR("can not find sarea!\n"); | 200 | DRM_ERROR("can not find sarea!\n"); |
@@ -609,7 +609,7 @@ static int i915_quiescent(struct drm_device * dev) | |||
609 | drm_i915_private_t *dev_priv = dev->dev_private; | 609 | drm_i915_private_t *dev_priv = dev->dev_private; |
610 | 610 | ||
611 | i915_kernel_lost_context(dev); | 611 | i915_kernel_lost_context(dev); |
612 | return i915_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__); | 612 | return i915_wait_ring(dev, dev_priv->ring.Size - 8, __func__); |
613 | } | 613 | } |
614 | 614 | ||
615 | static int i915_flush_ioctl(struct drm_device *dev, void *data, | 615 | static int i915_flush_ioctl(struct drm_device *dev, void *data, |
diff --git a/drivers/char/drm/i915_drv.h b/drivers/char/drm/i915_drv.h index c614d78b3dfd..db7001f22561 100644 --- a/drivers/char/drm/i915_drv.h +++ b/drivers/char/drm/i915_drv.h | |||
@@ -272,7 +272,7 @@ extern void i915_mem_release(struct drm_device * dev, | |||
272 | if (I915_VERBOSE) \ | 272 | if (I915_VERBOSE) \ |
273 | DRM_DEBUG("BEGIN_LP_RING(%d)\n", (n)); \ | 273 | DRM_DEBUG("BEGIN_LP_RING(%d)\n", (n)); \ |
274 | if (dev_priv->ring.space < (n)*4) \ | 274 | if (dev_priv->ring.space < (n)*4) \ |
275 | i915_wait_ring(dev, (n)*4, __FUNCTION__); \ | 275 | i915_wait_ring(dev, (n)*4, __func__); \ |
276 | outcount = 0; \ | 276 | outcount = 0; \ |
277 | outring = dev_priv->ring.tail; \ | 277 | outring = dev_priv->ring.tail; \ |
278 | ringmask = dev_priv->ring.tail_mask; \ | 278 | ringmask = dev_priv->ring.tail_mask; \ |
diff --git a/drivers/char/drm/radeon_cp.c b/drivers/char/drm/radeon_cp.c index 9072e4a1894e..f6f6c92bf771 100644 --- a/drivers/char/drm/radeon_cp.c +++ b/drivers/char/drm/radeon_cp.c | |||
@@ -894,7 +894,7 @@ static u32 RADEON_READ_IGPGART(drm_radeon_private_t *dev_priv, int addr) | |||
894 | #if RADEON_FIFO_DEBUG | 894 | #if RADEON_FIFO_DEBUG |
895 | static void radeon_status(drm_radeon_private_t * dev_priv) | 895 | static void radeon_status(drm_radeon_private_t * dev_priv) |
896 | { | 896 | { |
897 | printk("%s:\n", __FUNCTION__); | 897 | printk("%s:\n", __func__); |
898 | printk("RBBM_STATUS = 0x%08x\n", | 898 | printk("RBBM_STATUS = 0x%08x\n", |
899 | (unsigned int)RADEON_READ(RADEON_RBBM_STATUS)); | 899 | (unsigned int)RADEON_READ(RADEON_RBBM_STATUS)); |
900 | printk("CP_RB_RTPR = 0x%08x\n", | 900 | printk("CP_RB_RTPR = 0x%08x\n", |