Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp840072pxb; Thu, 12 Nov 2020 19:01:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtXufbj5pD/xB7euTw+xp9fI5Qu9WBmvF/C2mZrzmD7zmbnugFXsr3ucV8V4gZo62OFYZT X-Received: by 2002:a17:906:f1d8:: with SMTP id gx24mr21155ejb.73.1605236472272; Thu, 12 Nov 2020 19:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605236472; cv=none; d=google.com; s=arc-20160816; b=xiMjAELI5NIqK401tvBrhGRNrTcEzInbjBLTfOnuxtKgZ4cSZ8mN5vcO31GkmIYtL4 4SNfy2e8mhfAT3mdh1gnzd/7PwdjhNjO29Rj5G07WRrMl7JUlF00ehj6kKoNk2sqc56u mz02xvv+Joo9lTjO+O3geOF88FkIfRrliDgoOQ8dqtScnu6I/7eDneLmyaHdVzioK3r1 hce+1MEwgLrxxvvqASc/+RtyzP9PVJ9m90yZbccqiuHpG1K7ydmFxVADYHwumQ7CQtNo d/blgd2kYzpgdzH3+US1yawqnW4yhrBl7/teEkZTJV/5HtwmMpUHgEwkT7hjr2WOHkoL TAEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=d5Lc0YjAvi+/83s/MY3Hf9Z6pggitK4YIoSWpqH8sdQ=; b=MJgAoDRRiIjXPki9+HgHQ0Io5rwZLHE70b27yiMOwogNiy2XprVi2/giXsRrmixJCB WOamQVQJkThL6ruLzv9uihEQIzv2nadEHrC5KBeXC6lrJ5YW7rfl6fp4OLWbzcTnonbd Klx3dTbnRP/JYrQe6TSEJgNQTQOg9TDHNIcAHCrn/x4GDvUtp7V62ipf4Lv3pRQpYJuw vdE5XL57CHQHj0LxvrsS5B7aMZLeTm7nl08P+391OkA+FtAv0vDDJZ0D5+pL2SVNdlga FVgZc8GShd7mNeDAqw+tr4NFl6Ilvq6bElL0rY71ino1kSaLm0Q+fYVIVyr6ABSa6/Ma ZTEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="Q/1NFDtO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si5305106edm.477.2020.11.12.19.00.48; Thu, 12 Nov 2020 19:01:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="Q/1NFDtO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbgKMC70 (ORCPT + 99 others); Thu, 12 Nov 2020 21:59:26 -0500 Received: from linux.microsoft.com ([13.77.154.182]:35946 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbgKMC70 (ORCPT ); Thu, 12 Nov 2020 21:59:26 -0500 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by linux.microsoft.com (Postfix) with ESMTPSA id B95FD20C2890 for ; Thu, 12 Nov 2020 18:59:25 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B95FD20C2890 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1605236365; bh=d5Lc0YjAvi+/83s/MY3Hf9Z6pggitK4YIoSWpqH8sdQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Q/1NFDtOk2u9zbJUN1M1mYI5R5INHgBu5HzXneeuiT9RweZsIpGAjD+H7iqVRF7lL 0uau/Odc6v8ir4B/lY/vJDBSYVcxmb3N2n7C3mFm+GcBsiWeqoSgoqkecvGWZJdbCM I2Na0CwEgxd/J6sgU2u2MYr4DB4LfElr/eK+xsB8= Received: by mail-qk1-f171.google.com with SMTP id v143so7697206qkb.2 for ; Thu, 12 Nov 2020 18:59:25 -0800 (PST) X-Gm-Message-State: AOAM530Q+haLLFPVf+CHpwEN/EZx0I9Rz+rZimgIl4H1wSYxtxI0Kxyq 9G+1XFmCB8nlFLPX8u78ky2F8Nc0XpqA9WFyit8= X-Received: by 2002:ae9:dcc1:: with SMTP id q184mr166427qkf.436.1605236364820; Thu, 12 Nov 2020 18:59:24 -0800 (PST) MIME-Version: 1.0 References: <20201110202746.9690-1-mcroce@linux.microsoft.com> <20201112035023.974748-1-natechancellor@gmail.com> <20201112151320.e0153ace2f2eb5b59eabbdcb@linux-foundation.org> <20201112171826.0fa3c6158f3c2780f90faafe@linux-foundation.org> <20201112184637.de44afedf0ce0dcab36dd0ad@linux-foundation.org> In-Reply-To: <20201112184637.de44afedf0ce0dcab36dd0ad@linux-foundation.org> From: Matteo Croce Date: Fri, 13 Nov 2020 03:58:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] reboot: Fix variable assignments in type_store To: Andrew Morton Cc: Nathan Chancellor , Arnd Bergmann , Kees Cook , linux-kernel@vger.kernel.org, Guenter Roeck , Pavel Tatashin , Petr Mladek , Mike Rapoport , Tyler Hicks , Nick Desaulniers , clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 3:46 AM Andrew Morton wrote: > > On Fri, 13 Nov 2020 02:38:18 +0100 Matteo Croce wrote: > > > At this point, since 'pci' enables BOOT_CF9_FORCE type and > > BOOT_CF9_SAFE is not user selectable, should I simply leave only > > 'pci'? > > This way, we'll have the same set of options for both sysfs and kernel cmdline. > > Well, you're the reboot expert ;) > So honored! :) > But my $0.02 is yes, let's keep the command-line and sysfs interfaces > in sync and cover it all in documentation. It would of course be > problematic to change the existing reboot= interface. > > I assume that means doing this? > > - #define BOOT_CF9_FORCE_STR "cf9_force" > + #define BOOT_CF9_FORCE_STR "pci" > - #define BOOT_CF9_SAFE_STR "cf9_safe" Either BOOT_PCI_STR or BOOT_CF9_FORCE_STR, I have no strong preference. The syntax is 'pci' while the enum BOOT_CF9_FORCE, so we can't please both. Regards, -- per aspera ad upstream