Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1594CC433EF for ; Tue, 29 Mar 2022 21:28:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234285AbiC2VaF (ORCPT ); Tue, 29 Mar 2022 17:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234279AbiC2VaE (ORCPT ); Tue, 29 Mar 2022 17:30:04 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 538ED398 for ; Tue, 29 Mar 2022 14:28:20 -0700 (PDT) Received: from netfilter.org (unknown [78.30.32.163]) by mail.netfilter.org (Postfix) with ESMTPSA id 76D8B63032; Tue, 29 Mar 2022 23:25:06 +0200 (CEST) Date: Tue, 29 Mar 2022 23:28:16 +0200 From: Pablo Neira Ayuso To: Phil Sutter Cc: netfilter-devel@vger.kernel.org Subject: Re: [libnfnetlink PATCH 1/2] include: Silence gcc warning in linux_list.h Message-ID: References: <20220325173426.11493-1-phil@nwl.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220325173426.11493-1-phil@nwl.cc> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Fri, Mar 25, 2022 at 06:34:25PM +0100, Phil Sutter wrote: > Compiler complained about empty prefetch() macro: > > | ../include/linux_list.h:385:66: warning: right-hand operand of comma expression has no effect [-Wunused-value] > | 385 | for (pos = list_entry((head)->next, typeof(*pos), member), \ > | | ^ > > Use nftables' variant instead which gcc seems to like more. LGTM, thanks > Fixes: 36d2ed3de20a3 ("major cleanup of index2name infrastructure: use linux list (and fix leak in the nlif_close path)") > Signed-off-by: Phil Sutter