Received: by 10.213.65.68 with SMTP id h4csp1743939imn; Sun, 1 Apr 2018 13:48:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+C/ixEHE6lDLlexoWqgoNuoI+slJsM484DRercHojFfeb/6PmhAirQgx8E7V+uPrVDB5bw X-Received: by 10.98.214.218 with SMTP id a87mr5475396pfl.124.1522615726103; Sun, 01 Apr 2018 13:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522615726; cv=none; d=google.com; s=arc-20160816; b=S04OLwwIhnUCBusjAflT4Zx+AqASBfgLsyZ0PUWXr8j74xiawpvJRyCkfROc/iIpYT O1tOMXTtxonSvwbGN1PmeKishbeAy0U4jHdAV7cBKqLXh2btdjzeTBuyE6KghdxB/ev1 MNEUPvoqOmtJ2UOd0m7uklIRB0cpuXVj1LFJ/Nw2Y7qBBmAstjXMKaWWCWZLSQDZo462 vguqO7uXzJtStSnzKRm98ieDnjMXtR5UihBGxpJKF+Ji70DXjQPZgv03ud59cjrGq5eo 8X8oOIC4s2A7qeVvJcNLHoIjIHh6/kpQv5CsFnjqZDLrCqTIs1cGPQcBJC4//g34Ks/h ViNA== 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=NZad2CmAdTsTOhmdi2dlSOHCg+HzlDl7rCAbEXyz1nM=; b=j3db8jfvGpB3o0okBLIC+OvyGHMqPwVxWeNhGhdiA9agsCsmGkY5geTpH6U1TofiOe sddJ0gpSyJhWPxHI6gG5jN/sVVTajoz0JrATdTz9iVEkHZpTCKdEwT5I82snUgaA0H1Y /bhyztEIHlNdH7DCKW0tJmv1SwBpa2LVXF6y7cDJEvx27ULZHjBYQAllHlb49VbtKtxs MCxYPHRyUzmbPOi/bOBV8KTk6bW2pJeCcx4ebuAKV5p1Cfv/NCZ+hiNTRMcGU9MBMS97 7lR6U0/MdHRqvA6rZOQaz1xWyf1hSrJyheu5ru0gI70jms5AV6P9bbc4h1ZlLovlsdbP NITw== 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 y87si2008373pfi.141.2018.04.01.13.48.32; Sun, 01 Apr 2018 13:48:46 -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 S1754499AbeDAUnK (ORCPT + 99 others); Sun, 1 Apr 2018 16:43:10 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53004 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753918AbeDAUnF (ORCPT ); Sun, 1 Apr 2018 16:43:05 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B3F97A27C4 for ; Sun, 1 Apr 2018 20:43:04 +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 601D42024CA1; Sun, 1 Apr 2018 20:43:04 +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 28/45] C++: Move ctx_state enum out of struct context_tracking From: David Howells To: linux-kernel@vger.kernel.org Date: Sun, 01 Apr 2018 21:43:03 +0100 Message-ID: <152261538388.30503.9843594429504553190.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.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sun, 01 Apr 2018 20:43:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sun, 01 Apr 2018 20:43:04 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 ctx_state enum out of struct context_tracking so that it isn't limited in scope. Signed-off-by: David Howells --- include/linux/context_tracking_state.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/linux/context_tracking_state.h b/include/linux/context_tracking_state.h index f128dc3be0df..02a9efe0827e 100644 --- a/include/linux/context_tracking_state.h +++ b/include/linux/context_tracking_state.h @@ -5,6 +5,13 @@ #include #include +enum ctx_state { + CONTEXT_DISABLED = -1, /* returned by ct_state() if unknown */ + CONTEXT_KERNEL = 0, + CONTEXT_USER, + CONTEXT_GUEST, +}; + struct context_tracking { /* * When active is false, probes are unset in order @@ -14,12 +21,7 @@ struct context_tracking { */ bool active; int recursion; - enum ctx_state { - CONTEXT_DISABLED = -1, /* returned by ct_state() if unknown */ - CONTEXT_KERNEL = 0, - CONTEXT_USER, - CONTEXT_GUEST, - } state; + enum ctx_state state; }; #ifdef CONFIG_CONTEXT_TRACKING