Re: [PATCH] 9p: Reduce object size with CONFIG_NET_9P_DEBUG

From: Joe Perches
Date: Mon Nov 28 2011 - 12:14:02 EST


On Mon, 2011-11-28 at 09:10 -0600, Eric Van Hensbergen wrote:
> sorry, just got to reviewing this because of holidays.
>
> On Fri, Nov 18, 2011 at 6:09 PM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> > Reduce object size by deduplicating formats.
> >
> > Use vsprintf extension %pV.
> > Rename P9_DPRINTK uses to p9_debug, align arguments.
> > Add function for _p9_debug and macro to add __func__.
> > Add missing "\n"s to p9_debug uses.
> > Remove embedded function names as p9_debug adds it.
> > Remove P9_EPRINTK macro and convert use to pr_<level>.
> > Add and use pr_fmt and pr_<level>.
> >
> > $ size fs/9p/built-in.o*
> > text data bss dec hex filename
> > 62133 984 16000 79117 1350d fs/9p/built-in.o.new
> > 67342 984 16928 85254 14d06 fs/9p/built-in.o.old
> >
> > Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
>
> These changes seem reasonable enough, but since you only made changes
> in the fs/9p directory and not the net/9p directory which causes
> net/9p build to break with this patch.
>
> CC net/9p/client.o
> /home/ericvh/src/linux/v9fs-devel/net/9p/client.c: In function
> âget_protocol_versionâ:
> /home/ericvh/src/linux/v9fs-devel/net/9p/client.c:84:3: error:
> implicit declaration of function âP9_DPRINTKâ

Sorry 'bout that.
I'll fix it and resubmit later.

--
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/