[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <ef7d94a4-9f65-47fb-906a-4fed4480d020@app.fastmail.com>
Date: Fri, 11 Aug 2023 17:02:01 +0200
From: "Arnd Bergmann" <arnd@...db.de>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
"Arnd Bergmann" <arnd@...nel.org>
Cc: "Hans de Goede" <hdegoede@...hat.com>,
"Mark Gross" <markgross@...nel.org>,
"xingtong.wu" <xingtong.wu@...mens.com>,
"Nathan Chancellor" <nathan@...nel.org>,
"Nick Desaulniers" <ndesaulniers@...gle.com>,
"Tom Rix" <trix@...hat.com>,
"Henning Schild" <henning.schild@...mens.com>,
"Andy Shevchenko" <andriy.shevchenko@...ux.intel.com>,
"Lee Jones" <lee@...nel.org>, platform-driver-x86@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH] platform/x86/siemens: simatic-ipc: fix nonsensical condition
On Fri, Aug 11, 2023, at 15:17, Ilpo Järvinen wrote:
> On Fri, 11 Aug 2023, Arnd Bergmann wrote:
>
>> From: Arnd Bergmann <arnd@...db.de>
>>
>> The condition checking for a constant SIMATIC_IPC_DEVICE_BX_59A value
>> clearly makes no sense, as clang warns:
>>
>> drivers/platform/x86/siemens/simatic-ipc.c:132:42: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand]
>> if (ledmode == SIMATIC_IPC_DEVICE_227G || SIMATIC_IPC_DEVICE_BX_59A)
>> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/x86/siemens/simatic-ipc-batt.c:197:49: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand]
>> if (priv.devmode == SIMATIC_IPC_DEVICE_BX_21A || SIMATIC_IPC_DEVICE_BX_59A)
>> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> Most likely, this was meant to check ledmode to be one of the two values,
>> so change it to that.
>>
>> Fixes: b8af77951941e ("platform/x86/siemens: simatic-ipc: add new models BX-56A/BX-59A")
>> Fixes: c56beff203754 ("platform/x86/siemens: simatic-ipc-batt: add support for module BX-59A")
>> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Ok, I see. I missed those as there is hasn't been a new linux-next in
a few days.
I suppose this one is also fixed then?
WARNING: unmet direct dependencies detected for P2SB
Depends on [n]: PCI [=n] && X86 [=y]
Selected by [m]:
- SIEMENS_SIMATIC_IPC_WDT [=m] && WATCHDOG [=y] && SIEMENS_SIMATIC_IPC [=y]
drivers/platform/x86/p2sb.c:68:9: error: call to undeclared function 'pci_scan_single_device'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Arnd
Powered by blists - more mailing lists