Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95300
b: refs/heads/master
c: bf9d892
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Apr 30, 2008
1 parent 19af515 commit 2daac19
Show file tree
Hide file tree
Showing 25 changed files with 92 additions and 92 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e24eea728068bbeb6a3c500b848f883a20bf225
refs/heads/master: bf9d89295233ae2ba7b312c78ee5657307b09f4c
2 changes: 1 addition & 1 deletion trunk/drivers/char/agp/agp.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

//#define AGP_DEBUG 1
#ifdef AGP_DEBUG
#define DBG(x,y...) printk (KERN_DEBUG PFX "%s: " x "\n", __FUNCTION__ , ## y)
#define DBG(x,y...) printk (KERN_DEBUG PFX "%s: " x "\n", __func__ , ## y)
#else
#define DBG(x,y...) do { } while (0)
#endif
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/char/cyclades.c
Original file line number Diff line number Diff line change
Expand Up @@ -3490,7 +3490,7 @@ static int cy_tiocmget(struct tty_struct *tty, struct file *file)
struct BOARD_CTRL __iomem *board_ctrl;
struct CH_CTRL __iomem *ch_ctrl;

if (serial_paranoia_check(info, tty->name, __FUNCTION__))
if (serial_paranoia_check(info, tty->name, __func__))
return -ENODEV;

lock_kernel();
Expand Down Expand Up @@ -3561,7 +3561,7 @@ cy_tiocmset(struct tty_struct *tty, struct file *file,
struct CH_CTRL __iomem *ch_ctrl;
int retval;

if (serial_paranoia_check(info, tty->name, __FUNCTION__))
if (serial_paranoia_check(info, tty->name, __func__))
return -ENODEV;

card = info->card;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/char/drm/drmP.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct drm_device;
* \param arg arguments
*/
#define DRM_ERROR(fmt, arg...) \
printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__ , ##arg)
printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* " fmt , __func__ , ##arg)

/**
* Memory error output.
Expand All @@ -170,7 +170,7 @@ struct drm_device;
* \param arg arguments
*/
#define DRM_MEM_ERROR(area, fmt, arg...) \
printk(KERN_ERR "[" DRM_NAME ":%s:%s] *ERROR* " fmt , __FUNCTION__, \
printk(KERN_ERR "[" DRM_NAME ":%s:%s] *ERROR* " fmt , __func__, \
drm_mem_stats[area].name , ##arg)

#define DRM_INFO(fmt, arg...) printk(KERN_INFO "[" DRM_NAME "] " fmt , ##arg)
Expand All @@ -187,7 +187,7 @@ struct drm_device;
if ( drm_debug ) \
printk(KERN_DEBUG \
"[" DRM_NAME ":%s] " fmt , \
__FUNCTION__ , ##arg); \
__func__ , ##arg); \
} while (0)
#else
#define DRM_DEBUG(fmt, arg...) do { } while (0)
Expand Down Expand Up @@ -238,7 +238,7 @@ do { \
if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || \
dev->lock.file_priv != file_priv ) { \
DRM_ERROR( "%s called without lock held, held %d owner %p %p\n",\
__FUNCTION__, _DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ),\
__func__, _DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ),\
dev->lock.file_priv, file_priv ); \
return -EINVAL; \
} \
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/drm/drm_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static int drm_sysfs_suspend(struct device *dev, pm_message_t state)
struct drm_minor *drm_minor = to_drm_minor(dev);
struct drm_device *drm_dev = drm_minor->dev;

printk(KERN_ERR "%s\n", __FUNCTION__);
printk(KERN_ERR "%s\n", __func__);

if (drm_dev->driver->suspend)
return drm_dev->driver->suspend(drm_dev, state);
Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/char/drm/i830_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ static void i830EmitState(struct drm_device * dev)
drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv;
unsigned int dirty = sarea_priv->dirty;

DRM_DEBUG("%s %x\n", __FUNCTION__, dirty);
DRM_DEBUG("%s %x\n", __func__, dirty);

if (dirty & I830_UPLOAD_BUFFERS) {
i830EmitDestVerified(dev, sarea_priv->BufferState);
Expand Down Expand Up @@ -1043,7 +1043,7 @@ static void i830_dma_dispatch_flip(struct drm_device * dev)
RING_LOCALS;

DRM_DEBUG("%s: page=%d pfCurrentPage=%d\n",
__FUNCTION__,
__func__,
dev_priv->current_page,
dev_priv->sarea_priv->pf_current_page);

Expand Down Expand Up @@ -1206,7 +1206,7 @@ static void i830_dma_quiescent(struct drm_device * dev)
OUT_RING(0);
ADVANCE_LP_RING();

i830_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__);
i830_wait_ring(dev, dev_priv->ring.Size - 8, __func__);
}

