Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1605926lql; Wed, 13 Mar 2024 03:04:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8GU81X/r6rx4a8keBJZKQsizqEm7rA9wBOp2KxyDhF7zYN6eDuYEZyuUr8ejjgad5ge9kAkAHSwIlJo5oK1ZqQFIwBPfaQ+CBHW4rOQ== X-Google-Smtp-Source: AGHT+IF2YSiui5FH3WR/7Y0cmBJCB7Yma7/pAMJ41HUnDZThPjttrx3ntBGISvclAUOHTAJ0wOHM X-Received: by 2002:a0c:e284:0:b0:690:d6d8:d521 with SMTP id r4-20020a0ce284000000b00690d6d8d521mr3138591qvl.23.1710324266037; Wed, 13 Mar 2024 03:04:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710324266; cv=pass; d=google.com; s=arc-20160816; b=qBwWh9Yog0CNomBuaFf0WuXKB+mzjyR6w0Gn6dmn3HJ2pXb5dEoj+DtDiZ1PbbFsnR fiZ7v6J4lKpczvtflyu73JMeWCYXxWS3LRl9C/hhecqB+mwFUITjNgXjtI/GIoobZ2A9 tD2upeUFSgD1+1UVQEn92HW801EYShLoOIf3IlfyJZAwtvQDDOB3WgcafKgNIkU5Rhzx nmcFGHN6FpWton8ET+VcaG3DRdAbv+6kezJ/rRkQ9nEHTAJYBSFK8OV8SLDMT7JCFkwJ QzSUJDRXKJ74ITNsE8c3BnAPwfQEA6nmy4sjHBqpCqvDAlrr4vgDUUIDcdp6ECp3tQOo fOIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=udIWtF+Lq7THhFwKPX2niKSdV7tD5NGGTDAzy5h/FeQ=; fh=a3j0qd72iNSzuXus6y0hJl8v7inApH2rG50S08Jcui4=; b=MW9FeLB4eQvXxParp6DYyGYSoCcgUMyIoxB5Id7+3ckSXh/pffgvXXXA1O7IMi9nID qMbzT0EKseW1wFExuq9zBuUtK23Kar1DUKuX3QNKSF6QfEWrs/GcCIZ5TXAJjRUknsIJ i4xL+f0YR6Dp+462dq3hX9sfuUEPs3ujqJu/68GGtA+tVjXYgcBrW7nNAkcvDKMwf6Qz HFhdgaIC61M1u5SoFAJc22W2y1u9m0EKtQ1U4LBbNOQA9iiA0+v5l/+781zxeHHITpVz 8bAxZ4eQr9NiYIAvLsf1zG+6gzqBmnWLKdYVeS6mHDaDA3TePR9jTP1RhxwqwOtNkpcA BWUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2QzWLmD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u15-20020ad45aaf000000b006903ca2ae9fsi9762383qvg.273.2024.03.13.03.04.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 03:04:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2QzWLmD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BE9E71C2101A for ; Wed, 13 Mar 2024 10:04:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2191B38DDA; Wed, 13 Mar 2024 10:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q2QzWLmD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 424B7125CF; Wed, 13 Mar 2024 10:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710324260; cv=none; b=i4SWM8C6EcxDFfFgdWHG394DiRC7zEXoL5mShv2JJPDCCrgyq1S0xNcNG6Z418WkMVGatOXR72SDtUV2lMGuPFMkFjjgkDhJkdCzGxtxI/+rk/rMsHVR2bwkvOKyaXGiGnHcAQv0Dy0MwO0jdVvcSWknc4umQQOFa0hcuVCpgQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710324260; c=relaxed/simple; bh=s2Xi/Ss3yhJ3DH+e0boShl6sVUgNgQ6/KO0wp7CwR+U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HYf1nD7XuhcLqr96/VKu7ZawAyoEwLf/yur/JNGGtCUmAg6MBSiGl3nh0Xdqc6jgBAM3At3A8M7wNhwj5XEYDVPsLSgLc+YDQt+S4ppZ9ocGJNBhyhnZTs3I6jYycN0zwnlLhqmfI2LdqKtksabz/HyeGjWMSpDsCYcCgRJw5eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q2QzWLmD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1529FC433F1; Wed, 13 Mar 2024 10:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710324259; bh=s2Xi/Ss3yhJ3DH+e0boShl6sVUgNgQ6/KO0wp7CwR+U=; h=From:To:Cc:Subject:Date:From; b=Q2QzWLmDqq+tuKW5dGk50mrqXuXJT+m+HkBoOKyDQF5XMzyDqHCUNlZZRD/hEX479 4raJgiCuiPjLBKiCLtjydYzEqT+2+GK32Qqj7WSUit3gubZk5EcqChleZ4/02Fbha6 uuqiXmXhgvm0U+BdCmSsHa5mYosUZYkWR5RXBMyWuSBGAjEOwkSpLThr99uDnv80t2 5v3N5evK3cr8YYtFs6z8eoZ6luraXyCF/aaZG5ET2cU3TcM8DcmB/fnFLCNoE2m1Vt YJ4hm+JPp154B7LawBomQ4VyVTjw25n8+49XDZMsXEABSazzCBjeZGx/JJ8R79n36V 7tKLYD8De2B5g== From: Arnd Bergmann To: William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Nathan Chancellor , Greg Kroah-Hartman Cc: Arnd Bergmann , Nick Desaulniers , Bill Wendling , Justin Stitt , speakup@linux-speakup.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] speakup: devsynth: remove c23 label Date: Wed, 13 Mar 2024 11:04:03 +0100 Message-Id: <20240313100413.875280-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann clang-16 and higher warn about a c23 C extension that is also a GNU extension: drivers/accessibility/speakup/devsynth.c:111:3: error: label at end of compound statement is a C23 extension [-Werror,-Wc23-extensions] clang-15 just produces an error here: drivers/accessibility/speakup/devsynth.c:111:3: error: expected statement This is apparently the only such warning in the kernel tree at the moment, so just convert it into standard C code using the equivalent 'continue' keyword. Fixes: 807977260ae4 ("speakup: Add /dev/synthu device") Signed-off-by: Arnd Bergmann --- drivers/accessibility/speakup/devsynth.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/accessibility/speakup/devsynth.c b/drivers/accessibility/speakup/devsynth.c index da4d0f6aa5bf..76b5e942dc1b 100644 --- a/drivers/accessibility/speakup/devsynth.c +++ b/drivers/accessibility/speakup/devsynth.c @@ -68,7 +68,7 @@ static ssize_t speakup_file_writeu(struct file *fp, const char __user *buffer, case 7: /* 0xfe */ case 1: /* 0x80 */ /* Invalid, drop */ - goto drop; + continue; case 0: /* ASCII, copy */ @@ -96,7 +96,7 @@ static ssize_t speakup_file_writeu(struct file *fp, const char __user *buffer, if ((c & 0xc0) != 0x80) { /* Invalid, drop the head */ want = 1; - goto drop; + continue; } value = (value << 6) | (c & 0x3f); in++; @@ -107,7 +107,6 @@ static ssize_t speakup_file_writeu(struct file *fp, const char __user *buffer, want = 1; break; } -drop: } count -= bytes; -- 2.39.2