From patchwork Mon May 1 00:16:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 88964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2398465vqo; Sun, 30 Apr 2023 17:48:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58dbxHwSD1k40Klpzv9wlf0BZfvmMyUIERtNtWPvtR+FlsvFPv3T9uFy5XkaDWyHE88GQh X-Received: by 2002:a17:90a:a89:b0:249:7224:41bf with SMTP id 9-20020a17090a0a8900b00249722441bfmr12977980pjw.47.1682902119950; Sun, 30 Apr 2023 17:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682902119; cv=none; d=google.com; s=arc-20160816; b=DoA3fMOydT5dRsFBwzTYj4bIkwtxnhRkYdnsOMjH5uT9hd9ztdpaBwhdqpY8hqo5hB 0L1w23W/uZc5JvBdpRe93Mjzg7bppe7AQdNrN2IeEoN8lFCpChD7qsQ0ziRyNxJE0fxs OX95EKmIfbhWR16u1s5G0K7iec7u0wUsCZWiF4glJxC2KddPaRX+ETJuxriiSxwu2xYX NnhW+Li/6V84ttWDS5NrC6QsPe9HLfnm5Nr6NWW4bU1tPbR9KILcAIAaz3DAV5qh6oi5 Eij1tH+Jt/tzfEBc7o/dqgnzXCCuEN9uMqYTLzgV4Wh4XSOaW43rF8i2gJjx0b0kVusd YHbw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=bwVD7xPPmW0/T4pDo3syWV+u10HS4qWZOkLHQ50Qrms=; b=Jc9JCmJM+/np3aIw0dLox/caD9MEtgcA/ch1L9JIEkVvCzIdpJDn8sV0gWpqEzAum6 pDQ86d/MhCoPVdLkcRCGkJ68WYhac52VA0W3NB5fcrHzAdH1dg/bH/ONd1+dAwDeW+qS Kx8eCHOQIyBtSRMW4qPqibZwX2ULkFm4qzIpMM/QvZ3IslF9cHbbtGCudowYN8PO4Lpt rKhmD6egIGxtFPoDgVRzAM5VNQZylY8/dkHgNcH0hntjK1DG19O6Xdj6RqaKpkB4cSSH 8MrHGcpWRlUEMfjxr95KkLYmQtR9PaiP06fUXgds4fvhwTstavLLx+KC6YZqPqxWwxWo BAvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="CSVo1/Wt"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l190-20020a6388c7000000b0051b5e96024asi26523741pgd.591.2023.04.30.17.48.25; Sun, 30 Apr 2023 17:48:39 -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=@infradead.org header.s=bombadil.20210309 header.b="CSVo1/Wt"; 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 S231814AbjEAAQa (ORCPT + 99 others); Sun, 30 Apr 2023 20:16:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjEAAQ1 (ORCPT ); Sun, 30 Apr 2023 20:16:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8B50E4E for ; Sun, 30 Apr 2023 17:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=bwVD7xPPmW0/T4pDo3syWV+u10HS4qWZOkLHQ50Qrms=; b=CSVo1/WtywdxUAaaP6gtA736bu 7yzvBIyzmc4s9fXFlk/bEyqKsDSk54DNEvhGHgyJoHKRh1y+cpwIH/NR6RQ9pHYsRN3psZ7FHs26u CpCg08Il51etplABWTVrv0tRgwayrEamkHch/yQGPbd4y5XOCTLF9YlNLJFRzYx8wgl/8z9xME886 gPsfaCUjupucSl+wB/ytgVWK8at8p7BEU2DMZlbb2vhbQc+kmPlOngTrtYNcsd1nNQlOmwBu4JNdL O5ftH0NzfqocHM7LKoveIRn/etLVUTvkugVGDYoUP1vOkurJ0kEPAWHohgccduraaoTkvZYrw4TGG z1UpS97A==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1ptHDH-00EwtV-0y; Mon, 01 May 2023 00:16:21 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Mushahid Hussain , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , speakup@linux-speakup.org, Greg Kroah-Hartman Subject: [PATCH] accessibility: use C99 array init Date: Sun, 30 Apr 2023 17:16:17 -0700 Message-Id: <20230501001617.9152-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764650772935988161?= X-GMAIL-MSGID: =?utf-8?q?1764650772935988161?= Use C99 array initializer syntax for consistency with other array initializers around it and to eliminate a sparse warning: drivers/accessibility/speakup/main.c:1290:26: sparse: warning: obsolete array initializer, use C99 syntax Fixes: f43241aafedb ("accessibility: speakup: Specify spk_vars among module parameters") Signed-off-by: Randy Dunlap Cc: Mushahid Hussain Cc: William Hubbs Cc: Chris Brannon Cc: Kirk Reiser Cc: Samuel Thibault Cc: speakup@linux-speakup.org Cc: Greg Kroah-Hartman Reviewed-by: Samuel Thibault --- drivers/accessibility/speakup/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/drivers/accessibility/speakup/main.c b/drivers/accessibility/speakup/main.c --- a/drivers/accessibility/speakup/main.c +++ b/drivers/accessibility/speakup/main.c @@ -1287,7 +1287,7 @@ static struct var_t spk_vars[NB_ID] = { [PUNC_LEVEL_ID] = { PUNC_LEVEL, .u.n = {NULL, 1, 0, 4, 0, 0, NULL} }, [READING_PUNC_ID] = { READING_PUNC, .u.n = {NULL, 1, 0, 4, 0, 0, NULL} }, [CURSOR_TIME_ID] = { CURSOR_TIME, .u.n = {NULL, 120, 50, 600, 0, 0, NULL} }, - [SAY_CONTROL_ID] { SAY_CONTROL, TOGGLE_0}, + [SAY_CONTROL_ID] = { SAY_CONTROL, TOGGLE_0}, [SAY_WORD_CTL_ID] = {SAY_WORD_CTL, TOGGLE_0}, [NO_INTERRUPT_ID] = { NO_INTERRUPT, TOGGLE_0}, [KEY_ECHO_ID] = { KEY_ECHO, .u.n = {NULL, 1, 0, 2, 0, 0, NULL} },