Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3572599pxf; Mon, 22 Mar 2021 09:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyfEuWYRyvbYIVH8ae/Bq22woDzSc8Es940CdOo6+Ca2+O79rcg53pt6qvYIupvrBw10Ir X-Received: by 2002:a17:907:3f96:: with SMTP id hr22mr577161ejc.427.1616430611960; Mon, 22 Mar 2021 09:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616430611; cv=none; d=google.com; s=arc-20160816; b=K/ck0zETzoOLipQU4adIPPCubK6s6KH1kQpjns6J6X3f99KvGwvlhJehCL1WVZSAtk GKAGHQjHP94K47ekC6YmokVW/sYDaJkyLnMYFe7NDtBRPiYHBlyxfd5Qfhh5c6igjr/j 4IsVYfZnoOtUGk6nLajZ/QC+nfltT0Ewg6tyzhil0adCAOjHC5dFAXtFR/xA36+fhNfT o/KOEkFQH1XHUzU8pLPK+UVyLueK/wBQXi9lv/2LHMpXrCOFzPX+YIWqtZgMJanM376H yyuaWDnrDsgDBl+ehDhJiuGPjgad74EbLM0E0mhNNgi7F1Q/cyiS6o7EA/MCIyeKwHlm NDtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FQetEdxezkcutCFmwhYDjp+JHpXH8RShTXBKtif+xZM=; b=LQXtrqhCjvc5kwLcId7yTsbkjf60FFvEaG9/0lk4PSIrQXzA1sDw76mXLp9am49YEB SSld+tYRV1OLqHtBFBQYzV5fq9pP4pRueZUd/hNQdSXhAWndaS2HGyvKxoirnlx7AE/j luxXK1+e0kjgcsK8pc8g9GeIOZ+ixzqLyzyddeLSfT4UcM0sJj+hkLsRUZ+LOb9Cnf/c Y1N5BwZ8n6c/PWuwHg0be0AAbUy7SXwacfp+b6cql1jQVqgaGDiddV/KUuoQxeeUVuPt PTQi6cCykjm41bgQJI8uzZ1xNDwZkVoBuFJlhJ639/E2xgHf8prEaMGfEsoGrLe/Cjzo qagQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WE7f8JQ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si11296994edq.273.2021.03.22.09.29.49; Mon, 22 Mar 2021 09:30:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WE7f8JQ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231864AbhCVQ2c (ORCPT + 99 others); Mon, 22 Mar 2021 12:28:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:59608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbhCVQ2S (ORCPT ); Mon, 22 Mar 2021 12:28:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 342BF6198E for ; Mon, 22 Mar 2021 16:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616430498; bh=hKSQLkY2oC69mPcZ6TI/L5EnOfY2hPSxx6Pvk86SVqY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WE7f8JQ7HPxnyP4DP3K7c5cXB9y2Fu5PtzxMS4FcprRcJ7ivROQK8clPKrRF8J/bN SMWEhezXbHTvlWkfzWy5UdIHRomiKMNts6kLJkoI0uJ7E2+vLx1VJRuypwBj+bD0aY B63MNQm0BU09IfgpnW8bRRQTDKvOj3yUoxSGcXlBTvw/qA39dLVtNT1Wncwm5+Q2mk 0yxDozTHIhiNuCi6GdLiSPDhNcswVoUh2U3QFCiKsrJsqHkj+HCsiPUiySATTFa39j KzQs2Rn/tv77qTwd6z72iXdKkji0DIyRqFH1tpiVU6D3RZf1hhcVmOQJiI8tDolG+x Nxp0FTGGTIrfg== Received: by mail-ot1-f49.google.com with SMTP id 31-20020a9d00220000b02901b64b9b50b1so16508413ota.9 for ; Mon, 22 Mar 2021 09:28:18 -0700 (PDT) X-Gm-Message-State: AOAM530aleApH8WFlRQEUXoBUPiu4+BYkKculV2vHjt4zRClcPTcHUQR b1elf3dcdpO9KyR7mt+wUls8fzoW79U8I24vj3E= X-Received: by 2002:a05:6830:148c:: with SMTP id s12mr587764otq.251.1616430497463; Mon, 22 Mar 2021 09:28:17 -0700 (PDT) MIME-Version: 1.0 References: <20210322114536.3517661-1-arnd@kernel.org> <20210322143344.GN3141668@madcap2.tricolour.ca> In-Reply-To: <20210322143344.GN3141668@madcap2.tricolour.ca> From: Arnd Bergmann Date: Mon, 22 Mar 2021 17:28:01 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] audit: avoid -Wempty-body warning To: Richard Guy Briggs Cc: Paul Moore , Eric Paris , Jules Irenge , linux-audit@redhat.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 3:33 PM Richard Guy Briggs wrote: > > Change the macros to use the usual "do { } while (0)" instead, and change a > > few more that were (void)0, for consistency. > > So what about audit_put_watch() and audit_get_watch() which are set to > {}? (And all of include/linux/audit.h that uses the latter...) Does > this only matter if they are the only action called in an if or loop? > I missed those, thanks for pointing it out. I sent a v2 patch now. Arnd