From patchwork Tue Aug 3 15:54:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12416667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDE09C4338F for ; Tue, 3 Aug 2021 15:57:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AB4DA60F45 for ; Tue, 3 Aug 2021 15:57:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AB4DA60F45 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fP9YMHWts19Pqd7S0FmqwzRvMvh0E+br9b9peiakUp8=; b=W4hjG5DoXUPZFt 1+BObu00FEwlGzivloXCaLkU6wQDmrwScItDLj424QT1iwlGJCpypCYqgVlwO3wzuSnBpInIxz/vI rqDgiG6pRje77pp7b1r5RyACCg2LrrPLYHXTAXtkQ72BGXUzqz1TY01ySxJAq1TdoGHBc0GczmILL 87lUkMERl4uHlJValrYmWQRLIqeci1G/gN/yzVmn7OGaCj51eYVtma+Kb8EDbMlyWNrPZMVGBgpKE wyw2v8XIZ4sxcMwnOqQkiMerBtHt/2tMbck7ww+D1lT0d9GGjQVpEAZ0iC9H0eCkLAPMgJgljbKZ8 vVe8zspb5wQZ9bdA070A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAwlb-003Tlg-K7; Tue, 03 Aug 2021 15:55:43 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAwku-003TXc-2G for linux-arm-kernel@lists.infradead.org; Tue, 03 Aug 2021 15:55:03 +0000 Received: by mail-wr1-x436.google.com with SMTP id h14so25817575wrx.10 for ; Tue, 03 Aug 2021 08:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6ekZI3NGXszcB0SL1lyPknxhXIDZbetH0RPF8laxNz4=; b=c+eg1E02HSdUpAxZbBpFSUQV02j0nIlnvgH/D7XUHmenEfxEcyI9WsrzOEo68ccbfB OO8rm4IXmuV1pyWNl63S64CaKxgyKjhnxnstm7uXWxm6hKhoFBLNMkzVkrY9CjxJDCRW eARPQtW9WWsAOqvyyasbzM1FvVjohiLXoV9AwvI2kPslebwEpONoPgJpvYvrQKrrLjNS KeBcek20uOGRRIX2UU/xToPERLcBR8tfPyuCHkgm2RFXo3ykhFCVO5Ug/aXUxzLINzjW KVHn4mqIBu6d4XMLrGRJBzp1TlQ9Z5+HIaSsuso0kF1vUWaMEsRS4NP2CG6vyTnt1Wtt H8KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6ekZI3NGXszcB0SL1lyPknxhXIDZbetH0RPF8laxNz4=; b=rT2l80yNvfWxrWReTL/8mKwJ8whmemayX+72VZgnvdKREr1WnQW4pqoPRZpv1VX3Ve RK8mEJtsKDH5pB2/g8ds4hZ0GQ6bFOjG/7q1e7DXtmUfkGzx8dCqWPVPQW3xGjKpHVYT XT+j0TLtDI8RPEHeyF7kR44bd19yLm096j0HtlM+VGJ8PoYRazUcO2VEwQmtMDx5Mndg e4A2WTZCDae4HIWMA/VMyrz+HvevJg0WzMaDvkHlIFhazPjzu73ik9SOjV8EjnWngjjP 6G5lSLw9MrdmntWCy+6UIOcE8jP3nk8YITnG5Akp86QKmbSFSjQpfv9e+qghXktS9W8X pkwA== X-Gm-Message-State: AOAM530iZAzD0ZlJvVSQFR+sfa5Y3fIPXUnMiwqipAVHjzCwsWli2XZs EUB7xnnUJfxeFhzAqR/zNjLijw== X-Google-Smtp-Source: ABdhPJwZAJIWwsXN4h+phJ7hMQSLL6MOXgdKX3w1+JFtr0QiY2daayxpOyK+4ekmBwnl8W36VxwH4w== X-Received: by 2002:adf:9cc7:: with SMTP id h7mr24388233wre.406.1628006098335; Tue, 03 Aug 2021 08:54:58 -0700 (PDT) Received: from localhost.localdomain ([109.180.115.228]) by smtp.gmail.com with ESMTPSA id c10sm14058863wmb.40.2021.08.03.08.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 08:54:57 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Elliot Berman , Bjorn Andersson , Greg Kroah-Hartman Subject: [PATCH 2/3] reboot: Export reboot_mode Date: Tue, 3 Aug 2021 16:54:51 +0100 Message-Id: <20210803155452.435812-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog In-Reply-To: <20210803155452.435812-1-lee.jones@linaro.org> References: <20210803155452.435812-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210803_085500_176590_CF496617 X-CRM114-Status: GOOD ( 13.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Elliot Berman Export reboot_mode to support kernel modules wishing to modify reboot_mode. Signed-off-by: Elliot Berman Reviewed-by: Bjorn Andersson Reviewed-by: Greg Kroah-Hartman Signed-off-by: Lee Jones --- kernel/reboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/reboot.c b/kernel/reboot.c index a6ad5eb2fa733..7ca414aa070b6 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -32,7 +32,9 @@ EXPORT_SYMBOL(cad_pid); #define DEFAULT_REBOOT_MODE #endif enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE; +EXPORT_SYMBOL_GPL(reboot_mode); enum reboot_mode panic_reboot_mode = REBOOT_UNDEFINED; +EXPORT_SYMBOL_GPL(panic_reboot_mode); /* * This variable is used privately to keep track of whether or not