From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752510AbbG2F3x (ORCPT ); Wed, 29 Jul 2015 01:29:53 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33104 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752445AbbG2F3w (ORCPT ); Wed, 29 Jul 2015 01:29:52 -0400 From: Boqun Feng To: Josh Triplett , "Paul E. McKenney" Cc: Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , linux-kernel@vger.kernel.org, Boqun Feng Subject: [PATCH 0/2] Replace explicit function pointer types with rcu_callback_t and call_rcu_func_t Date: Wed, 29 Jul 2015 13:29:37 +0800 Message-Id: <1438147779-24978-1-git-send-email-boqun.feng@gmail.com> X-Mailer: git-send-email 2.4.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit ("rcu: Create a synchronize_rcu_mult()") in linux-rcu.git#rcu/next branch has introduced rcu_callback_t as the type for rcu callback functions and call_rcu_func_t has been introduced for a while. This patch series uses the rcu_callback_t and call_rcu_func_t to save a few lines of code. This patchset is based on rcu/next branch of Paul's linux-rcu tree, and consists of two patches: 1. Use rcu_callback_t as the type of callbacks in call_rcu*() and friends 2. Use call_rcu_func_t to replace the equivalent but complicated function pointer type. Besides cleaning up the code, this patchset can also help code tag program, such as cscope to generate a better database. This patchset has been already tested by 0day. Regards, Boqun ------------------------------------------------------------------------- include/linux/rcupdate.h | 10 +++++----- include/linux/rcutiny.h | 2 +- include/linux/rcutree.h | 2 +- kernel/rcu/rcutorture.c | 6 +++--- kernel/rcu/srcu.c | 2 +- kernel/rcu/tiny.c | 8 ++++---- kernel/rcu/tree.c | 8 ++++---- kernel/rcu/tree.h | 5 ++--- kernel/rcu/tree_plugin.h | 2 +- kernel/rcu/update.c | 2 +- 10 files changed, 23 insertions(+), 24 deletions(-) -- 2.4.6