From: Florian Fainelli <f.fainelli@gmail.com>
To: Colin King <colin.king@canonical.com>,
Andrew Lunn <andrew@lunn.ch>,
Vivien Didelot <vivien.didelot@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: dsa: bcm_sf2: make const array static, makes object smaller
Date: Tue, 20 Oct 2020 09:51:39 -0700 [thread overview]
Message-ID: <0cdc86a4-66a0-2f1f-ba23-03b54ccacd69@gmail.com> (raw)
In-Reply-To: <20201020165029.56383-1-colin.king@canonical.com>
On 10/20/20 9:50 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Don't populate the const array rate_table on the stack but instead it
> static. Makes the object code smaller by 46 bytes.
>
> Before:
> text data bss dec hex filename
> 29812 3824 192 33828 8424 drivers/net/dsa/bcm_sf2.o
>
> After:
> text data bss dec hex filename
> 29670 3920 192 33782 83f6 drivers/net/dsa/bcm_sf2.o
>
> (gcc version 10.2.0)
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
WARNING: multiple messages have this Message-ID (diff)
From: Florian Fainelli <f.fainelli@gmail.com>
To: Colin King <colin.king@canonical.com>,
Andrew Lunn <andrew@lunn.ch>,
Vivien Didelot <vivien.didelot@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: dsa: bcm_sf2: make const array static, makes object smaller
Date: Tue, 20 Oct 2020 16:51:39 +0000 [thread overview]
Message-ID: <0cdc86a4-66a0-2f1f-ba23-03b54ccacd69@gmail.com> (raw)
In-Reply-To: <20201020165029.56383-1-colin.king@canonical.com>
On 10/20/20 9:50 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Don't populate the const array rate_table on the stack but instead it
> static. Makes the object code smaller by 46 bytes.
>
> Before:
> text data bss dec hex filename
> 29812 3824 192 33828 8424 drivers/net/dsa/bcm_sf2.o
>
> After:
> text data bss dec hex filename
> 29670 3920 192 33782 83f6 drivers/net/dsa/bcm_sf2.o
>
> (gcc version 10.2.0)
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
next prev parent reply other threads:[~2020-10-20 16:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 16:50 [PATCH] net: dsa: bcm_sf2: make const array static, makes object smaller Colin King
2020-10-20 16:50 ` Colin King
2020-10-20 16:51 ` Florian Fainelli [this message]
2020-10-20 16:51 ` Florian Fainelli
2020-10-21 4:00 ` Jakub Kicinski
2020-10-21 4:00 ` Jakub Kicinski
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=0cdc86a4-66a0-2f1f-ba23-03b54ccacd69@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=vivien.didelot@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.