From patchwork Tue Sep 7 15:55:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 64032 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5E6F7B6EEE for ; Wed, 8 Sep 2010 01:56:14 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757798Ab0IGPzm (ORCPT ); Tue, 7 Sep 2010 11:55:42 -0400 Received: from mail.perches.com ([173.55.12.10]:1508 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757768Ab0IGPzl (ORCPT ); Tue, 7 Sep 2010 11:55:41 -0400 Received: from [192.168.1.162] (unknown [192.168.1.162]) by mail.perches.com (Postfix) with ESMTP id 6E74C24368; Tue, 7 Sep 2010 08:55:31 -0700 (PDT) Subject: [PATCH V2 net-next] include/net/raw.h: Convert raw_seq_private macro to inline From: Joe Perches To: Nick Bowler Cc: David Miller , trivial@kernel.org, kuznet@ms2.inr.ac.ru, pekkas@netcore.fi, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20100907153721.GA6419@elliptictech.com> References: <20100906.183036.68150190.davem@davemloft.net> <20100906.184749.214227378.davem@davemloft.net> <1283835677.23280.108.camel@Joe-Laptop> <20100907153721.GA6419@elliptictech.com> Date: Tue, 07 Sep 2010 08:55:38 -0700 Message-ID: <1283874938.23280.141.camel@Joe-Laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Joe Perches --- include/net/raw.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/net/raw.h b/include/net/raw.h index 43c5750..42ce6fe 100644 --- a/include/net/raw.h +++ b/include/net/raw.h @@ -45,7 +45,10 @@ struct raw_iter_state { struct raw_hashinfo *h; }; -#define raw_seq_private(seq) ((struct raw_iter_state *)(seq)->private) +static inline struct raw_iter_state *raw_seq_private(struct seq_file *seq) +{ + return seq->private; +} void *raw_seq_start(struct seq_file *seq, loff_t *pos); void *raw_seq_next(struct seq_file *seq, void *v, loff_t *pos); void raw_seq_stop(struct seq_file *seq, void *v);