[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20121018210236.GA31498@kroah.com>
Date: Thu, 18 Oct 2012 14:02:36 -0700
From: Greg KH <gregkh@...uxfoundation.org>
To: Jason Baron <jbaron@...hat.com>
Cc: Joe Perches <joe@...ches.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dynamic_debug: Remove unnecessary __used
On Thu, Oct 18, 2012 at 03:20:08PM -0400, Jason Baron wrote:
> On Thu, Oct 18, 2012 at 12:07:03PM -0700, Joe Perches wrote:
> > The __used attribute prevents gcc from eliminating
> > unnecessary, otherwise optimized away, metadata for
> > debugging logging messages.
> >
> > Remove the __used attribute.
> >
> > Signed-off-by: Joe Perches <joe@...ches.com>
> > ---
> > include/linux/dynamic_debug.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h
> > index c18257b..6dd4787 100644
> > --- a/include/linux/dynamic_debug.h
> > +++ b/include/linux/dynamic_debug.h
> > @@ -61,7 +61,7 @@ int __dynamic_netdev_dbg(struct _ddebug *descriptor,
> > const char *fmt, ...);
> >
> > #define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt) \
> > - static struct _ddebug __used __aligned(8) \
> > + static struct _ddebug __aligned(8) \
> > __attribute__((section("__verbose"))) name = { \
> > .modname = KBUILD_MODNAME, \
> > .function = __func__, \
> >
> >
>
> Greg, Pls pull this.
I will, thanks.
greg "here, have a vowel or three" k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists