Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1904247pxu; Fri, 27 Nov 2020 19:32:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXYNUdG5JsIyk76QEDHT4FcsWn2P40C554bYdQPKyZbJDHyOdpqATEHwkJcrauQ6EFyXRY X-Received: by 2002:a17:906:6d99:: with SMTP id h25mr3444499ejt.281.1606534341707; Fri, 27 Nov 2020 19:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606534341; cv=none; d=google.com; s=arc-20160816; b=Ocr/TuTfupHkR2VAH11JgD6270JG7VGSFmSA02G9KRsSloxDTzP/ZMCBtusEDAyiQV pD+OpSNeVQqCz5xPCzJJC2OTvRqXIp1REz0FLbQURaHjedzM4QLnTyO7Cs7vnGxuXOD/ i5c3id6nEp4IrmVOe8BMT/1lBZrUM6nlA1fL4ww1WHoUJstGqHbHfOkiVZ+BTnI6QUli YU2OPUrCmqOIXNlhlPbndmDlxTkooq5xbN3rejW9a4Q/GPz1AUH4UWKW57mw5HpuXgnn 5VatB4kMDrZOSJ0M9FmDELt7K41CDgorIMt9Wt7vPECMeBcNEnZi2xB3DOmgNCqsLb1O loAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CdNvnAHSD334gNTR+orllw3aol+LMLlCaAPl3vfTHe8=; b=xONYGMQBmBTDslyo/RwtGWEY8e7yiHNipOWccnVyzufkiYHy7+Vs+mcTEoumsb0YbN biiFokec6hdRuxJDyzYS4/c1EoWphiDCetwCFM1eBxP7SweuOeks7ZrDiZUAOilv2mQl bFFXCQBTpeATVB87xE63T+A5OMHOoeJTmTJOS5PxE9zayK1WpzKJIubEED0F+JOlMuiX Qd5s5JurBMVNJKx8VU/57shuzNP/6Lb76YvoEJ2pt73g1RWKSzMnT2bK8CiTtLEcRnG+ r6GOu6hUP7V0XKyaXFyfZoYnCY67hH1BEaWVBq/HzQCEpmmN6zkwBgirppjy0V9tsh80 rkzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XiwfXbC7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g31si7206037ede.96.2020.11.27.19.31.42; Fri, 27 Nov 2020 19:32:21 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=XiwfXbC7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730920AbgK1DYO (ORCPT + 99 others); Fri, 27 Nov 2020 22:24:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730816AbgK0Tyo (ORCPT ); Fri, 27 Nov 2020 14:54:44 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92272C061A49; Fri, 27 Nov 2020 11:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CdNvnAHSD334gNTR+orllw3aol+LMLlCaAPl3vfTHe8=; b=XiwfXbC7qW4nB7tIflurP3zh4/ /100L8mFlKXv+5LUy1LZgWSq9wt9dlj/NZOQJRI1waIOIdHaL+X5c12MGaZuEuupvUuVNp7Tp/mhe PxHEm/SGjVNrqI8ruTGHzvzh/ospwLhOdEagPkx682E4Dt/Zk3UHqmFBsFBYkK+wHlxzyq28t+JiK UTAKeNlkBWFofDJ2qmxx6xgRVNlVHxaQZW78k5XHp7wm8GKevxZ/kdOUc+5oJXbgwP5E3kSH3wWaU 7oIHx+EeoUz1DvOxaEtcE9otQzhX7wr8wx77uTOsuTanf0ddxpEsYzqS5gIT5pVqlSRdhCi3/+DnH 1pzU5mqw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kijo3-0006Nb-Uj; Fri, 27 Nov 2020 19:53:23 +0000 Date: Fri, 27 Nov 2020 19:53:23 +0000 From: Matthew Wilcox To: trix@redhat.com Cc: jlayton@kernel.org, bfields@fieldses.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] locks: remove trailing semicolon in macro definition Message-ID: <20201127195323.GZ4327@casper.infradead.org> References: <20201127190707.2844580-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201127190707.2844580-1-trix@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 27, 2020 at 11:07:07AM -0800, trix@redhat.com wrote: > +++ b/fs/fcntl.c > @@ -526,7 +526,7 @@ SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, > (dst)->l_whence = (src)->l_whence; \ > (dst)->l_start = (src)->l_start; \ > (dst)->l_len = (src)->l_len; \ > - (dst)->l_pid = (src)->l_pid; > + (dst)->l_pid = (src)->l_pid This should be wrapped in a do { } while (0). Look, this warning is clearly great at finding smelly code, but the fixes being generated to shut up the warning are low quality.