Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1351307rwr; Wed, 3 May 2023 13:59:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XNxbX9JGUqsXLNp5QXKXTULdZ1ngcpVsXcUQ72yBERR6kBsch8EIY7JtvxBH+CJwZwe+p X-Received: by 2002:a17:902:d2ce:b0:1a9:a87d:be1 with SMTP id n14-20020a170902d2ce00b001a9a87d0be1mr1302800plc.34.1683147543848; Wed, 03 May 2023 13:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683147543; cv=none; d=google.com; s=arc-20160816; b=umsM/HOgWkysJ60NAGFHp+wCBQxRRL26WbJJ16/GMFpPzd5NaVlouMF2VXSQEVA+Lz jwQFPbVu1u2RVfJTMd+G1m8XU10LC6seNZ0K/HnooxbqIiLtDM4EDNYYOygxLUhqpn/2 8VBpjE44FdYq9sAkXa9OM5G0iwKVhI6er3eNAV3g1Z2gqXmfejyCF2IicOhg0FE3Qgff 20zUOY1GCH2CqkUHIHfN7/3HAY3WI0yKE/0xjm1pu6wSDs18cJlDAUJc9Sx360gfvl5T 1eNd7shxQ5jAs7RoEdCCmIUWu3oL/tmgNnR0N/d0ztgCRghYEZsHJi9hKPvYklUbvJPw xaiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=MebKpbPvjjLcVP5UK0GuwV8NZpys75qJp2kyPkxN3bg=; b=kQlDQLqXTICdZ5o8UnFiLj/COSMphumWoUODKht6A5poQbXIUv1SDm1mHCWOL10kPZ VMZYzpld9gYwLBL6+pQqNuuCI+9WVwWmZxsvnWFFj2w5iy59xSgDDkwhpcZuYVXzsIsc RSHRjjz8d5U5n/cRvQ5xys1tdh1o13U0xY3eZc69eSUUEUCjGw9VClvnanvHfzH39ihO e584gqye2pCHI8NuztHd/93VpCakM+YhZBPISdSI5z+r4Hcxr+Lz2Da/Qbnfhy39ogez 0Z4y3IlpkaBfGWD5EruAtsooz7mCxYal3v0IPFEqGyEJks/6tdPeryYjf7QC+rliCRVI 9duA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bFM8UMfu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a17090341c400b001a9f42553ddsi15236777ple.296.2023.05.03.13.58.27; Wed, 03 May 2023 13:59:03 -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=@gmail.com header.s=20221208 header.b=bFM8UMfu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbjECUt4 (ORCPT + 99 others); Wed, 3 May 2023 16:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjECUtz (ORCPT ); Wed, 3 May 2023 16:49:55 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 322627AB2; Wed, 3 May 2023 13:49:54 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-64115e652eeso7970519b3a.0; Wed, 03 May 2023 13:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683146993; x=1685738993; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=MebKpbPvjjLcVP5UK0GuwV8NZpys75qJp2kyPkxN3bg=; b=bFM8UMfuptbt97mtMGjQlMZblWfeOV8q1Gn3F2oTVb4cVxIgjAcd83Ry9Y0JAHJ1aU e74mhQ7697KPOt5uGp7yOpjnDIvQmzcDwVJwPyc7asd6YFcNJHRmmmIyKHiCz23HjonD ojXCcfs9lYkeqO8CdJUWVWTwso3AbLQtfN6BuBDHRAJpqhlePHXfIITJvzWUCAr04B39 XG2T/QWdiMhr9tTB7UdR2rtPp1gN2GRT1NrfEkU8VD4zsRK71zmYVxszRHn8XDvPvJo9 0n19F4HNGg8cXaH6B9y0OYHxh0/ihdscTDLohFh8TEvEkfn6kdf6iMs+3cRC4THzMMdn jTNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683146993; x=1685738993; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MebKpbPvjjLcVP5UK0GuwV8NZpys75qJp2kyPkxN3bg=; b=WMIEGEkHQNC5CYm38K9lD0Lo2KBzMnsSjBF6xufIp0gFHT/5rWPJmdWHJMFRootsaQ BFvKFkYj3i/NXY+0Blk/tzMlMk+qDCuR58jWQj0T7X84GU/9WuWWwGwC0nA1VMoC2I+t du4VAyy70tGoPgOa39kwlNeMPsm1a0FiJ/tVSIvgzN86OH3Jcy81czGTGnKthWDJNIgb 5fYHxy4jMs5RPpTDTVSaA40Sn/dfoNE2EV+nDrAzCogyiOwikQSAbQJ28bRfq0dIvEKO tI035KJyQQtRKXFLWWipXSWdd98ydWHzpYoC3Vs/C7bOcHZhGb7XdG6xcyGQpjtLypLp AqGA== X-Gm-Message-State: AC+VfDy3uWkj32QC/ZlwtBgFW74pkzR1KwMpVT9fZwtk4rrPCLEeEUfW ESP47ChMIK4lbEGdNE7dqHmE1GVz9Lw= X-Received: by 2002:a17:90a:34ce:b0:24d:e97a:8846 with SMTP id m14-20020a17090a34ce00b0024de97a8846mr3492850pjf.24.1683146992956; Wed, 03 May 2023 13:49:52 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:9390:e396:49ef:54dc]) by smtp.gmail.com with ESMTPSA id em8-20020a17090b014800b0023cfdbb6496sm1855295pjb.1.2023.05.03.13.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 13:49:52 -0700 (PDT) Date: Wed, 3 May 2023 13:49:49 -0700 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Javier Martinez Canillas , Geert Uytterhoeven , linux-kernel@vger.kernel.org Subject: [PATCH] Input: tests - fix input_test_match_device_id test Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Properly initialize input_device_id structure in input_test_match_device_id test to make sure it contains no garbage causing the test to randomly fail. Fixes: fdefcbdd6f36 ("Input: Add KUnit tests for some of the input core helper functions") Reported-by: Geert Uytterhoeven Signed-off-by: Dmitry Torokhov --- drivers/input/tests/input_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/tests/input_test.c b/drivers/input/tests/input_test.c index 8b8ac3412a70..0540225f0288 100644 --- a/drivers/input/tests/input_test.c +++ b/drivers/input/tests/input_test.c @@ -87,7 +87,7 @@ static void input_test_timestamp(struct kunit *test) static void input_test_match_device_id(struct kunit *test) { struct input_dev *input_dev = test->priv; - struct input_device_id id; + struct input_device_id id = { 0 }; /* * Must match when the input device bus, vendor, product, version -- 2.40.1.495.gc816e09b53d-goog -- Dmitry