Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1734635
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] libata: make static arrays const, reduces object code size |
| Date | 2017-09-19 05:40 +0200 |
| Message-ID | <urhy9-7dq-1@gated-at.bofh.it> (permalink) |
| References | <ur4rh-6TZ-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Sep 18, 2017 at 02:31:40PM +0100, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > Don't populate const arrayis on the stack, instead make them static. > Makes the object code smaller by over 260 bytes: > > Signed-off-by: Colin Ian King <colin.king@canonical.com> ... > diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c > index 74407c6dd592..31a61e8e0152 100644 > --- a/fs/ocfs2/dlm/dlmrecovery.c > +++ b/fs/ocfs2/dlm/dlmrecovery.c > @@ -1129,7 +1129,6 @@ static int dlm_send_mig_lockres_msg(struct dlm_ctxt *dlm, > (mres->num_locks * sizeof(struct dlm_migratable_lock)); > > /* add an all-done flag if we reached the last lock */ > - orig_flags = mres->flags; > BUG_ON(total_locks > mres_total_locks); > if (total_locks == mres_total_locks) > mres->flags |= DLM_MRES_ALL_DONE; Looks like patch contamination. Thanks. -- tejun
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] libata: make static arrays const, reduces object code size Colin King <colin.king@canonical.com> - 2017-09-18 15:40 +0200 Re: [PATCH] libata: make static arrays const, reduces object code size Tejun Heo <tj@kernel.org> - 2017-09-19 05:40 +0200
csiph-web