Received: by 10.223.164.202 with SMTP id h10csp790075wrb; Tue, 7 Nov 2017 14:48:46 -0800 (PST) X-Google-Smtp-Source: ABhQp+Rf9oW9gm5CWTb1TV/zJTgV/bwFsMyElttgspQe/fc6gybBfHQTYSn2Jh4tgIkWA4AF5Q7h X-Received: by 10.159.207.134 with SMTP id z6mr280082plo.144.1510094926231; Tue, 07 Nov 2017 14:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510094926; cv=none; d=google.com; s=arc-20160816; b=dQrAn29SE9DkXaIuvg0N4c1B25viNW2QgDkJDDpOWZHBXQL8bmoNj0X3V6qyRCznhE Qsi3vE+/TSE5mAw7sdNRgDernWL1wpLCbM2NC9uE/B5zd7ID5/fVyXZExmUap3LrlTIG Wsle3qo2TLcsf09a0zB7htb3naAay7Dz8ZVgeclsMX79pp0/1KqCEO7rJRTWwZDAPiQ4 8wF7C3FqN8oi/LtslmS6LtaBIERpEKrygLbdtaVVMlYtEzI+1obrKC/h2QHimPsofPqj +JBc7e0O9jazWgZdwax5CxTv5t6YEs4buh3UIYl16Ihs81VnRvxwx5p0lzQNLD3TAmVn uiVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :user-agent:in-reply-to:references:subject:cc:to:from:message-id :date:arc-authentication-results; bh=/lYXznUuIcd4jFUwQaNMGDDKn4ATVQ/fWjVi7yMTwYk=; b=d42iJg0FY/fI2pHTLcFFh6m9TvNdtm05Kubcnb9dQvaKIDm9VcRNuG284faT8k8agW fd3ugacUzGt/7anLU6sjQjFbp5Jp1V6qhiHeUA+PTgSCroSVANpJ6c+nzCYIlwMDP1n1 I2a+gC3sQU/5qlG9AzaFFTdISztk+WcC+VxqmxCeK5SGaQ90l/36w2lWb+ugsvhpQpWk fCSpV1/2A4fWiOMwuDuXchGU8BtgFsCsgXH26c8Vu9esLwpfxY1MxCBZU7i7TNM979jo q4FuadvCaJ0DfQpPk9ke49cySudK7oGsxn/huZ1v5LrFHNifaWV5vdSZ3JIDgB8dPjsY OtjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o69si2366466pfi.63.2017.11.07.14.48.33; Tue, 07 Nov 2017 14:48:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934224AbdKGNas (ORCPT + 91 others); Tue, 7 Nov 2017 08:30:48 -0500 Received: from gateway22.websitewelcome.com ([192.185.47.206]:38969 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751712AbdKGNaq (ORCPT ); Tue, 7 Nov 2017 08:30:46 -0500 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 23CB75397A for ; Tue, 7 Nov 2017 07:30:46 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id C3xmefyRsDL8rC3xmeURCK; Tue, 07 Nov 2017 07:30:46 -0600 Received: from gator4166.hostgator.com ([108.167.133.22]:36848) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1eC3xl-002Q9u-AR; Tue, 07 Nov 2017 07:30:45 -0600 Received: from 189.145.38.148 ([189.145.38.148]) by gator4166.hostgator.com (Horde Framework) with HTTPS; Tue, 07 Nov 2017 07:30:45 -0600 Date: Tue, 07 Nov 2017 07:30:45 -0600 Message-ID: <20171107073045.Horde.fHvUlYL1jmnkY_bpuXRFqCR@gator4166.hostgator.com> From: "Gustavo A. R. Silva" To: Pablo Neira Ayuso Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Wensong Zhang , Simon Horman , Julian Anastasov , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvs-devel@vger.kernel.org Subject: Re: [PATCH] netfilter: mark expected switch fall-throughs References: <20171019140616.GA15989@embeddedor.com> <20171107010729.GA23302@salvia> In-Reply-To: <20171107010729.GA23302@salvia> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 108.167.133.22 X-Source-L: Yes X-Exim-ID: 1eC3xl-002Q9u-AR X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator4166.hostgator.com [108.167.133.22]:36848 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 2 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Pablo, Quoting Pablo Neira Ayuso : > Hi Gustavo, > > On Thu, Oct 19, 2017 at 09:06:16AM -0500, Gustavo A. R. Silva wrote: >> diff --git a/net/netfilter/ipset/ip_set_core.c >> b/net/netfilter/ipset/ip_set_core.c >> index cf84f7b..72f654a 100644 >> --- a/net/netfilter/ipset/ip_set_core.c >> +++ b/net/netfilter/ipset/ip_set_core.c >> @@ -1386,7 +1386,8 @@ ip_set_dump_start(struct sk_buff *skb, struct >> netlink_callback *cb) >> goto next_set; >> if (set->variant->uref) >> set->variant->uref(set, cb, true); >> - /* Fall through and add elements */ >> + /* add elements */ >> + /* fall through */ > > Just replace this comment by /* fall through */, I think it's enough > to remember that this is intentional. OK. Will do. > >> default: >> rcu_read_lock_bh(); >> ret = set->variant->list(set, skb, cb); > [...] >> diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c >> index d8571f4..fa5cdd0 100644 >> --- a/net/netfilter/x_tables.c >> +++ b/net/netfilter/x_tables.c >> @@ -1382,7 +1382,8 @@ static void *xt_mttg_seq_next(struct seq_file >> *seq, void *v, loff_t *ppos, >> trav->curr = trav->curr->next; >> if (trav->curr != trav->head) >> break; >> - /* fallthru, _stop will unlock */ >> + /* _stop will unlock */ > > Same thing here, thanks! OK. I will send v2 shortly. Thanks for your comments -- Gustavo A. R. Silva From 1583418220678509504@xxx Tue Nov 07 14:34:49 +0000 2017 X-GM-THRID: 1583418220678509504 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread