Richard Guy Briggs <rgb(a)redhat.com> wrote:
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 ebtables function declarations so that git context diff
function labels work as expected.
Signed-off-by: Richard Guy Briggs <rgb(a)redhat.com>
I suggest that you also drop the inline keyword for all functions
that are called from control path, for example
-static inline void *
-find_inlist_lock_noload(struct list_head *head, const char *name, int *error,
- struct mutex *mutex)
+static inline void *find_inlist_lock_noload(struct list_head *head,
+ const char *name, int *error,
+ struct mutex *mutex)
-static inline struct ebt_table *
-find_table_lock(struct net *net, const char *name, int *error,
- struct mutex *mutex)
+static inline struct ebt_table *find_table_lock(struct net *net,
-static inline int
-ebt_check_match(struct ebt_entry_match *m, struct xt_mtchk_param *par,
- unsigned int *cnt)
+
+static inline int ebt_check_match(struct ebt_entry_match *m,
-static inline int
-ebt_check_watcher(struct ebt_entry_watcher *w, struct xt_tgchk_param *par,
- unsigned int *cnt)
-static inline int
-ebt_check_entry_size_and_hooks(const struct ebt_entry *e,
-static inline int
-ebt_get_udc_positions(struct ebt_entry *e, struct ebt_table_info *newinfo,
- unsigned int *n, struct ebt_cl_stack *udc)
-static inline int
-ebt_cleanup_match(struct ebt_entry_match *m, struct net *net, unsigned int *i)
-static inline int
-ebt_cleanup_watcher(struct ebt_entry_watcher *w, struct net *net, unsigned int *i)
-static inline int
-ebt_cleanup_entry(struct ebt_entry *e, struct net *net, unsigned int *cnt)
-static inline int
-ebt_check_entry(struct ebt_entry *e, struct net *net,
- const struct ebt_table_info *newinfo,
- const char *name, unsigned int *cnt,
- struct ebt_cl_stack *cl_s, unsigned int udc_cnt)
.. can all have 'inline' removed. Other than that this looks good to me.