[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171229194614.3iku5zg5oglrd2cl@gmail.com>
Date: Fri, 29 Dec 2017 20:46:14 +0100
From: Ingo Molnar <mingo@...nel.org>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Saidgani Musaev <cpu808694@...il.com>,
"H. Peter Anvin" <hpa@...or.com>,
Thomas Gleixner <tglx@...utronix.de>, x86@...nel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] arch/x86/boot: sizeof macro
* Andy Shevchenko <andy.shevchenko@...il.com> wrote:
> On Fri, Dec 29, 2017 at 8:30 PM, Saidgani Musaev <cpu808694@...il.com> wrote:
>
> No changelog, no explanation why...
> No SoB tag...
>
> > - ireg.cx = sizeof buf;
> > + ireg.cx = sizeof(buf);
>
> sizeof is operator, not a function.
> So, what are you trying to achieve?
That's true, but in the kernel coding style we use it as a function:
triton:~/tip> git grep 'sizeof(' | wc -l
116570
triton:~/tip> git grep 'sizeof [:alnum:]' | wc -l
177
Thanks,
Ingo
Powered by blists - more mailing lists