Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jonathan Toppins <jtoppins@redhat.com>
To: Joe Perches <joe@perches.com>, netdev <netdev@vger.kernel.org>
Cc: Johannes Berg <johannes.berg@intel.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] netlink: NL_SET_ERR_MSG - remove local static array
Date: Mon, 9 Aug 2021 18:30:33 -0400	[thread overview]
Message-ID: <c32a4a3c-c7df-cb8d-ecb4-7c1738cfd15c@redhat.com> (raw)
In-Reply-To: <1f99c69f4e640accaf7459065e6625e73ec0f8d4.camel@perches.com>

On 8/9/21 1:04 PM, Joe Perches wrote:
> The want was to have some separate object section for netlink messages
> so all netlink messages could be specifically listed by some tool but
> the effect is duplicating static const char arrays in the object code.
> 
> It seems unused presently so change the macro to avoid the local static
> declarations until such time as these actually are wanted and used.
> 
> This reduces object size ~8KB in an x86-64 defconfig without modules.
> 
> $ size vmlinux.o*
>     text	   data	    bss	    dec	    hex	filename
> 20110471	3460344	 741760	24312575	172faff	vmlinux.o.new
> 20119444	3460344	 741760	24321548	1731e0c	vmlinux.o.old
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Seems reasonable.

Acked-by: Jonathan Toppins <jtoppins@redhat.com>


  reply	other threads:[~2021-08-09 22:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-09 17:04 Joe Perches
2021-08-09 22:30 ` Jonathan Toppins [this message]
2021-08-10 20:30 ` Jakub Kicinski
2021-08-11  4:07   ` Joe Perches

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=c32a4a3c-c7df-cb8d-ecb4-7c1738cfd15c@redhat.com \
    --to=jtoppins@redhat.com \
    --cc=joe@perches.com \
    --cc=johannes.berg@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --subject='Re: [PATCH] netlink: NL_SET_ERR_MSG - remove local static array' \
    /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

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).