Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp648152lqp; Thu, 21 Mar 2024 11:10:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVowculIVVqRphqIJGO91sYwyvu5lpvkEsvUnljGinC1YN5wcGRg5gie3mdvzO+8akIL/Z4JtTzDuh67xqjUZ1RUDKzDvnxDwSiWMLcSQ== X-Google-Smtp-Source: AGHT+IH+Hp11RfigRVGuE8Fr90nAGYIW5Kqi7Tk8rXDZ5fbA5wZImhlnnqRDW5nWfpXSiyZBoup6 X-Received: by 2002:a05:6214:c6a:b0:696:4488:dcd8 with SMTP id t10-20020a0562140c6a00b006964488dcd8mr344291qvj.29.1711044649614; Thu, 21 Mar 2024 11:10:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711044649; cv=pass; d=google.com; s=arc-20160816; b=kWo9aAh3zSZmB6HWQsJ2IWgb1w6VarLvAxfC13y7mcLgxusZ2ivU1EdW6p37is7Zl2 FT7CHcHAEXmHS7ObtPYI5RUtt8JTjbfDzcorJ2RtyQBbyl+6pATIbAZDI8DoBnqavlgl E0XnalEF8TYSclmVRVCnYvL1jaNcDmbWfQ9kXOH95wRErecJSD2eyrf2XvZfTgcEx0sx 826Zk0lTcA3e9QMdHfLXfxX4SfjE5CCAf3xqQv1XOKGzVERKlJ7dZZ/JWbpI3t5C8Fcr 51cLQJ7LaS/Ngt8IcFJTKz7d2V+gzjz2c+afsVpLoqyrl5jNjNOq62hOVZ1PBBlStIsn K94w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=4emHCf80OrxsdWiLJNpRLTTX2dJ/UHkZ+YLYB2p4Nto=; fh=015mnx5VnFKFsAaaPd/n8PFapZeokpwWlADgGqbZPO8=; b=dzW/bih+TUU3KKlmzXEgVrQ84+d0b5WfaMByLOFfKpM+qNCGnudAYuZ57S7QAhxr35 dCwl5lTbANPmBU967u+PpTgnEOm+KgO+RNQRWsBDeguY+3RkUMcELgTmoqvn4+5QLt4y r2jA+Xxez55p1wiM+6l2YNkKUsbNtIewxymS3IJ22D8S2G227Bz5lrG5W/CLlAHtFvkz iCMlO8yR/YSoKEUZaVzUJ5cEpaoTpii+NxmGtXzb3nf78ZN7mN+TMHLkkZuXoalonczB zvxj1N379PsZjPUZWZLqhILGQAGNFjoXxW39FeJ+6UPTytdub58FbZZOwnrNk2sjME9n fJHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="O/ak81zL"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-110544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110544-linux.lists.archive=gmail.com@vger.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 a14-20020ad45c4e000000b006961c19311asi313183qva.172.2024.03.21.11.10.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:10:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110544-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=@linux-foundation.org header.s=google header.b="O/ak81zL"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-110544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110544-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 544E41C21810 for ; Thu, 21 Mar 2024 18:10:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49CEE133400; Thu, 21 Mar 2024 18:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="O/ak81zL" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A590D85938 for ; Thu, 21 Mar 2024 18:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711044644; cv=none; b=Tt75/ojXNPk/gEAmeb8tB4hT6/f/olr0RmQk6AqxPrVAUpD3OGsY8A/SQ0RXdzRWwGZGjIddHNnTKYuOZXl+cRPYJQnzoEldb/xsGsnb6xsLjhQeKiwNZyGdJLSU3/8MMbU9r3IgEFQdT/rtSWbgZROFJoOvZJqBT1IRu5t756A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711044644; c=relaxed/simple; bh=XgzMJ/XjredShNEfVbHnEUIphui6pHeLgNGgZLuPtKg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=QdPKI+tTIBHV19lwt3s4TFe5ArT51jmnNNUUwlWeYRiQeOrhE03sXZ3iJNMJyec5swivEj0thnqiBVCHDXLl7jAp1o9iur7ldQ0cNu+hhNogbvoStoGY15yz3WVeyjdsa1E2JHC4E5HSL8KVNCtVJ8yctU01CeWhinwmjCHqatU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=O/ak81zL; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a471f86dcd3so50900966b.2 for ; Thu, 21 Mar 2024 11:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1711044641; x=1711649441; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4emHCf80OrxsdWiLJNpRLTTX2dJ/UHkZ+YLYB2p4Nto=; b=O/ak81zL2heK3yoSvfT7KxWDThH/Xl35wfWuOjbWVosGi6dAfXr0lwjZ+L3BFoQ4zW psebRHsxcjeMVILv9TY471etwFsyw4uTfG46P3gBDWLq0VQMQSSK9NKpliSOxiDWuCKH h0lwXC2iDqlGsKG4UvIbtmQQ6iUBIv3jV2rrc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711044641; x=1711649441; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4emHCf80OrxsdWiLJNpRLTTX2dJ/UHkZ+YLYB2p4Nto=; b=bYuFlprOnoVlok+vtFsktuJh8rI1dHr/PF8K4HbsgxS841Bm+r9YS/uPyfPOyO9fsj gu/3AlTPZj/2OERFteq+zhcPvEgaRS6T/FCFH9jengRkrcguTd5+P3/2cc9TfNSHhIqE 1V7zottJ9zCpAoWwWT5t4ypz1Y60XLz3DWOVtv+1bF98WNpt/WrA96ah66DzWI3n+oNP oilxDAQQtOkyu3M5GtOuTUd2im5N6sDseAF39B/bsIJU10sYeuh9hIMbHax9fmC5jUJR nPhOfFrJGKpp8jxm1cZ8ODTPdLz3wtF16EDc2XVhmXrZ3a0ydTGGvEi4GiRm51v/BbIA LwaA== X-Forwarded-Encrypted: i=1; AJvYcCXrpdTyRC0Z+V3zy8ao81mxe45IDL+4bJhXjMUy1YVj31Xxc3XqcxQMpJCR8XTLK2uaCaQJOw37zYArM8Dp3wDVraEgZyPOEtC7SKP+ X-Gm-Message-State: AOJu0YwTWtze6/j95+pQx6qjxJA8Nd9H5CDKfKwPdbaRBbU0DJ1Sz/K1 JslZnNYvv3l1Nr9OkxvEEEJOFhOLzj9DuB1oosqNlGzDVz0RyvAMtDHdUORdVN9dzOX6H6DRtRx 5xDP+vw== X-Received: by 2002:a17:906:7fd0:b0:a46:22fc:74d3 with SMTP id r16-20020a1709067fd000b00a4622fc74d3mr114243ejs.72.1711044640687; Thu, 21 Mar 2024 11:10:40 -0700 (PDT) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com. [209.85.218.54]) by smtp.gmail.com with ESMTPSA id bg25-20020a170906a05900b00a46bdc6278csm172095ejb.71.2024.03.21.11.10.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Mar 2024 11:10:39 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a471f86dcd3so50898866b.2 for ; Thu, 21 Mar 2024 11:10:39 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUyJ/bdz6Zb88677/SrLujzhbdHKInNT4fORzTA7xasXzhK48YEqYtNnamfzTawZ9cUOuJIXQBw1ITW6AnnANkDYe547XVW5E44mNVZ X-Received: by 2002:a17:906:3509:b0:a46:aa67:ab12 with SMTP id r9-20020a170906350900b00a46aa67ab12mr156355eja.9.1711044639518; Thu, 21 Mar 2024 11:10:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240321134831.GA2762840@dev-arch.thelio-3990X> In-Reply-To: <20240321134831.GA2762840@dev-arch.thelio-3990X> From: Linus Torvalds Date: Thu, 21 Mar 2024 11:10:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Char/Misc driver changes for 6.9-rc1 To: Nathan Chancellor Cc: Greg KH , Andrew Morton , Arnd Bergmann , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" On Thu, 21 Mar 2024 at 06:48, Nathan Chancellor wrote: > > That build warning actually happens with clang, not GCC as far as I am > aware, and it is actually a hard build error with older versions of > clang So the "labels without a statement" thing is not only a long-time gcc behavior (admittedly due to a parsing bug), afaik it's becoming "standard C" in C23. Does clang have a flag to allow this? Considering that gcc doesn't warn for it, and that it will become official at some point anyway, I think this might be a thing that we might be better off just accepting, rather than be in the situation where people write code that compiles fine with gcc and don't notice that clang will error out. So yes, clang is being correct, but in this case it only causes problems. Linus