lkml.org 
[lkml]   [2015]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/2] Using function type to cleanup the function parament
Lost the character 'n' in the Namhyung Kim <namhyung@kernel.org>.
Resent it.

On 07/14/15 at 02:59P, Minfei Huang wrote:
> From: Minfei Huang <mnfhuang@gmail.com>
>
> This patchset do the cleanup. For now, we can use function type
> as the parament to simplify the code.
>
> Previously, we will declare the function as following:
>
> bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
> struct module *owner,
> void *data), void *data);
>
> Once we define the function as a type, we can just declare the function
> as following.
>
> bool each_symbol_section(find_symbol_in_section_t fn, void *data);
>
> Minfei Huang (2):
> Define find_symbol_in_section_t as function type to simplify the code
> Define kallsyms_cmp_symbol_t as function type to simplify the code
>
> include/linux/kallsyms.h | 10 +++-------
> include/linux/module.h | 19 +++++++++----------
> kernel/kallsyms.c | 4 +---
> kernel/module.c | 13 +++----------
> 4 files changed, 16 insertions(+), 30 deletions(-)
>
> --
> 2.2.2
>


\
 
 \ /
  Last update: 2015-07-14 09:21    [W:0.064 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site