[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOGAQerbVvG64uguOQ0nxv0-BPSMQxm6FH9AGupNm62DXtzLHQ@mail.gmail.com>
Date: Tue, 24 Jul 2018 13:00:12 -0700
From: Roman Kiryanov <rkir@...gle.com>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, Todd Kjos <tkjos@...gle.com>
Subject: Re: [PATCH 3/3] tty: Mark goldfish_tty_line_count as const
> Then why not just make it a #define?
With "const" the diff is smaller.
> No need to waste the memory of a variable, right?
I believe the compiler will produce the same binary for const and for
#define if optimization is enabled.
Powered by blists - more mailing lists