Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1622128lql; Wed, 13 Mar 2024 03:40:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4oisQRgjWhTsLksJMd/zd/iP4b52ydaO4Sy2y7qp/SuU26Eit8j0C19J8gzmsf5tUtepMCva3RKu+QbY6KgDe395oN9QloGlwy21ecQ== X-Google-Smtp-Source: AGHT+IE9LYOc7HzW9iPHt30oRWylA1EAIL2eRr9drKyx7DQE9Z9hLAqkRzeZZMQBGGiuvI8urIUr X-Received: by 2002:a05:6a00:c95:b0:6e5:584d:e511 with SMTP id a21-20020a056a000c9500b006e5584de511mr2335710pfv.17.1710326441497; Wed, 13 Mar 2024 03:40:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710326441; cv=pass; d=google.com; s=arc-20160816; b=V7H26QzR71X7vxoewucH3m3xIH0pFVaZTtuGFfgZ6Lu+xLYkD1lpVDy0txtpxJa4iE Ceh92ewlwljNqgnNQeRl0GKzRD5XumJ2sfTVBBLVMPXxHoifxiFfauilsgxHGkq7XZMU 2FoKpG69JPYE//DzVuL1MkN2/6ZGRBPUHkTkTELrtBhQ7AlPlpd+vDeQfvM9ioHbkeA6 /GyNkKBG2tWRnDSL140zAc4cs+CoaFwsELg+fYCW7Kfp4CtxsZme5ELOPa9q9hWE9wha rSuVzzOMiv4/mAgWaJ74cKgVXiGGo1qPVnUSKROWcBkBvFZXLOfBwGEh++2EQbeX1hf4 mNRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:mail-followup-to:message-id:subject :cc:to:from:date; bh=LSr7ibJZpDzN2hHGrKGPBoov+NaWS4m1LARsaXq5hxQ=; fh=KY22yMbd4o5yHTm8DgIgSDaE32u1/sV+TgVVUJPnxio=; b=yZMyQ6S+swYMl8Lb3Co7OwRlG9QxaYCCyPNoh3hCTCC8w8XF1YjTsqpeJ9maID307x w1/l59g1Ib6c7RNuBJ4fofqphEKRQbf7aAiCAWJrTOcvaaYxkNz+F4oJQTSlMVqKfyiE In/leQmd8n40NWVtl8SnY8Td7vtTl4oVfm/IMU7hBoswalYElAgQe6DFPyK/aPThPftK 8cQg8H+dexpR+p+jSxXWdzS/WPMayBTqsz0bDASIxoXYU05JXvWPtiyOmFi7+qBLCyYl cJeylsxdU88OB0yhTz74wXt5UqryTzcIGc0t3oKQizr2NjMhOszknjAkKc7iBdO40Cro qUFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=bounce.ens-lyon.org); spf=pass (google.com: domain of linux-kernel+bounces-101366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101366-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p31-20020a631e5f000000b005cd88585706si8855749pgm.828.2024.03.13.03.40.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 03:40:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=bounce.ens-lyon.org); spf=pass (google.com: domain of linux-kernel+bounces-101366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101366-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2E7802829D4 for ; Wed, 13 Mar 2024 10:40:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBACD3D3A4; Wed, 13 Mar 2024 10:40:20 +0000 (UTC) Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) (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 A2A173D0DD for ; Wed, 13 Mar 2024 10:40:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.77.166.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710326420; cv=none; b=XxkPpexJrGJFqrJkwFPf4nm/6guqjtqCVnvfxdQvufVb0OlkXWi5Vh7WmPZA45MbNMW7N009aF6xMfvD6lruppRSVFlTKnJc0uG458RqdmIsphcxw9ggeBbPaLi84IFBGaEEa4LPpjVw++PsfDd1twYKt4yCBLLRbBwQC1gUUgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710326420; c=relaxed/simple; bh=DWfzBi/hY8b2ekN9IriDT2CRKZhaspCa2KsynZL8fDY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PMy8vRIXyLDkhq9OepiR7OFq2be35Yhy8FgS9S8UW3TtOnaNMbGOmL6LHfNM0ahDpQ/RKdJADBn/RxPuE65ATBmf0/kMul5NMeZ5h/aykk9PtizlPk0Su0WKNR5K5XgzAjqsEVX1usyB2PLLwu9R74kZey54FEAeQCpM6NljpJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org; arc=none smtp.client-ip=140.77.166.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id B175DA01B6; Wed, 13 Mar 2024 11:40:15 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67qlf_VEHszX; Wed, 13 Mar 2024 11:40:15 +0100 (CET) Received: from begin (nat-inria-interne-52-gw-01-bso.bordeaux.inria.fr [194.199.1.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id C630EA01AB; Wed, 13 Mar 2024 11:40:14 +0100 (CET) Received: from samy by begin with local (Exim 4.97) (envelope-from ) id 1rkM1u-000000009Kn-1rvr; Wed, 13 Mar 2024 11:40:14 +0100 Date: Wed, 13 Mar 2024 11:40:14 +0100 From: Samuel Thibault To: Arnd Bergmann Cc: William Hubbs , Chris Brannon , Kirk Reiser , Nathan Chancellor , Greg Kroah-Hartman , Arnd Bergmann , Nick Desaulniers , Bill Wendling , Justin Stitt , speakup@linux-speakup.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] speakup: devsynth: remove c23 label Message-ID: <20240313104014.thhiz2pektmqun4b@begin> Mail-Followup-To: Samuel Thibault , Arnd Bergmann , William Hubbs , Chris Brannon , Kirk Reiser , Nathan Chancellor , Greg Kroah-Hartman , Arnd Bergmann , Nick Desaulniers , Bill Wendling , Justin Stitt , speakup@linux-speakup.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20240313100413.875280-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240313100413.875280-1-arnd@kernel.org> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Hello, I have already sent a fix to greg. ("speakup: Fix warning for label at end of compound statement") Samuel Arnd Bergmann, le mer. 13 mars 2024 11:04:03 +0100, a ecrit: > 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 > -- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.