static int i830_flush_queue(struct drm_device * dev)
Expand All @@ -1223,7 +1223,7 @@ static int i830_flush_queue(struct drm_device * dev)
OUT_RING(0);
ADVANCE_LP_RING();

i830_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__);
i830_wait_ring(dev, dev_priv->ring.Size - 8, __func__);

for (i = 0; i < dma->buf_count; i++) {
struct drm_buf *buf = dma->buflist[i];
Expand Down Expand Up @@ -1344,7 +1344,7 @@ static void i830_do_init_pageflip(struct drm_device * dev)
{
drm_i830_private_t *dev_priv = dev->dev_private;

DRM_DEBUG("%s\n", __FUNCTION__);
DRM_DEBUG("%s\n", __func__);
dev_priv->page_flipping = 1;
dev_priv->current_page = 0;
dev_priv->sarea_priv->pf_current_page = dev_priv->current_page;
Expand All @@ -1354,7 +1354,7 @@ static int i830_do_cleanup_pageflip(struct drm_device * dev)
{
drm_i830_private_t *dev_priv = dev->dev_private;

DRM_DEBUG("%s\n", __FUNCTION__);
DRM_DEBUG("%s\n", __func__);
if (dev_priv->current_page != 0)
i830_dma_dispatch_flip(dev);

Expand All @@ -1367,7 +1367,7 @@ static int i830_flip_bufs(struct drm_device *dev, void *data,
{
drm_i830_private_t *dev_priv = dev->dev_private;

DRM_DEBUG("%s\n", __FUNCTION__);
DRM_DEBUG("%s\n", __func__);

LOCK_TEST_WITH_RETURN(dev, file_priv);

Expand Down Expand Up @@ -1437,7 +1437,7 @@ static int i830_getparam(struct drm_device *dev, void *data,
int value;

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
DRM_ERROR("%s called with no initialization\n", __func__);
return -EINVAL;
}

Expand All @@ -1464,7 +1464,7 @@ static int i830_setparam(struct drm_device *dev, void *data,
drm_i830_setparam_t *param = data;

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
DRM_ERROR("%s called with no initialization\n", __func__);
return -EINVAL;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/drm/i830_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ extern int i830_driver_device_is_agp(struct drm_device * dev);
if (I830_VERBOSE) \
printk("BEGIN_LP_RING(%d)\n", (n)); \
if (dev_priv->ring.space < n*4) \
i830_wait_ring(dev, n*4, __FUNCTION__); \
i830_wait_ring(dev, n*4, __func__); \
outcount = 0; \
outring = dev_priv->ring.tail; \
ringmask = dev_priv->ring.tail_mask; \
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/char/drm/i830_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int i830_emit_irq(struct drm_device * dev)
drm_i830_private_t *dev_priv = dev->dev_private;
RING_LOCALS;

DRM_DEBUG("%s\n", __FUNCTION__);
DRM_DEBUG("%s\n", __func__);

atomic_inc(&dev_priv->irq_emitted);

Expand All @@ -77,7 +77,7 @@ static int i830_wait_irq(struct drm_device * dev, int irq_nr)
unsigned long end = jiffies + HZ * 3;
int ret = 0;

DRM_DEBUG("%s\n", __FUNCTION__);
DRM_DEBUG("%s\n", __func__);

if (atomic_read(&dev_priv->irq_received) >= irq_nr)
return 0;
Expand Down Expand Up @@ -124,7 +124,7 @@ int i830_irq_emit(struct drm_device *dev, void *data,
LOCK_TEST_WITH_RETURN(dev, file_priv);

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
DRM_ERROR("%s called with no initialization\n", __func__);
return -EINVAL;
}

Expand All @@ -147,7 +147,7 @@ int i830_irq_wait(struct drm_device *dev, void *data,
drm_i830_irq_wait_t *irqwait = data;

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
DRM_ERROR("%s called with no initialization\n", __func__);
return -EINVAL;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/char/drm/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static int i915_dma_resume(struct drm_device * dev)
{
drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;

DRM_DEBUG("%s\n", __FUNCTION__);
DRM_DEBUG("%s\n", __func__);

if (!dev_priv->sarea) {
DRM_ERROR("can not find sarea!\n");
Expand Down Expand Up @@ -609,7 +609,7 @@ static int i915_quiescent(struct drm_device * dev)
drm_i915_private_t *dev_priv = dev->dev_private;

i915_kernel_lost_context(dev);
return i915_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__);
return i915_wait_ring(dev, dev_priv->ring.Size - 8, __func__);
}

static int i915_flush_ioctl(struct drm_device *dev, void *data,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/drm/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ extern void i915_mem_release(struct drm_device * dev,
if (I915_VERBOSE) \
DRM_DEBUG("BEGIN_LP_RING(%d)\n", (n)); \
if (dev_priv->ring.space < (n)*4) \
i915_wait_ring(dev, (n)*4, __FUNCTION__); \
i915_wait_ring(dev, (n)*4, __func__); \
outcount = 0; \
outring = dev_priv->ring.tail; \
ringmask = dev_priv->ring.tail_mask; \
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/drm/radeon_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ static u32 RADEON_READ_IGPGART(drm_radeon_private_t *dev_priv, int addr)
#if RADEON_FIFO_DEBUG
static void radeon_status(drm_radeon_private_t * dev_priv)
{
printk("%s:\n", __FUNCTION__);
printk("%s:\n", __func__);
printk("RBBM_STATUS = 0x%08x\n",
(unsigned int)RADEON_READ(RADEON_RBBM_STATUS));
printk("CP_RB_RTPR = 0x%08x\n",
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/char/esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ static int esp_tiocmget(struct tty_struct *tty, struct file *file)
unsigned char control, status;
unsigned long flags;

if (serial_paranoia_check(info, tty->name, __FUNCTION__))
if (serial_paranoia_check(info, tty->name, __func__))
return -ENODEV;
if (tty->flags & (1 << TTY_IO_ERROR))
return -EIO;
Expand All @@ -1697,7 +1697,7 @@ static int esp_tiocmset(struct tty_struct *tty, struct file *file,
struct esp_struct *info = tty->driver_data;
unsigned long flags;

if (serial_paranoia_check(info, tty->name, __FUNCTION__))
if (serial_paranoia_check(info, tty->name, __func__))
return -ENODEV;
if (tty->flags & (1 << TTY_IO_ERROR))
return -EIO;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/char/generic_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ static int gs_debug;
#define gs_dprintk(f, str...) /* nothing */
#endif

#define func_enter() gs_dprintk (GS_DEBUG_FLOW, "gs: enter %s\n", __FUNCTION__)
#define func_exit() gs_dprintk (GS_DEBUG_FLOW, "gs: exit %s\n", __FUNCTION__)
#define func_enter() gs_dprintk (GS_DEBUG_FLOW, "gs: enter %s\n", __func__)
#define func_exit() gs_dprintk (GS_DEBUG_FLOW, "gs: exit %s\n", __func__)

#define RS_EVENT_WRITE_WAKEUP 1

Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/char/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static int hpet_mmap(struct file *file, struct vm_area_struct *vma)
if (io_remap_pfn_range(vma, vma->vm_start, addr >> PAGE_SHIFT,
PAGE_SIZE, vma->vm_page_prot)) {
printk(KERN_ERR "%s: io_remap_pfn_range failed\n",
__FUNCTION__);
__func__);
return -EAGAIN;
}

Expand Down Expand Up @@ -748,7 +748,7 @@ int hpet_alloc(struct hpet_data *hdp)
*/
if (hpet_is_known(hdp)) {
printk(KERN_DEBUG "%s: duplicate HPET ignored\n",
__FUNCTION__);
__func__);
return 0;
}

Expand Down Expand Up @@ -869,7 +869,7 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)

if (hpet_is_known(hdp)) {
printk(KERN_DEBUG "%s: 0x%lx is busy\n",
__FUNCTION__, hdp->hd_phys_address);
__func__, hdp->hd_phys_address);
iounmap(hdp->hd_address);
return AE_ALREADY_EXISTS;
}
Expand All @@ -886,7 +886,7 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)

if (hpet_is_known(hdp)) {
printk(KERN_DEBUG "%s: 0x%lx is busy\n",
__FUNCTION__, hdp->hd_phys_address);
__func__, hdp->hd_phys_address);
iounmap(hdp->hd_address);
return AE_ALREADY_EXISTS;
}
Expand Down Expand Up @@ -925,7 +925,7 @@ static int hpet_acpi_add(struct acpi_device *device)
return -ENODEV;

if (!data.hd_address || !data.hd_nirqs) {
printk("%s: no address or irqs in _CRS\n", __FUNCTION__);
printk("%s: no address or irqs in _CRS\n", __func__);
return -ENODEV;
}

Expand Down
Loading

0 comments on commit 2daac19

Please sign in to comment.