Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp318476rwd; Mon, 12 Jun 2023 14:08:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WL4mdvphnf28b9XTqr/x+Ppx2VqKLon5NFe5zKbOb8oUhD/SHBLbPbpTC00rgaiN+FtV7 X-Received: by 2002:aa7:d518:0:b0:515:4043:4771 with SMTP id y24-20020aa7d518000000b0051540434771mr4710183edq.42.1686604122058; Mon, 12 Jun 2023 14:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686604122; cv=none; d=google.com; s=arc-20160816; b=Mb+BDJmqSHxfzP3pi53fzxRhEErrjI2VW9XkAN9QPh3TYtAT4FwBi/ZbTpbT3CNknD SNzlNI42XnC8Qij4HTJ/dm3riWOM/8AoupyCCtH76QZcmb1LdhO2UcuT2H3tE0ZxrMLH juXeuorzM2VsYbt9UD8JZ1g05x9mSxuRq2qkaNxa1xCm7kyCgBrj9crM3WpyycauLUpC E0iW0oKnxcAza0Fr/ot/3uYrAO/18NPj7o1asffcBsiFVQQVoETnDY791wclRL30jGNB civIfdwA0qBIalevYcdqWetUS77tSCC5SVLueb2+u+hU6845sL4jKBWqLy7Gj8avFnM/ YrSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/QUsyDbN1wwtKQKu1kUZsfJXnPvAbvtgpkbkg0reZJE=; b=ejrAfU8C5uuQbnAq7CpgcZdIgt/DyXoRlp8Fz0MzjQr3QxNWVV34riuTiiGCCxiXom HrGW9G/gdFShIrUEpeozK2YV6SgPB0lr4ML1zjouh+PO4q3jUwxCdLEWKlBRmtDZQMxs HWSdqEGtXDnzk5M/mVGmuk0dL64vyejvOsSazU538/qTbRXQIu62aStKq+MNxA4RnrHf ZQYiNPj/Fb8fZxHewMvUN0XHxXh2LYKGIMjua19rYRA/bx22Jgz1Ah1lQpX/U6oQ9KX0 LyZQO2SwhE5y5i+x9BTzXHhyi/eTO2HqrxqyC3WNexBgopphjaMYMD/OrnTSPChcxa+9 g6dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=agyfhPJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a50fb05000000b005154f73bf75si6912192edq.591.2023.06.12.14.08.16; Mon, 12 Jun 2023 14:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=agyfhPJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236103AbjFLUs1 (ORCPT + 99 others); Mon, 12 Jun 2023 16:48:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237100AbjFLUr0 (ORCPT ); Mon, 12 Jun 2023 16:47:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC9072956 for ; Mon, 12 Jun 2023 13:46:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7D7CB62F02 for ; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3993C433B0; Mon, 12 Jun 2023 20:45:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686602716; bh=aYadX67GYiG+Nuff8Hdg1wAWmzTfTdurTxNUVvBVt1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=agyfhPJYVc0kbRjDsZN7YsXptG8VkUsAwx0AOQgpsw68zsjgDkvW/O/PHyC8v73zP Mv7zeQ8mtAtabnhDqyZHb/tO4A0ckb6YbsJHih2kZH0O60Aoj/SqWFWJbqTCNmmtgR IwkAOjwkOUtQ1+eL2Mh7f7rOD87s0nTgbCnPBhqYZYKomZtgDyklK+K5jNPM6NQfDo P7sz9BR/HKOsjpSX1HNu+xoY7TxJFc7xSXr3T/T9TdhZaYuwjedjnen4UKD3hvu6iU xxnoAaF6Ijd0Wqf4ga7PSs6N/igt1FCcRwM8QBSIOCDjXGKel01BI6OKz513fMvvik jXx3PrvcOZu8A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id CAE30CE3A56; Mon, 12 Jun 2023 13:45:15 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Willy Tarreau , "Paul E . McKenney" Subject: [PATCH v2 nolibc 15/53] tools/nolibc: remove LINUX_REBOOT_ constants Date: Mon, 12 Jun 2023 13:44:36 -0700 Message-Id: <20230612204514.292087-15-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> References: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Weißschuh The same constants and some more have been exposed to userspace via linux/reboot.h for a long time. To avoid conflicts and trim down nolibc a bit drop the custom definitions. Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/include/nolibc/sys.h | 1 + tools/include/nolibc/types.h | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 60dffb1cbf96..d5792a5de70b 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -21,6 +21,7 @@ #include #include /* for O_* and AT_* */ #include /* for statx() */ +#include /* for LINUX_REBOOT_* */ #include "arch.h" #include "errno.h" diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index aedd7d9e3f64..15b0baffd336 100644 --- a/tools/include/nolibc/types.h +++ b/tools/include/nolibc/types.h @@ -86,14 +86,6 @@ #define SEEK_CUR 1 #define SEEK_END 2 -/* cmd for reboot() */ -#define LINUX_REBOOT_MAGIC1 0xfee1dead -#define LINUX_REBOOT_MAGIC2 0x28121969 -#define LINUX_REBOOT_CMD_HALT 0xcdef0123 -#define LINUX_REBOOT_CMD_POWER_OFF 0x4321fedc -#define LINUX_REBOOT_CMD_RESTART 0x01234567 -#define LINUX_REBOOT_CMD_SW_SUSPEND 0xd000fce2 - /* Macros used on waitpid()'s return status */ #define WEXITSTATUS(status) (((status) & 0xff00) >> 8) #define WIFEXITED(status) (((status) & 0x7f) == 0) -- 2.40.1