Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp258516rdd; Wed, 22 Nov 2023 15:24:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5RgDaEeT/PTqzx6npuhxnbag2qOf+AVFpPF0SaXJkMmKCWgo2I9vlgIGuuVrpqDqHYYgu X-Received: by 2002:a17:902:f54c:b0:1c5:b855:38f with SMTP id h12-20020a170902f54c00b001c5b855038fmr4672296plf.24.1700695444200; Wed, 22 Nov 2023 15:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700695444; cv=none; d=google.com; s=arc-20160816; b=MVveuW20cdX4ZaGy0aK3xIo63+7TpCgB+ZAAuFmgs22UgOJKm6lfN/PZKWHWhgZ27+ mXmiesGBTE7uYhNU9uqSEnx6qDyZNdnV2la2BXQOHloC+ECXmxZvLgrWurD6XfmYlqiN UsZwQbeNaKxrVhpx1+wraXhlMJkWgo1YnrUfmSCAXEocDKCF+sGQ0TXYaf+70EMJoIQX MWnfxSZhOIY9usD4Yxy+VtVLlqNCHRlR7ro/BJlZRvss5j2f+YbP461H4onfVh5WTN/D 78+9Ccw7UOSXbyZeLVIRHDEabdY/vS+uh7lLiptaV+XWIUxuu7xx5nhjnatkANfUul4I SPXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Z4czFyhbGzMtri3GyRe+WOtcWzzK1XpjENULev3bk1M=; fh=Qbk0RS4bf6GjbhGkpgFoVgYg5V+1DfWcZ6CAErfO2MQ=; b=09X2/Luvrh7V6qiSptSROvLACIs8x1JaWraUeApx4C7yOvd72fNyl5YKURsQV2KAS9 Cj+85MR4cCaRrk5wmvCdKF+mYa0iP83REZThKzCwsDR+jZjCLuze+ro2tG9BWswV72e7 5n/kmyJup1lpN2DXioNRuJnVFRtvQnPwZdfD8ZxKrcb1W+dapZr57rhWkElLxczliEJW yuX1kzPCqnxVK1NbpkMV547+ROp8HjEmDoWvvO9L+/1qNHWqKjSVj9jfVSYI5pGoZ1wM QNRvo/hEGr1iO+eY+PfAKYPnUypd8N6bEbhsoUQGaqzZMutWYhQ3YmRvtoWpTsS7/oOf c0bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=NxtE0Rxs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h13-20020a170902eecd00b001ca485b8514si372052plb.646.2023.11.22.15.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:24:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=NxtE0Rxs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 905F981D80A2; Wed, 22 Nov 2023 15:21:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234509AbjKVXVf (ORCPT + 99 others); Wed, 22 Nov 2023 18:21:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKVXVc (ORCPT ); Wed, 22 Nov 2023 18:21:32 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A308191; Wed, 22 Nov 2023 15:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1700695286; bh=srEK4Dv24I4ReE5ME7PGG9hMAt6epR4KY8YZybZeB5w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NxtE0Rxs/IstNAYI6ArnQO1zYfrUzt6WY1HUy37hXMYugi60xcSbuYmK81IOxZ26C TmrZYHwk9pMYh5iU2wEC2ZJcFFJ2QcCgokgvYaz0ylU1KCj5l4uhn6QY8boWQSKaZN eHbcoKEh49DE2zQV8V3m3e86mLkGpo1fTQoQh2pc= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 23 Nov 2023 00:21:25 +0100 Subject: [PATCH 1/3] tools/nolibc: drop custom definition of struct rusage MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231123-nolibc-rlimit-v1-1-a428b131de2a@weissschuh.net> References: <20231123-nolibc-rlimit-v1-0-a428b131de2a@weissschuh.net> In-Reply-To: <20231123-nolibc-rlimit-v1-0-a428b131de2a@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700695285; l=1460; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=srEK4Dv24I4ReE5ME7PGG9hMAt6epR4KY8YZybZeB5w=; b=uchEGzHmA/GH3gMecABp7LlEuFjgup5ONftSDDvzrKWXE+Gzoa6yiHURMy9mNvR5ZAOZ/7ZtX 1rCWhkLvVTwDHjsPhl/xbPCbUJYfBicSC4pXpWTxEhvaepi08nbySBD 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,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:21:42 -0800 (PST) A future commit will include linux/resource.h, which will conflict with the private definition of struct rusage in nolibc. Avoid the conflict by dropping the private definition and use the one from the UAPI headers. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/types.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index ad0ddaa89e50..b26a5d0c417c 100644 --- a/tools/include/nolibc/types.h +++ b/tools/include/nolibc/types.h @@ -13,6 +13,7 @@ #include #include #include +#include /* Only the generic macros and types may be defined here. The arch-specific @@ -178,26 +179,6 @@ struct linux_dirent64 { char d_name[]; }; -/* needed by wait4() */ -struct rusage { - struct timeval ru_utime; - struct timeval ru_stime; - long ru_maxrss; - long ru_ixrss; - long ru_idrss; - long ru_isrss; - long ru_minflt; - long ru_majflt; - long ru_nswap; - long ru_inblock; - long ru_oublock; - long ru_msgsnd; - long ru_msgrcv; - long ru_nsignals; - long ru_nvcsw; - long ru_nivcsw; -}; - /* The format of the struct as returned by the libc to the application, which * significantly differs from the format returned by the stat() syscall flavours. */ -- 2.43.0