Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21771760ybl; Mon, 6 Jan 2020 10:56:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzDubw/NlWqJ/EsFD/el8/L0Q+Wth85pYvjXvuXwO72NNy6+H7V2Eu2dozE8JGDNTLU+ulP X-Received: by 2002:a9d:7d09:: with SMTP id v9mr100871591otn.338.1578336994581; Mon, 06 Jan 2020 10:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578336994; cv=none; d=google.com; s=arc-20160816; b=A4ayMp9L+UJRCA9UvfRx5DYhY2kXqxY4fXg+1DnYi6vqNPAb3eip9CQe/6TGu64cIE keuG3LpHWeruxCDtB3tK6aRKR0Ixo57CiEzBl9JI01FkZSgak1lJHJeEpNDe5ZAbm25B EaXrMV4OwJ//ATVJkRfzS8mYZeVvJHSehDb0m5KYsFrr1RkfMFc/vvUbXkm1apk8nJU7 f1wblmb2f3yDL+7L1rSzklSELMzTQi5OKmurUr+hMhLr5CJH5LB71UXDhJ00MzAs3Seg LStVQUIZ8IsfpG8Zv/CnFOfiWUBV/37GyVsU6QUINuQ8FWIyDhQpi+cP8jC3yAczsZmf 9wfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=cyEUulfJMQ30x0JL7+AGFmavC06ya4HiP9c0QUiD5x0=; b=P+ltryaJsS1JGthEi84rkMB3fR0wtG8TjVaMPF3v8M3ev+ZsO5ZJSnxUCFe9CMu2x7 lmbvwfqCjwXDyYJRJ9t89dfFCY9t85UCM1+yyOsZ6iHxXVZzauS5n2HNqO0SrMahPc79 wVBbsCVwro3Qj93+NzulO1MH47PZlidbIrPOxNjuUYmMsiL+IrSIzuFdgZBveR9jQgZ3 GenZ8u8X6sCP8GujkdPyO/Grhwa2rMJSHZxpZNGlTuoXh2R00BK7GLlaxHmZdX7qz1F1 s3rhv2KuM3Pn5Mm15EWsFk4QpCpDWxdqMj7A8U2YC4fzKONuUdRveKx31iUhcBrNukKl kqeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AVwHibvX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9si14101293oie.74.2020.01.06.10.56.10; Mon, 06 Jan 2020 10:56:34 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AVwHibvX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726735AbgAFSy6 (ORCPT + 99 others); Mon, 6 Jan 2020 13:54:58 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:43514 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726569AbgAFSy5 (ORCPT ); Mon, 6 Jan 2020 13:54:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578336895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:in-reply-to: references:references:references; bh=cyEUulfJMQ30x0JL7+AGFmavC06ya4HiP9c0QUiD5x0=; b=AVwHibvXhfwxBQJld0VSSfGP06zTA81NBBY8JvziGeorz8RIk/w7ZlEzF/lAmr1ykp6gOs oh0PF3fzzIHKthB7RAfeve5oBr5CqXf0ZqeOz2+5adgqKMRJjjfTvWyq9gylXql2CMmdzf bwNiG4xbwGzNppBRcoq0mOpQRqeZP0E= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-377-_Y9Cp2XcNVK2q3wQGVqQLQ-1; Mon, 06 Jan 2020 13:54:54 -0500 X-MC-Unique: _Y9Cp2XcNVK2q3wQGVqQLQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A9497107ACC5; Mon, 6 Jan 2020 18:54:52 +0000 (UTC) Received: from madcap2.tricolour.ca (ovpn-112-34.phx2.redhat.com [10.3.112.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9873F5D9E5; Mon, 6 Jan 2020 18:54:49 +0000 (UTC) From: Richard Guy Briggs To: Linux-Audit Mailing List , LKML , netfilter-devel@vger.kernel.org Cc: Paul Moore , sgrubb@redhat.com, omosnace@redhat.com, fw@strlen.de, twoerner@redhat.com, eparis@parisplace.org, ebiederm@xmission.com, tgraf@infradead.org, Richard Guy Briggs Subject: [PATCH ghak25 v2 1/9] netfilter: normalize x_table function declarations Date: Mon, 6 Jan 2020 13:54:02 -0500 Message-Id: <194bdc565d548a14e12357a7c1a594605b7fdf0f.1577830902.git.rgb@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Git context diffs were being produced with unhelpful declaration types in the place of function names to help identify the funciton in which changes were made. Normalize x_table function declarations so that git context diff function labels work as expected. Signed-off-by: Richard Guy Briggs --- net/netfilter/x_tables.c | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index ce70c2576bb2..0094853ab42a 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -77,8 +77,7 @@ int xt_register_target(struct xt_target *target) } EXPORT_SYMBOL(xt_register_target); -void -xt_unregister_target(struct xt_target *target) +void xt_unregister_target(struct xt_target *target) { u_int8_t af = target->family; @@ -88,8 +87,7 @@ int xt_register_target(struct xt_target *target) } EXPORT_SYMBOL(xt_unregister_target); -int -xt_register_targets(struct xt_target *target, unsigned int n) +int xt_register_targets(struct xt_target *target, unsigned int n) { unsigned int i; int err = 0; @@ -108,8 +106,7 @@ int xt_register_target(struct xt_target *target) } EXPORT_SYMBOL(xt_register_targets); -void -xt_unregister_targets(struct xt_target *target, unsigned int n) +void xt_unregister_targets(struct xt_target *target, unsigned int n) { while (n-- > 0) xt_unregister_target(&target[n]); @@ -127,8 +124,7 @@ int xt_register_match(struct xt_match *match) } EXPORT_SYMBOL(xt_register_match); -void -xt_unregister_match(struct xt_match *match) +void xt_unregister_match(struct xt_match *match) { u_int8_t af = match->family; @@ -138,8 +134,7 @@ int xt_register_match(struct xt_match *match) } EXPORT_SYMBOL(xt_unregister_match); -int -xt_register_matches(struct xt_match *match, unsigned int n) +int xt_register_matches(struct xt_match *match, unsigned int n) { unsigned int i; int err = 0; @@ -158,8 +153,7 @@ int xt_register_match(struct xt_match *match) } EXPORT_SYMBOL(xt_register_matches); -void -xt_unregister_matches(struct xt_match *match, unsigned int n) +void xt_unregister_matches(struct xt_match *match, unsigned int n) { while (n-- > 0) xt_unregister_match(&match[n]); @@ -204,8 +198,8 @@ struct xt_match *xt_find_match(u8 af, const char *name, u8 revision) } EXPORT_SYMBOL(xt_find_match); -struct xt_match * -xt_request_find_match(uint8_t nfproto, const char *name, uint8_t revision) +struct xt_match *xt_request_find_match(u8 nfproto, const char *name, + u8 revision) { struct xt_match *match; @@ -391,8 +385,8 @@ int xt_find_revision(u8 af, const char *name, u8 revision, int target, } EXPORT_SYMBOL_GPL(xt_find_revision); -static char * -textify_hooks(char *buf, size_t size, unsigned int mask, uint8_t nfproto) +static char *textify_hooks(char *buf, size_t size, unsigned int mask, + uint8_t nfproto) { static const char *const inetbr_names[] = { "PREROUTING", "INPUT", "FORWARD", @@ -1349,11 +1343,10 @@ struct xt_counters *xt_counters_alloc(unsigned int counters) } EXPORT_SYMBOL(xt_counters_alloc); -struct xt_table_info * -xt_replace_table(struct xt_table *table, - unsigned int num_counters, - struct xt_table_info *newinfo, - int *error) +struct xt_table_info *xt_replace_table(struct xt_table *table, + unsigned int num_counters, + struct xt_table_info *newinfo, + int *error) { struct xt_table_info *private; unsigned int cpu; @@ -1542,7 +1535,7 @@ enum { }; static void *xt_mttg_seq_next(struct seq_file *seq, void *v, loff_t *ppos, - bool is_target) + bool is_target) { static const uint8_t next_class[] = { [MTTG_TRAV_NFP_UNSPEC] = MTTG_TRAV_NFP_SPEC, @@ -1583,7 +1576,7 @@ static void *xt_mttg_seq_next(struct seq_file *seq, void *v, loff_t *ppos, } static void *xt_mttg_seq_start(struct seq_file *seq, loff_t *pos, - bool is_target) + bool is_target) { struct nf_mttg_trav *trav = seq->private; unsigned int j; @@ -1692,8 +1685,8 @@ static int xt_target_seq_show(struct seq_file *seq, void *v) * This function will create the nf_hook_ops that the x_table needs * to hand to xt_hook_link_net(). */ -struct nf_hook_ops * -xt_hook_ops_alloc(const struct xt_table *table, nf_hookfn *fn) +struct nf_hook_ops *xt_hook_ops_alloc(const struct xt_table *table, + nf_hookfn *fn) { unsigned int hook_mask = table->valid_hooks; uint8_t i, num_hooks = hweight32(hook_mask); -- 1.8.3.1