Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1066730rdg; Fri, 11 Aug 2023 08:42:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGp5Rn9cVqychXiOopPOOhIwTLNupmYIPtCeqATaDmE6YD5MmBiwXGyi/FwXR3W4gTwLeNf X-Received: by 2002:a17:903:2285:b0:1b8:7625:3042 with SMTP id b5-20020a170903228500b001b876253042mr2424258plh.10.1691768522321; Fri, 11 Aug 2023 08:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691768522; cv=none; d=google.com; s=arc-20160816; b=FI0fxfiknrtEnMmRwnoSdkflvFdpzT4nIuifKw4xfQPOzlxpV0H/HA+YZJ76BdJ008 UyYV1P7mAVkON515U/E+2PaWRPoiyI94OUXuNd1znbD9XB3QsIBhkUUKolvQUBZNJgmy OZM7pdchcAS8vMJTwE7v+QNh6gfK+NPBvDBdir9raY5lecGtG+bOtWrhGSnlLzZmC1MU LmyWEHnUIFtJh9+bY5IXokV8WPVzV+iWsVhnAdMgHvIYTzkSN0i9GgDT4zkmIYjcjWps 1W0r5hamNSt/J8TyD/Nnxe1x9pm10J6Zefg+F/zSsvZO3ExKaIIM0JzhtuPI+OvAWdvX eC/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=F9D7PZ0hU2tHmahvQKpgIwdFWy4Ot1Q9fLnltmunggE=; fh=FeZjroTCMFGVKBYmFRlwR2Nm+ykyROFjt6gcsfEGPGE=; b=IQFerB1xfllrHMNlZ3IEEPlRMNWiUtnriwT+K89UGv3/NjtonB2kwkixYrAw01sdOm YUc49XVfWTIIXmBiEii2kV5t2QLsOiO6pMnC0FJLYOaGK7arnlvnarhQ7vTfh6jT3Ty5 WXI+Qmv9LowTufB8zKFSyVnZSWZs8A6GvDvz+xIC6KI3kW2DRAIaozqSimcBBn4VcbzL 6yh+unaSICPAxjeSdb70cH+KAhGVKOXnMgnsfW86NvOwXo2U4xVI656n8cmOX4B3iQGq tzrJY7laYVbXwJAC4KL0v4vHlLxbw/b5VEp3DZ1AYFqoF8Jr5Jn0O6kHRnzkak9fei2R YCEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=s0NGs1Dv; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=TaZws5a9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a170902e74100b001bbaaf979a4si3654091plf.360.2023.08.11.08.41.50; Fri, 11 Aug 2023 08:42:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=s0NGs1Dv; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=TaZws5a9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233967AbjHKPC1 (ORCPT + 99 others); Fri, 11 Aug 2023 11:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjHKPC1 (ORCPT ); Fri, 11 Aug 2023 11:02:27 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44B1910FE; Fri, 11 Aug 2023 08:02:26 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 285815C00FE; Fri, 11 Aug 2023 11:02:23 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 11 Aug 2023 11:02:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1691766143; x=1691852543; bh=F9D7PZ0hU2tHmahvQKpgIwdFWy4Ot1Q9fLn ltmunggE=; b=s0NGs1DvL7dPmIgXuhCKQhK5nHT3QdoltzGiw7QiM0/OZ21PmjD gwAs7BIh5m7DxcmxPUWYoq1ND4bmewxrlf0VnW3rta4Idkm8MOCPiWRUWZQfIx5Q mYr4U4qoJdZVXQ/Mj+77MgE9Uj64sufSF7OunS76msNY7YtEMr0oypl2cBLX/C/7 K1UfcWK7wHYQGesYeYUCasECJYehXWVF2byszqg+uWB5EnKwEmgpCWC2mmHwAnah 0OQQ7EWH5n0rbOavVYEGXaN1/QWuhnrvEuwRsWHoZDPRmBZ9lv98cvasB2tIdWCL ZvpG9HDkcNBI2M3vsi50i9WhtIWScEfl4hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1691766143; x=1691852543; bh=F9D7PZ0hU2tHmahvQKpgIwdFWy4Ot1Q9fLn ltmunggE=; b=TaZws5a9pgfjZmfmfaS0f3x7J/gNZQmj6t64N/fwVxwdLpMp8rN G3lBUxnBzvZncOxlnchOScifpjcjXXRlYYPN2F8oyCkD/YeB/dtYHbRlmT+Er3sQ 4eqv6nfzBjpD9YSF5Oco6CKzZtBZriR9qJYGZHBIuRoPbrs1INbdTJvRRicz7u50 1aJ8lRHU6xs///e/ggo7R8uI3SNtYDnNYQ4eY62Stx67SwxByRR3njJZILs7BMOd AG6d5EtOs4GhGli+OJQ9qLZToaOX73h65s4L1bUF5JHqu8Hb1I1MxoenpAGLI216 YVASgcF6hOMNaMYRhoKBjt50ePXbynyz9pw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleekgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudektdfg jeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3F16CB60089; Fri, 11 Aug 2023 11:02:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: In-Reply-To: <97764bad-7091-e9ed-6f49-d31861fc622f@linux.intel.com> References: <20230811130948.2211800-1-arnd@kernel.org> <97764bad-7091-e9ed-6f49-d31861fc622f@linux.intel.com> Date: Fri, 11 Aug 2023 17:02:01 +0200 From: "Arnd Bergmann" To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "Arnd Bergmann" Cc: "Hans de Goede" , "Mark Gross" , "xingtong.wu" , "Nathan Chancellor" , "Nick Desaulniers" , "Tom Rix" , "Henning Schild" , "Andy Shevchenko" , "Lee Jones" , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] platform/x86/siemens: simatic-ipc: fix nonsensical condition Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 11, 2023, at 15:17, Ilpo J=C3=A4rvinen wrote: > On Fri, 11 Aug 2023, Arnd Bergmann wrote: > >> From: Arnd Bergmann >>=20 >> The condition checking for a constant SIMATIC_IPC_DEVICE_BX_59A value >> clearly makes no sense, as clang warns: >>=20 >> drivers/platform/x86/siemens/simatic-ipc.c:132:42: error: use of logi= cal '||' with constant operand [-Werror,-Wconstant-logical-operand] >> if (ledmode =3D=3D 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 =3D=3D SIMATIC_IPC_DEVICE_BX_21A || = SIMATIC_IPC_DEVICE_BX_59A) >> ^ ~~~~= ~~~~~~~~~~~~~~~~~~~~~ >>=20 >> Most likely, this was meant to check ledmode to be one of the two val= ues, >> so change it to that. >>=20 >> Fixes: b8af77951941e ("platform/x86/siemens: simatic-ipc: add new mod= els BX-56A/BX-59A") >> Fixes: c56beff203754 ("platform/x86/siemens: simatic-ipc-batt: add su= pport for module BX-59A") >> Signed-off-by: Arnd Bergmann 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 [=3Dn] && X86 [=3Dy] Selected by [m]: - SIEMENS_SIMATIC_IPC_WDT [=3Dm] && WATCHDOG [=3Dy] && SIEMENS_SIMATIC= _IPC [=3Dy] drivers/platform/x86/p2sb.c:68:9: error: call to undeclared function 'pc= i_scan_single_device'; ISO C99 and later do not support implicit functio= n declarations [-Wimplicit-function-declaration] Arnd