From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:907:8744:b0:9bd:85f7:2662 with SMTP id qo4csp1470777ejc; Fri, 13 Oct 2023 05:29:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvemYY9aU6CKWseRVEuSpEAoPJAB8EzaZjevMSY9ASYPsJ1tj1wT+uh+qNfKaUl9u/jHfH X-Received: by 2002:a67:e107:0:b0:457:b9fe:387f with SMTP id d7-20020a67e107000000b00457b9fe387fmr3227674vsl.31.1697200185935; Fri, 13 Oct 2023 05:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697200185; cv=none; d=google.com; s=arc-20160816; b=jwi0xLBvYVzdTnNFGCNXtHxf1+HzFnb8TEk04aku9nIVipM4UWB8/GyieTKdVI/ogp nw8EEDEcat59+A6v5cir4m2ZCDOL4LsWOgshmdsAPnTTtRUY0UkYnA6dyjcXSfG5YSXI PVa/GxJS0R9OnNFJpFBb56JNu8ZwrVmueFU43j546bTriN6KHZmY+CsPaAOStUCdT3Rx 8IfQJxVDyDWvulJPPDVuaqs05lu3RKthnsAUJUw/DynywLoWmZDSIitlik/PpQ8mOnwB zF6orkHyhpW76RZ9fMD40c6FzvznJluWh4qrL1TTo0myh1hNqZ0cwmfOca8i9RRUT+MM jBDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:in-reply-to:date:references:subject:cc:to:from :dkim-signature; bh=lSIXdsq6eV16f57MLlMRLKRp3WDXQgg9+bE/l50RnGs=; fh=n+6rGvdhabf14HnlszsJbD64SZdHP2DbCu8WIJL6VQM=; b=ZfRUAWmEDJT0ies3UOMcBaPxbtJswvMNbrWsf+kpsNWKfFR27/5j7cjdfzxKoH2iCU h7pY3MEpjxFR5cQSc/Z3VBq11lQQWUD8k5gWowyFjPTSmFeVhD7US5glpRzcjfajQpV0 2o2MVVthEdVLCXfTwZKeRgkFy8TyqFV9nHE8bnqWTZFCr3Kvkx634IwDcBv9llE+k40y gM3zbQB4WRgP5t41to0A0c80THFkSEKzLck42j0xUYRX/Ssx5eGc4aFpq8Aq1Jlb00mK Tnca5ve2ctA5hkFmlDqXR7dQM7CgUYlJos9fBJSheMmPoDK5fiKt4HtZWm2h10Icp57v kd+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hMKRIrEq; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d20-20020a05622a101400b0041980065908si1127650qte.506.2023.10.13.05.29.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2023 05:29:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hMKRIrEq; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrHHh-0001XH-4e; Fri, 13 Oct 2023 08:28:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrHHV-0001WP-EJ for qemu-devel@nongnu.org; Fri, 13 Oct 2023 08:28:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrHHS-0004j2-G1 for qemu-devel@nongnu.org; Fri, 13 Oct 2023 08:28:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697200117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lSIXdsq6eV16f57MLlMRLKRp3WDXQgg9+bE/l50RnGs=; b=hMKRIrEqy+RYd//PYN99eFXcS0Wt4WI7nLrTc0rfHDOdcdGIrhQcHgLWGXbMRjqorvtEKu 8OUcrVIxx7qDknWKsH99DVgmPP0SHxfxbCmZTN6Gc1HFIdJxuxjnj2cTjriWN7ZOSJVPd4 pnqJgwviMOFaq5fByJ2TZHe5ECRkA5U= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-553-HRmeNOmRMGyqAcpJwL73eQ-1; Fri, 13 Oct 2023 08:28:34 -0400 X-MC-Unique: HRmeNOmRMGyqAcpJwL73eQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 842DF85A5BA; Fri, 13 Oct 2023 12:28:33 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.39.193.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E05311C060DF; Fri, 13 Oct 2023 12:28:32 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id E6DE821E6A21; Fri, 13 Oct 2023 14:28:31 +0200 (CEST) From: Markus Armbruster To: Emmanouil Pitsidianakis Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-block@nongnu.org, Gerd Hoffmann , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Eric Auger , Peter Maydell , Song Gao , Xiaojuan Yang , Richard Henderson Subject: Re: [RFC PATCH 01/78] include/qemu/compiler.h: replace QEMU_FALLTHROUGH with fallthrough References: <2e08cff874b2f9fc4143bdcde87ebba9b70b356c.1697183082.git.manos.pitsidianakis@linaro.org> Date: Fri, 13 Oct 2023 14:28:31 +0200 In-Reply-To: <2e08cff874b2f9fc4143bdcde87ebba9b70b356c.1697183082.git.manos.pitsidianakis@linaro.org> (Emmanouil Pitsidianakis's message of "Fri, 13 Oct 2023 10:47:05 +0300") Message-ID: <874jiuiu4w.fsf@pond.sub.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 Received-SPF: pass client-ip=170.10.129.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: eg0Lf0z84Q1b The commit message needs to explain why. Emmanouil Pitsidianakis writes: > Signed-off-by: Emmanouil Pitsidianakis > --- > audio/pwaudio.c | 8 ++++---- > hw/arm/smmuv3.c | 2 +- > include/qemu/compiler.h | 30 +++++++++++++++++++++++------- > include/qemu/osdep.h | 4 ++-- > target/loongarch/cpu.c | 4 ++-- > target/loongarch/translate.c | 2 +- > tcg/optimize.c | 8 ++++---- > 7 files changed, 37 insertions(+), 21 deletions(-) > > diff --git a/audio/pwaudio.c b/audio/pwaudio.c > index 3ce5f6507b..bf26fadb06 100644 > --- a/audio/pwaudio.c > +++ b/audio/pwaudio.c > @@ -1,29 +1,29 @@ > /* > * QEMU PipeWire audio driver > * > * Copyright (c) 2023 Red Hat Inc. > * > * Author: Dorinda Bassey > * > * SPDX-License-Identifier: GPL-2.0-or-later > */ > > +#include > +#include > +#include > +#include > #include "qemu/osdep.h" > #include "qemu/module.h" > #include "audio.h" > #include > #include "qemu/error-report.h" > #include "qapi/error.h" > -#include > -#include > -#include > -#include > > #include > #include "trace.h" > > #define AUDIO_CAP "pipewire" > #define RINGBUFFER_SIZE (1u << 22) > #define RINGBUFFER_MASK (RINGBUFFER_SIZE - 1) > > #include "audio_int.h" This is wrong. docs/devel/style.rst: Include directives ------------------ Order include directives as follows: .. code-block:: c #include "qemu/osdep.h" /* Always first... */ #include <...> /* then system headers... */ #include "..." /* and finally QEMU headers. */ Separate patch, please. [...] > diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h > index 1109482a00..959982805d 100644 > --- a/include/qemu/compiler.h > +++ b/include/qemu/compiler.h > @@ -1,215 +1,231 @@ [...] > #define QEMU_ALWAYS_INLINE > #endif > > -/** > - * In most cases, normal "fallthrough" comments are good enough for > - * switch-case statements, but sometimes the compiler has problems > - * with those. In that case you can use QEMU_FALLTHROUGH instead. > +/* > + * Add the pseudo keyword 'fallthrough' so case statement blocks Pseudo-keyword? It's a macro. > + * must end with any of these keywords: > + * break; > + * fallthrough; > + * continue; > + * goto