Re: [PATCH] Do not make trace.c/getnanotime an inlined function
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Sep 29, 2014, 20:40 UTC
- Message-ID
- <5429C3B5.5020401@kdbg.org>
- In-Reply-To
- <CAP30j14QGtHC7huU=3t4sJT_dZ3t9V=CBWyGyJW7EjT9H5ZK9w@mail.gmail.com>
Am 28.09.2014 um 22:42 schrieb Ben Walton:
Show 11 quoted lines
> On Sun, Sep 28, 2014 at 8:15 PM, Johannes Sixt <j6t@kdbg.org > <mailto:j6t@kdbg.org>> wrote: > Am 28.09.2014 um 09:50 schrieb Ben Walton: > > -inline uint64_t getnanotime(void) > > +uint64_t getnanotime(void) > > But then the function could stay static, no? > > > This function is used in several places outside of the translation unit > so while it's possible, I think it's more work than it's worth...
I see. I didn't check myself, sorry. I assumed that due to the 'inline' the function would not have been available outside. Now your patch looks good.
Thanks, -- Hannes