[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wjKiemDQXKCGztokhw_A-8SnE+7Q9Queb-rXUTbHPNedA@mail.gmail.com>
Date: Fri, 18 Mar 2022 11:31:54 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Nick Desaulniers <ndesaulniers@...gle.com>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Bill Wendling <morbo@...gle.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Nathan Chancellor <nathan@...nel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
llvm@...ts.linux.dev, Joe Perches <joe@...ches.com>
Subject: Re: [PATCH] gpiolib: acpi: use correct format characters
On Fri, Mar 18, 2022 at 11:01 AM Nick Desaulniers
<ndesaulniers@...gle.com> wrote:
>
> Maybe we should reconsider our recommendations for signed types?
For 'hhx' is probably does make sense in some cases.
That said, for kernel work, if you work on byte values, I would
seriously suggest not using 'char' at all, which has badly defined
sign.
And 'signed char' makes no sense either.
So while 'hhx' makes sense in the general case, for kernel work I'd
much rather see "don't use stupid types".
So why not just use 'unsigned char' (or 'u8' if you think typing is boring).
Linus
Powered by blists - more mailing lists