From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6176C433E1 for ; Mon, 22 Mar 2021 16:28:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 91E2A60249 for ; Mon, 22 Mar 2021 16:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231902AbhCVQ2h (ORCPT ); Mon, 22 Mar 2021 12:28:37 -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-Google-Smtp-Source: ABdhPJxubyxVHf5kmA7mDuWA+s7TJCuJV7+LNP+mXCIls5AgH+PTYr8Ja2fiYk4IE/HxbfsbBOkaZO+arW/zwwKeJtU= 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