From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 4904BC2B9F7 for ; Tue, 25 May 2021 03:32:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1684E613D8 for ; Tue, 25 May 2021 03:32:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbhEYDeX (ORCPT ); Mon, 24 May 2021 23:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbhEYDeW (ORCPT ); Mon, 24 May 2021 23:34:22 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB050C061574 for ; Mon, 24 May 2021 20:32:53 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id 66-20020a9d02c80000b02903615edf7c1aso5427756otl.13 for ; Mon, 24 May 2021 20:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6Y5oK5vW+T21O5OAKzPC8r5w90JD3+B+yQGGc1yRB6w=; b=bT5pDSpFo9iPBIuOv4+ktrHZ/to73R8DrxvaSL1vu9VZG57l4+Hki8/0www/Wy8uCo 4yc85wcpDh7u4/FXjqYkznMpdh60J/AgbuPiaiQjxoiXppGDUupddmzXldCyK/NR2fh3 qlf9VeNy1Cegg+b7rvokrjYlaKNnIgCEPrfkuhDKuDITxcWYiI1ilbrMx0yUb0l1gjgR XrUObTvjzragPptGXntV74m5oGGQ/NYZajmLAH7hF4x6EF1jLzTf0laq2N8ila6oFDi1 Jtm9vu76IYDLeepOPDRrvr+1zQGpuDstM5Pxhe/LJZGxsyaDFfnyy2tPSO1vDC7kRJB7 UJQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6Y5oK5vW+T21O5OAKzPC8r5w90JD3+B+yQGGc1yRB6w=; b=Twy2Ws9AoqzeUCH8W+uuyM5Y9+H9HIZmWicsNABAm7GOol4xKyLoNctTK5nnd9Mr9F QEQztJQmhwhkL2e+2WXp7jFMLKBZKDs3hVWQi0gj+FZbKUo5F7qkCEK4U/MFlmc25ASd UWnCxo3Brk4lJFuNM7DN+1CZlY1huQFZjsjUWJcrLWDkoeaWZ+2JoJJ1gwYKCiS9/q/C MJMzdbQMuC8tN14C/M2uuZEdpPKIfj9N/jpt+M+Hl8hy8lKpe8eMquIk0tg3SpkCfxPp x1OoSehixUh5GWlcppt+cShX0/1dJcBqXCKoOi5ZSaBeBzaAvSc/XmtBq5YTj04hr3cF TtsQ== X-Gm-Message-State: AOAM531JGLGNr0wfPHCyZAu7J2uJ1SkOlU5B4+cp2n+DYG5osbG02eoZ +qJgB3/xkE0704aCQOCK4FiBUg== X-Google-Smtp-Source: ABdhPJwN1NZlTvBjdJW3k+BDrCONIgMoegnREK22KoQp4Y5UADt29qHuaIc3pG4DSG+NUI1041P/QA== X-Received: by 2002:a9d:4b9c:: with SMTP id k28mr21671489otf.183.1621913573206; Mon, 24 May 2021 20:32:53 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id i18sm3216334oot.48.2021.05.24.20.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 20:32:52 -0700 (PDT) Date: Mon, 24 May 2021 22:32:50 -0500 From: Bjorn Andersson To: Lee Jones Cc: Elliot Berman , Sebastian Reichel , Todd Kjos , Greg Kroah-Hartman , Trilok Soni , rananta@codeaurora.org, open list , "open list:THERMAL" , Andrew Morton Subject: Re: [PATCH v2 1/2] reboot: Export reboot_mode Message-ID: References: <1573256452-14838-1-git-send-email-eberman@codeaurora.org> <1573256452-14838-2-git-send-email-eberman@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Mon 24 May 07:09 CDT 2021, Lee Jones wrote: > On Fri, 8 Nov 2019 at 23:41, Elliot Berman wrote: > > > Export reboot_mode to support kernel modules wishing to modify reboot_mode. > > > > Signed-off-by: Elliot Berman > > --- > > kernel/reboot.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > Reviewed by Bjorn and GregKH, but never merged. > > I guess all the parties are still solving this downstream. > > Andrew, is this still something you'd consider? > Seems more reasonable that it would go together with patch 2, which Sebastian pointed out doesn't build. Regards, Bjorn > diff --git a/kernel/reboot.c b/kernel/reboot.c > > index c4d472b..b1fbc22 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 > > -- > > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > > a Linux Foundation Collaborative Project > > > > > > -- > Lee Jones [?????????] > Linaro Services Senior Technical Lead > Linaro.org ??? Open source software for ARM SoCs > Follow Linaro: Facebook | Twitter | Blog