Received: by 10.213.65.68 with SMTP id h4csp1741988imn; Sun, 1 Apr 2018 13:44:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/sk1P+LKZGnKTx8qZngomuUs2y0+MrsKFZEUPXyFXPRlLpnLwnUH68dSYp39g7J6EkiJjL X-Received: by 10.98.13.23 with SMTP id v23mr5434062pfi.202.1522615473880; Sun, 01 Apr 2018 13:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522615473; cv=none; d=google.com; s=arc-20160816; b=v3v13Iim+0FWssoBdyf1lyQJ55Nmsb/hX+Q6/fWOo48XlB+1XECVdHHDriVSoG8wpX mSv/X1uWhekwYzgEJ4EX0cjlxpvj1pj1RbGu0NFXuhYzyCUGoHvrGJuvcjVIc4o+CR5e 1iwROvsDnp12ku58oy8/KSQF1INvH0eHZMnpPJzH1aoZMYHQbJCYs+oWYwCIoaYYzkc4 FpBSo0cCH57fbazCfGhrOtvIGneVQeYuqqN59ZjLQJNJW1hmPjHP0jMwFJCkWOpgKizs a1ySIEll3+6cyd5X4lFfHRi00iAdVL/TzuzWLVK1NDDOC4yviv3QcZzrPPm4Gai9MmQ+ Ys6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:to:from:subject :organization:arc-authentication-results; bh=tfLT7p21CqVIHd2zwXyYqESgJ6le+pfvAGoshSRuk2I=; b=NIGKCYFzkdagTeX2w0RAZiUCjnI4vnGE4APZwr7oYMgRmEfO8Un2mdUV+jl7X0iiLd Ct9CiqISwJVYMj1LhQOf6mvm6KHhY7UPl7XaXV6EGmN4mYSrEqnPDrxRdq827JeDOxaC yNKYdNBnI63jA6lNCrFKXVIUJU12ioMMcifpbJnTuCmPbsJrxeDW9WxoO1xa/EM4EpsY zYiFyHrQmuLiD0xQBZVh/yuxcNoeO2KOWvRBK0BPhptrqFlDgmt3OejiP7b9qBAWdkdf uWu9aDSFk/QS5Hkx2mAf6nI6+WMrV0ptye0kVuL0ruccQYIcFCEjymHt7ZimNQKv8Zr6 8Ndg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5-v6si12948959plx.148.2018.04.01.13.44.20; Sun, 01 Apr 2018 13:44:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbeDAUnO (ORCPT + 99 others); Sun, 1 Apr 2018 16:43:14 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38208 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753918AbeDAUnL (ORCPT ); Sun, 1 Apr 2018 16:43:11 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AD43F4070214 for ; Sun, 1 Apr 2018 20:43:10 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-59.rdu2.redhat.com [10.10.120.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 59868111DCF0; Sun, 1 Apr 2018 20:43:10 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 29/45] C++: Move the print_line_t enum before first use From: David Howells To: linux-kernel@vger.kernel.org Date: Sun, 01 Apr 2018 21:43:09 +0100 Message-ID: <152261538985.30503.55319175500721372.stgit@warthog.procyon.org.uk> In-Reply-To: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> References: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 01 Apr 2018 20:43:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 01 Apr 2018 20:43:10 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the print_line_t enum definition to before its first use. Signed-off-by: David Howells --- include/linux/trace_events.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 8a1442c4e513..38a7667827ca 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -104,6 +104,14 @@ struct trace_iterator { /* All new field here will be zeroed out in pipe_read */ }; +/* Return values for print_line callback */ +enum print_line_t { + TRACE_TYPE_PARTIAL_LINE = 0, /* Retry after flushing the seq */ + TRACE_TYPE_HANDLED = 1, + TRACE_TYPE_UNHANDLED = 2, /* Relay to other output functions */ + TRACE_TYPE_NO_CONSUME = 3 /* Handled but ask to not consume */ +}; + enum trace_iter_flags { TRACE_FILE_LAT_FMT = 1, TRACE_FILE_ANNOTATE = 2, @@ -131,14 +139,6 @@ struct trace_event { extern int register_trace_event(struct trace_event *event); extern int unregister_trace_event(struct trace_event *event); -/* Return values for print_line callback */ -enum print_line_t { - TRACE_TYPE_PARTIAL_LINE = 0, /* Retry after flushing the seq */ - TRACE_TYPE_HANDLED = 1, - TRACE_TYPE_UNHANDLED = 2, /* Relay to other output functions */ - TRACE_TYPE_NO_CONSUME = 3 /* Handled but ask to not consume */ -}; - enum print_line_t trace_handle_return(struct trace_seq *s); void tracing_generic_entry_update(struct trace_entry *entry,