From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755402AbbESJL3 (ORCPT ); Tue, 19 May 2015 05:11:29 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:16879 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755316AbbESJLZ (ORCPT ); Tue, 19 May 2015 05:11:25 -0400 From: Wang Long To: , , , CC: , , , , , , , , , Subject: [PATCH v2 03/17] tracing: Convert seq_buf fields to be like seq_file fields Date: Tue, 19 May 2015 09:08:48 +0000 Message-ID: <1432026542-123571-4-git-send-email-long.wanglong@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1432026542-123571-1-git-send-email-long.wanglong@huawei.com> References: <1432026542-123571-1-git-send-email-long.wanglong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.200] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Steven Rostedt (Red Hat)" commit 9a7777935c34b9192e28ef3d232a4b6b5414a657 upstream. In facilitating the conversion of seq_file to use seq_buf, have the seq_buf fields match the types used by seq_file. Link: http://lkml.kernel.org/r/20141104160222.195301024@goodmis.org Tested-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h index 3877068..d14dc90 100644 --- a/include/linux/seq_buf.h +++ b/include/linux/seq_buf.h @@ -16,10 +16,10 @@ * @readpos: The next position to read in the buffer. */ struct seq_buf { - unsigned char *buffer; - unsigned int size; - unsigned int len; - unsigned int readpos; + char *buffer; + size_t size; + size_t len; + loff_t readpos; }; static inline void -- 1.8.3.4