Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2574873rwb; Sun, 6 Aug 2023 22:53:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8pYDov2+ZWyvQ+b7sI42ffYFE4nNMMdSOB2Gg7JjmLujRaZC7bA3rV6McDEEviBD6TwoR X-Received: by 2002:a2e:91c2:0:b0:2b6:ad79:a4fb with SMTP id u2-20020a2e91c2000000b002b6ad79a4fbmr5844562ljg.1.1691387600127; Sun, 06 Aug 2023 22:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691387600; cv=none; d=google.com; s=arc-20160816; b=PAkxvqdzQpumXnN+P97qI8vTLj/W3drrPxAAaxGKCdGz856r90RYsPhF6ausG2h3KR Jse0xEhsUKbIpOkOmW6sMFv5CgZsoTcpwQARwdXN3yMGy0hDSp+uXIGhj/JJhBCjGtfY FC3VyQ/y6xDGLVIBdcOvkuLuJiZj9FNGMEgqKON4YaYgbzhOQsFdFK0ng1KxuR6H0DTx f/xG7feTjrZJTqwyur+xsNcbkxfSqej+VJD0MqW3KjdpsuCh0NtmUZETSNKjM31I/ofq Zv2ZCklGyZdmcRLgdhYg6JOjuW1hcrOh+FL9RRe4oCjB9JbPE04hj1VJiL2QlKzExfIM +ZUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g4CA7m71VMHDqI95j4L+UvW9grU0Bka60ctKudFnJRM=; fh=nTotddeOw7qo5evXnFslYovS1VRB9UQeeWzf9oPpDm4=; b=bosfR/4q0Ot3AH0mofpo9P/w9mLFYw66Y9jf8lu//rMzZy1Cv2QcMSXDPl5wZQwQk7 OUHgRpBlMo1TzxRZA6OlZBK6HPpwU3hGh65TyKd1plCbSio4mkPDXf7KjxjZC7SKmcHd PaGKchy9INDpVqnM9VeF3OF7VnDKNASH4lU+kmi1nwMMhXLbIPXeBrhe5F4GwJQIzkyv e/cuEXjH0SNgDBSPjIJeddHw/UHY3utttvVMOkAtWvcaCAFlgnh7ruB8l5/u18qGECFK rOLusrVnYBkqfTS2rV+0sGzJbun43ynHIe7zDGCmLFl+sDtsrJyAzXe4LN6gtznltMD5 0DrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=jQSF3tYk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx9-20020a170906ca4900b00992e0e54464si5119811ejb.254.2023.08.06.22.52.55; Sun, 06 Aug 2023 22:53:20 -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=@163.com header.s=s110527 header.b=jQSF3tYk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbjHGDwi (ORCPT + 99 others); Sun, 6 Aug 2023 23:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbjHGDwf (ORCPT ); Sun, 6 Aug 2023 23:52:35 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.216]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89D8C1711; Sun, 6 Aug 2023 20:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=g4CA7 m71VMHDqI95j4L+UvW9grU0Bka60ctKudFnJRM=; b=jQSF3tYkPu1IELOWopTwp S6r557ebZwJSdiRXK7TSw9yNmdwpjIY/mq6sdC1bNmaW5lr5w8qzOlHGErT5RFVd xHSFJcEkOMIhOkHiITiYQLfM5ht/OiG8tUc9E6Lzh8szhXsRE0TLlCta4YTwJwn4 kLM97WGhVjoVsNIC6dt8i0= Received: from localhost.localdomain (unknown [39.144.137.13]) by zwqz-smtp-mta-g0-4 (Coremail) with SMTP id _____wAnC8nLZtBkztfiCQ--.36380S3; Mon, 07 Aug 2023 11:36:47 +0800 (CST) From: xingtong_wu@163.com To: ilpo.jarvinen@linux.intel.com Cc: hdegoede@redhat.com, markgross@kernel.org, andriy.shevchenko@linux.intel.com, xingtong.wu@siemens.com, lee@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, gerd.haeussler.ext@siemens.com, tobias.schaffner@siemens.com, lkp@intel.com Subject: [PATCH v2 1/2] platform/x86/siemens: simatic-ipc: fix logic error in BX-59A Date: Sat, 1 Aug 2043 01:30:26 +0800 Message-Id: <20430731173026.2631-2-xingtong_wu@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20430731173026.2631-1-xingtong_wu@163.com> References: <7196d4b9-34fe-4a18-863b-65d07c4a348c@linux.intel.com> <20430731173026.2631-1-xingtong_wu@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wAnC8nLZtBkztfiCQ--.36380S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZFy7tw15ur1fJF1rCw48Zwb_yoW8GFW5pF 4rG3WIkrW5W34Utw1kGay7uFs8Z3Z0krW7G3WUAwnrZwnF9F1jgr17Aa1fXFZrtw45Wa43 Wa9xtrsrGan8Zr7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07bnYFAUUUUU= X-Originating-IP: [39.144.137.13] X-CM-SenderInfo: p0lqw35rqjs4rx6rljoofrz/xtbCfgPE0GDcPDRxuAAAsU X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L4, SPF_HELO_NONE,SPF_PASS,T_DATE_IN_FUTURE_Q_PLUS autolearn=no 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 From: "xingtong.wu" The variable "ledmode" is missing from if statement that leads to a logical error. Add the missing variable to the if condition. Fixes: b8af77951941 ("platform/x86/siemens: simatic-ipc: add new models BX-56A/BX-59A") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202307312322.Aa8upHWK-lkp@intel.com/ Signed-off-by: xingtong.wu --- drivers/platform/x86/siemens/simatic-ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/siemens/simatic-ipc.c b/drivers/platform/x86/siemens/simatic-ipc.c index 02c540cf4070..8ca6e277fa03 100644 --- a/drivers/platform/x86/siemens/simatic-ipc.c +++ b/drivers/platform/x86/siemens/simatic-ipc.c @@ -129,7 +129,7 @@ static int register_platform_devices(u32 station_id) pdevname = KBUILD_MODNAME "_leds"; if (ledmode == SIMATIC_IPC_DEVICE_127E) pdevname = KBUILD_MODNAME "_leds_gpio_apollolake"; - if (ledmode == SIMATIC_IPC_DEVICE_227G || SIMATIC_IPC_DEVICE_BX_59A) + if (ledmode == SIMATIC_IPC_DEVICE_227G || ledmode == SIMATIC_IPC_DEVICE_BX_59A) pdevname = KBUILD_MODNAME "_leds_gpio_f7188x"; if (ledmode == SIMATIC_IPC_DEVICE_BX_21A) pdevname = KBUILD_MODNAME "_leds_gpio_elkhartlake"; -- 2.25.1