Re: [PATCH 06/14] drivers/s390: replace remaining __FUNCTION__occurrences

From: Andrew Morton
Date: Tue Mar 04 2008 - 04:16:23 EST


On Tue, 04 Mar 2008 09:55:07 +0100 Martin Schwidefsky <schwidefsky@xxxxxxxxxx> wrote:

> On Mon, 2008-03-03 at 19:09 -0800, Harvey Harrison wrote:
> > __FUNCTION__ is gcc-specific, use __func__
> >
> > Signed-off-by: Harvey Harrison <harvey.harrison@xxxxxxxxx>
> > ---
> > drivers/s390/block/dasd.c | 4 +-
> > drivers/s390/char/tape_34xx.c | 2 +-
> > drivers/s390/char/vmwatchdog.c | 4 +-
> > drivers/s390/char/zcore.c | 2 +-
> > drivers/s390/cio/device_status.c | 2 +-
> > drivers/s390/crypto/zcrypt_api.h | 8 +-
> > drivers/s390/net/claw.c | 344 +++++++++++++++++++-------------------
> > drivers/s390/net/ctcmain.c | 112 ++++++------
> > drivers/s390/net/netiucv.c | 96 ++++++------
> > drivers/s390/s390mach.c | 8 +-
> > drivers/s390/scsi/zfcp_def.h | 2 +-
> > 11 files changed, 292 insertions(+), 292 deletions(-)
>
> Urgh, is this really necessary? The linux kernel is always compiled with
> gcc for s390. Yes __func__ is a bit shorter and maybe even looks nicer
> than __FUNCTION__ but is it really worth the trouble ?
>

That's what everyone is asking ;)

Unfortunately, __func__ is preferred and __FUNCTION__ is deprecated. So
the patch converts your code from "wrong" to "right". Even though it was
only a teeny bit wrong.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/