mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
ps3fb: Use __func__ instead of __FUNCTION__
ps3fb: Replace GNU extension `__FUNCTION__' by C99 `__func__' Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
640729014e
commit
d778c9a400
1 changed files with 30 additions and 24 deletions
|
@ -47,7 +47,7 @@
|
||||||
#include <asm/ps3.h>
|
#include <asm/ps3.h>
|
||||||
|
|
||||||
#ifdef PS3FB_DEBUG
|
#ifdef PS3FB_DEBUG
|
||||||
#define DPRINTK(fmt, args...) printk("%s: " fmt, __FUNCTION__ , ##args)
|
#define DPRINTK(fmt, args...) printk("%s: " fmt, __func__ , ##args)
|
||||||
#else
|
#else
|
||||||
#define DPRINTK(fmt, args...)
|
#define DPRINTK(fmt, args...)
|
||||||
#endif
|
#endif
|
||||||
|
@ -396,7 +396,7 @@ static int ps3fb_sync(u32 frame)
|
||||||
|
|
||||||
if (frame > ps3fb.num_frames - 1) {
|
if (frame > ps3fb.num_frames - 1) {
|
||||||
printk(KERN_WARNING "%s: invalid frame number (%u)\n",
|
printk(KERN_WARNING "%s: invalid frame number (%u)\n",
|
||||||
__FUNCTION__, frame);
|
__func__, frame);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
offset = xres * yres * BPP * frame;
|
offset = xres * yres * BPP * frame;
|
||||||
|
@ -409,23 +409,26 @@ static int ps3fb_sync(u32 frame)
|
||||||
(xres << 16) | yres,
|
(xres << 16) | yres,
|
||||||
xres * BPP); /* line_length */
|
xres * BPP); /* line_length */
|
||||||
if (status)
|
if (status)
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_attribute FB_BLIT failed: %d\n",
|
printk(KERN_ERR
|
||||||
__FUNCTION__, status);
|
"%s: lv1_gpu_context_attribute FB_BLIT failed: %d\n",
|
||||||
|
__func__, status);
|
||||||
#ifdef HEAD_A
|
#ifdef HEAD_A
|
||||||
status = lv1_gpu_context_attribute(ps3fb.context_handle,
|
status = lv1_gpu_context_attribute(ps3fb.context_handle,
|
||||||
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,
|
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,
|
||||||
0, offset, 0, 0);
|
0, offset, 0, 0);
|
||||||
if (status)
|
if (status)
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_attribute FLIP failed: %d\n",
|
printk(KERN_ERR
|
||||||
__FUNCTION__, status);
|
"%s: lv1_gpu_context_attribute FLIP failed: %d\n",
|
||||||
|
__func__, status);
|
||||||
#endif
|
#endif
|
||||||
#ifdef HEAD_B
|
#ifdef HEAD_B
|
||||||
status = lv1_gpu_context_attribute(ps3fb.context_handle,
|
status = lv1_gpu_context_attribute(ps3fb.context_handle,
|
||||||
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,
|
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,
|
||||||
1, offset, 0, 0);
|
1, offset, 0, 0);
|
||||||
if (status)
|
if (status)
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_attribute FLIP failed: %d\n",
|
printk(KERN_ERR
|
||||||
__FUNCTION__, status);
|
"%s: lv1_gpu_context_attribute FLIP failed: %d\n",
|
||||||
|
__func__, status);
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -634,7 +637,7 @@ static int ps3fb_blank(int blank, struct fb_info *info)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
DPRINTK("%s: blank:%d\n", __FUNCTION__, blank);
|
DPRINTK("%s: blank:%d\n", __func__, blank);
|
||||||
switch (blank) {
|
switch (blank) {
|
||||||
case FB_BLANK_POWERDOWN:
|
case FB_BLANK_POWERDOWN:
|
||||||
case FB_BLANK_HSYNC_SUSPEND:
|
case FB_BLANK_HSYNC_SUSPEND:
|
||||||
|
@ -830,7 +833,7 @@ static irqreturn_t ps3fb_vsync_interrupt(int irq, void *ptr)
|
||||||
status = lv1_gpu_context_intr(ps3fb.context_handle, &v1);
|
status = lv1_gpu_context_intr(ps3fb.context_handle, &v1);
|
||||||
if (status) {
|
if (status) {
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_intr failed: %d\n",
|
printk(KERN_ERR "%s: lv1_gpu_context_intr failed: %d\n",
|
||||||
__FUNCTION__, status);
|
__func__, status);
|
||||||
return IRQ_NONE;
|
return IRQ_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -889,7 +892,7 @@ static int ps3fb_vsync_settings(struct gpu_driver_info *dinfo, void *dev)
|
||||||
dinfo->nvcore_frequency/1000000, dinfo->memory_frequency/1000000);
|
dinfo->nvcore_frequency/1000000, dinfo->memory_frequency/1000000);
|
||||||
|
|
||||||
if (dinfo->version_driver != GPU_DRIVER_INFO_VERSION) {
|
if (dinfo->version_driver != GPU_DRIVER_INFO_VERSION) {
|
||||||
printk(KERN_ERR "%s: version_driver err:%x\n", __FUNCTION__,
|
printk(KERN_ERR "%s: version_driver err:%x\n", __func__,
|
||||||
dinfo->version_driver);
|
dinfo->version_driver);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -898,7 +901,7 @@ static int ps3fb_vsync_settings(struct gpu_driver_info *dinfo, void *dev)
|
||||||
error = ps3_alloc_irq(PS3_BINDING_CPU_ANY, dinfo->irq.irq_outlet,
|
error = ps3_alloc_irq(PS3_BINDING_CPU_ANY, dinfo->irq.irq_outlet,
|
||||||
&ps3fb.irq_no);
|
&ps3fb.irq_no);
|
||||||
if (error) {
|
if (error) {
|
||||||
printk(KERN_ERR "%s: ps3_alloc_irq failed %d\n", __FUNCTION__,
|
printk(KERN_ERR "%s: ps3_alloc_irq failed %d\n", __func__,
|
||||||
error);
|
error);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
@ -906,7 +909,7 @@ static int ps3fb_vsync_settings(struct gpu_driver_info *dinfo, void *dev)
|
||||||
error = request_irq(ps3fb.irq_no, ps3fb_vsync_interrupt, IRQF_DISABLED,
|
error = request_irq(ps3fb.irq_no, ps3fb_vsync_interrupt, IRQF_DISABLED,
|
||||||
"ps3fb vsync", ps3fb.dev);
|
"ps3fb vsync", ps3fb.dev);
|
||||||
if (error) {
|
if (error) {
|
||||||
printk(KERN_ERR "%s: request_irq failed %d\n", __FUNCTION__,
|
printk(KERN_ERR "%s: request_irq failed %d\n", __func__,
|
||||||
error);
|
error);
|
||||||
ps3_free_irq(ps3fb.irq_no);
|
ps3_free_irq(ps3fb.irq_no);
|
||||||
return error;
|
return error;
|
||||||
|
@ -925,7 +928,7 @@ static int ps3fb_xdr_settings(u64 xdr_lpar)
|
||||||
xdr_lpar, ps3fb_videomemory.size, 0);
|
xdr_lpar, ps3fb_videomemory.size, 0);
|
||||||
if (status) {
|
if (status) {
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_iomap failed: %d\n",
|
printk(KERN_ERR "%s: lv1_gpu_context_iomap failed: %d\n",
|
||||||
__FUNCTION__, status);
|
__func__, status);
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
}
|
}
|
||||||
DPRINTK("video:%p xdr_ea:%p ioif:%lx lpar:%lx phys:%lx size:%lx\n",
|
DPRINTK("video:%p xdr_ea:%p ioif:%lx lpar:%lx phys:%lx size:%lx\n",
|
||||||
|
@ -937,8 +940,9 @@ static int ps3fb_xdr_settings(u64 xdr_lpar)
|
||||||
xdr_lpar, ps3fb_videomemory.size,
|
xdr_lpar, ps3fb_videomemory.size,
|
||||||
GPU_IOIF, 0);
|
GPU_IOIF, 0);
|
||||||
if (status) {
|
if (status) {
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_attribute FB_SETUP failed: %d\n",
|
printk(KERN_ERR
|
||||||
__FUNCTION__, status);
|
"%s: lv1_gpu_context_attribute FB_SETUP failed: %d\n",
|
||||||
|
__func__, status);
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -985,7 +989,7 @@ static int __init ps3fb_probe(struct platform_device *dev)
|
||||||
&ps3fb.memory_handle, &ddr_lpar);
|
&ps3fb.memory_handle, &ddr_lpar);
|
||||||
if (status) {
|
if (status) {
|
||||||
printk(KERN_ERR "%s: lv1_gpu_memory_allocate failed: %d\n",
|
printk(KERN_ERR "%s: lv1_gpu_memory_allocate failed: %d\n",
|
||||||
__FUNCTION__, status);
|
__func__, status);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
DPRINTK("ddr:lpar:0x%lx\n", ddr_lpar);
|
DPRINTK("ddr:lpar:0x%lx\n", ddr_lpar);
|
||||||
|
@ -996,14 +1000,14 @@ static int __init ps3fb_probe(struct platform_device *dev)
|
||||||
&lpar_reports, &lpar_reports_size);
|
&lpar_reports, &lpar_reports_size);
|
||||||
if (status) {
|
if (status) {
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_attribute failed: %d\n",
|
printk(KERN_ERR "%s: lv1_gpu_context_attribute failed: %d\n",
|
||||||
__FUNCTION__, status);
|
__func__, status);
|
||||||
goto err_gpu_memory_free;
|
goto err_gpu_memory_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vsync interrupt */
|
/* vsync interrupt */
|
||||||
ps3fb.dinfo = ioremap(lpar_driver_info, 128 * 1024);
|
ps3fb.dinfo = ioremap(lpar_driver_info, 128 * 1024);
|
||||||
if (!ps3fb.dinfo) {
|
if (!ps3fb.dinfo) {
|
||||||
printk(KERN_ERR "%s: ioremap failed\n", __FUNCTION__);
|
printk(KERN_ERR "%s: ioremap failed\n", __func__);
|
||||||
goto err_gpu_context_free;
|
goto err_gpu_context_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1162,8 +1166,9 @@ int ps3fb_set_sync(void)
|
||||||
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_SYNC,
|
L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_SYNC,
|
||||||
0, L1GPU_DISPLAY_SYNC_VSYNC, 0, 0);
|
0, L1GPU_DISPLAY_SYNC_VSYNC, 0, 0);
|
||||||
if (status) {
|
if (status) {
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_attribute DISPLAY_SYNC failed: %d\n",
|
printk(KERN_ERR
|
||||||
__FUNCTION__, status);
|
"%s: lv1_gpu_context_attribute DISPLAY_SYNC failed: %d\n",
|
||||||
|
__func__, status);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1173,8 +1178,9 @@ int ps3fb_set_sync(void)
|
||||||
1, L1GPU_DISPLAY_SYNC_VSYNC, 0, 0);
|
1, L1GPU_DISPLAY_SYNC_VSYNC, 0, 0);
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
printk(KERN_ERR "%s: lv1_gpu_context_attribute DISPLAY_MODE failed: %d\n",
|
printk(KERN_ERR
|
||||||
__FUNCTION__, status);
|
"%s: lv1_gpu_context_attribute DISPLAY_MODE failed: %d\n",
|
||||||
|
__func__, status);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1199,7 +1205,7 @@ static int __init ps3fb_init(void)
|
||||||
|
|
||||||
error = ps3av_dev_open();
|
error = ps3av_dev_open();
|
||||||
if (error) {
|
if (error) {
|
||||||
printk(KERN_ERR "%s: ps3av_dev_open failed\n", __FUNCTION__);
|
printk(KERN_ERR "%s: ps3av_dev_open failed\n", __func__);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue