Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753286AbbGNHGO (ORCPT ); Tue, 14 Jul 2015 03:06:14 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:36821 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753254AbbGNHGM (ORCPT ); Tue, 14 Jul 2015 03:06:12 -0400 Date: Tue, 14 Jul 2015 15:06:16 +0800 From: Minfei Huang To: Minfei Huang Cc: akpm@linux-foundation.org, rob.jones@codethink.co.uk, amhyung@kernel.org, rusty@rustcorp.com.au, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Using function type to cleanup the function parament Message-ID: <20150714070616.GC26166@dhcp-128-51.nay.redhat.com> References: <1436857153-18874-1-git-send-email-mhuang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436857153-18874-1-git-send-email-mhuang@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1361 Lines: 38 Lost the character 'n' in the Namhyung Kim . Resent it. On 07/14/15 at 02:59P, Minfei Huang wrote: > From: Minfei Huang > > 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 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/