From: Andrew Morton <akpm@linux-foundation.org>
To: Steve deRosier <steve@cozybit.com>
Cc: linux-wireless@vger.kernel.org, javier@cozybit.com, joe@perches.com
Subject: Re: [PATCH] Added configurable debug messages to libertastf
Date: Tue, 27 Apr 2010 13:16:54 -0700 [thread overview]
Message-ID: <20100427131654.4ee04752.akpm@linux-foundation.org> (raw)
In-Reply-To: <1272231646-67723-1-git-send-email-steve@cozybit.com>
On Sun, 25 Apr 2010 14:40:46 -0700
Steve deRosier <steve@cozybit.com> wrote:
> Add the same type of configurable debug messages to libertas_tf as
> already exist in the libertas driver. This has facilitated creation of a interface
> specification and will facilitate future development of this driver.
>
> ...
>
> --- /dev/null
> +++ b/drivers/net/wireless/libertas_tf/deb_defs.h
> @@ -0,0 +1,106 @@
> +/**
> + * This header file contains global constant/enum definitions,
> + * global variable declaration.
> + */
> +#ifndef _LBS_DEB_DEFS_H_
> +#define _LBS_DEB_EFS_H_
> +
> +#ifndef DRV_NAME
> +#define DRV_NAME "libertas_tf"
> +#endif
> +
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> +
I dunno what this pr_fmt() definition is doing here, but it has
unpleasant effects with a x86_64 allmodconfig build:
In file included from drivers/net/wireless/libertas_tf/main.c:12:
drivers/net/wireless/libertas_tf/deb_defs.h:12:1: warning: "pr_fmt" redefined
In file included from /usr/src/devel/arch/x86/include/asm/percpu.h:44,
from /usr/src/devel/arch/x86/include/asm/current.h:5,
from /usr/src/devel/arch/x86/include/asm/processor.h:15,
from /usr/src/devel/arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from drivers/net/wireless/libertas_tf/main.c:10:
include/linux/kernel.h:376:1: warning: this is the location of the previous definition
so I cheerily deleted it.
next prev parent reply other threads:[~2010-04-27 20:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 22:39 [PATCH] Added configurable debug messages to libertastf Steve deRosier
2010-04-21 22:50 ` Joe Perches
2010-04-25 21:30 ` Steve deRosier
2010-04-25 21:40 ` Steve deRosier
2010-04-27 20:16 ` Andrew Morton [this message]
2010-04-28 13:00 ` Steve deRosier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100427131654.4ee04752.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=javier@cozybit.com \
--cc=joe@perches.com \
--cc=linux-wireless@vger.kernel.org \
--cc=steve@cozybit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).