Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1131869rwd; Thu, 18 May 2023 08:19:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SGm6aDV/pn1hf4xPo+LrjbX50qhLczwZVtJz8kooft7F60dQzZjMtZD5LnLBappWoGLZ4 X-Received: by 2002:a17:902:6b85:b0:1aa:ff24:f8f0 with SMTP id p5-20020a1709026b8500b001aaff24f8f0mr2697741plk.4.1684423157304; Thu, 18 May 2023 08:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684423157; cv=none; d=google.com; s=arc-20160816; b=zfspvI8QhZ3xS1OGJ7tF2sDtmFLzEyRq96ZHvzCPN6snyczgYT81s5EWYicxKGBdnq JPrWtSB6KxT4TVJlhzRjc2qeEwCNmvoPMw9Ebt2U7pO8ymw+S6AOHSPlPNVOKxdB9T4X LwT/SUEeQv7WpTkUVh3KfOw5UklV86y0XrtmB5aCo1IKo13hxw9vuYyySk6SLvC2s+sp w2XwS3ofMhJH47EMf4Nyjzu8ysacOEgIe71jC+YD+kn+0/I0oRd7Gn/lbmU79cihC1f4 GC/uc0SPJagb960RwYD1eN/r4MiVbswKE8UNKIvF88agckyuSQ/TmgVXmibBmdp+ikpj uR8g== 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=Fpe8P9+rweAHw9Tb51Uv6Ccd7HD480slhjE2TeQ2Yb71g0+cS5Aa5PeTgSCfgIOO00 I8xFXeNOsGP4gYjt5fEYQQW5h8rf5mAWqryF4fToBcQY7dAyu5DF25G7MlGjQDNCt/5u JuPnKbH2hPDTD+YZccUf5wDY1kmhR68n390HLa1S0MK/L9RPKpp2yleqvN9f/YGfylhK r9uygYLLT2bLP9wwb1kXdPzJ6n1ok7Mn6QcY5YQB6Pa3Hcith3/4lJGK5DdXRGf/R9B2 XFgir4qyWmYEdpBA/tGVwbGSL+XXob+TkkLdgMiorP9JWxQUsJglmznSn8NQyZfPbXWj k5CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MqpuKx2q; 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 j10-20020a170902c3ca00b001ac59bc1c20si1529832plj.47.2023.05.18.08.18.59; Thu, 18 May 2023 08:19:17 -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=MqpuKx2q; 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 S231838AbjERO4A (ORCPT + 99 others); Thu, 18 May 2023 10:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbjEROzf (ORCPT ); Thu, 18 May 2023 10:55:35 -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 0B0C4121 for ; Thu, 18 May 2023 07:55:30 -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 7E9DA64FE9 for ; Thu, 18 May 2023 14:55:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2F60C4339E; Thu, 18 May 2023 14:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684421728; bh=aYadX67GYiG+Nuff8Hdg1wAWmzTfTdurTxNUVvBVt1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MqpuKx2qd87uRhPLIzDuC16HORu6fs9E2wBSEeGEe76eL4pvT840w1VxPqOpFC1Bt xV8Sua3zCYk3GPsZhpeOk+4Q70e7kihILcvakVp1p2LlY8Owz3uuMEQH9MXWHuzib7 d0qmdWhEbK0fXvkufioIYEo5fUCYUvDH1XICDQ0UZFW7PeVCH402cgIErqVD8ZSIdB mZgGh8b2Ad+bJpqbQocrtWc15Un3YjqRIDI1GKZP7TbsVosymFpgYDvUWamwKzeqtG /PN4qiHq1Zp+fl8y5ZUDawDFJJdM4Y+OumHRJXQi8Taw+enmXve/OEobiRfNY20s6n xCBZK12hUwF4w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 350D1CE1CFE; Thu, 18 May 2023 07:55:23 -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/15] tools/nolibc: remove LINUX_REBOOT_ constants Date: Thu, 18 May 2023 07:55:21 -0700 Message-Id: <20230518145521.3806117-15-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <4817a4dc-69e6-4937-84d5-f2f630ff646c@paulmck-laptop> References: <4817a4dc-69e6-4937-84d5-f2f630ff646c@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