Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2338696rwr; Fri, 28 Apr 2023 09:04:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gk11jbXAn3Ard1cGXEQWDaFV9BbYPzCi8JDgeJFGFlIH2mDpkn+XQZqCNu2NMvoqtqqF9 X-Received: by 2002:a17:903:22c9:b0:1a8:1867:1f71 with SMTP id y9-20020a17090322c900b001a818671f71mr6955005plg.41.1682697863647; Fri, 28 Apr 2023 09:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682697863; cv=none; d=google.com; s=arc-20160816; b=gco08cHrvopMefVUlU5H82YrDuieEB6kwWUmiA5n4+p73b52fDZWtbM73R250gsvt0 X8Qgk/BrkMI159rwcISc3p749Dd2b7gSYwFB2foMKsWe40q8o55LptyvliPe6g/xU2je uic/vY8zZ1BnRRBXPBGEz+TrWx3je758clT/J9tikSIhzTDJFV8hAS0T9Rj40MNTOLck IpY/c0+vICf9x8dHL5b32YGF7zaXA+sUS6uQqATYiI5BxDccgvcu3MSjXLenlSy6f5f3 5mPLwOlX1pV/prxZV+TAUY3I7IgskcJfJZwZXsSAYZTKS1hTXuVpkGxZm71cAknNEa2g Z9SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from; bh=kkiT1/vfGILGhs9DDIR8P1bBnbyCXeTqLC69hO30Oqg=; b=H8QI9kOaeclwj0J1D5ggqykL7dMrYtmEwbUdVLDUXNZxfcjHJG7MFHEj7r2PbCCUfP jWOKGndhtNraBEkz0j7Zor8kbXWVHyAXBsTf28fBkCQH2PGy8eY495ypRzj1psAEOpSo k3P3k6Fgrb8f69wxcsQ6O2yil+d66iEtlVO01Oto7WkC+MGOIZHA2GX3KoiQs6OobK0w Okk4f2WEFJIDLs6zdPlYxw2et+6WgloL8kmYzT8kcxyAlKaAiSbFyJxMBI2OgxXdnlPM XPIx8zRKXeAm9lEnf124/Y1f/REoOyqZDYvAty1E1K3bC4RNZr9Eq0CSm4YcohA1h4l8 s43Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=NpAXjKrK; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a1709027ec200b001a534447059si20629496plb.216.2023.04.28.09.03.43; Fri, 28 Apr 2023 09:04:23 -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=@weissschuh.net header.s=mail header.b=NpAXjKrK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345914AbjD1PwS (ORCPT + 99 others); Fri, 28 Apr 2023 11:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345900AbjD1PwR (ORCPT ); Fri, 28 Apr 2023 11:52:17 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F2D2129 for ; Fri, 28 Apr 2023 08:52:15 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1682697131; bh=yA2p+JNjmFfGlYa0wIdrC8Z5YlWh5St1B631YdUOEJc=; h=From:Date:Subject:To:Cc:From; b=NpAXjKrKzJnetymlNBJ8g1xKFOazMwZ5dCBSH/bIsdnew7Gsb+ATyUvK/MEtCDdMZ zhAfxk9hAIDQD5aBVY16Sgmhh928kGPhcLjlArKiafKXjr/EIrW58LMpsWUEM5FYnL S/5omzMXOkTrtUpA4Wkit47fNpI2AkCKJy8v3H2M= Date: Fri, 28 Apr 2023 17:52:11 +0200 Subject: [PATCH] tools/nolibc: remove LINUX_REBOOT_ constants MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230428-nolibc-reboot-v1-1-0bca02d20ba6@weissschuh.net> X-B4-Tracking: v=1; b=H4sIAKrrS2QC/x2N0QrCMAwAf2Xk2UBXZU5/RXxoumwLlFTSKcLYv xt8vIPjdmhswg3u3Q7GH2lS1aE/dZDXpAujTM4QQzyHSxxRaxHKaEy1bnjtbzxQGKYxZPCGUmM kS5pXr/RdisuX8Szf/+TxPI4fLSlCDXQAAAA= To: Willy Tarreau Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1682697131; l=1245; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=yA2p+JNjmFfGlYa0wIdrC8Z5YlWh5St1B631YdUOEJc=; b=Gt3010UUPuT/YnL934/uirUuPbLuQv6XVi9Uuo9WkN92QI0hTMYYBnBVoopDcjfStpXvAB1OM g3s0Zj3DtCsDx6eGfbFeC/548m7RnuvlXJe0z5PflsOL8NxR5JH31QF X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 --- tools/include/nolibc/types.h | 8 -------- 1 file changed, 8 deletions(-) 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) --- base-commit: 33afd4b76393627477e878b3b195d606e585d816 change-id: 20230428-nolibc-reboot-719e6b06d80c Best regards, -- Thomas Weißschuh