From patchwork Wed Jan 3 17:14:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 83237 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 12D8A38582B3 for ; Wed, 3 Jan 2024 17:16:21 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id 8D39F3858421 for ; Wed, 3 Jan 2024 17:15:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D39F3858421 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8D39F3858421 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::132 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302112; cv=none; b=ogCrq5GaAsK93O9mz6TqIg5U/WICcB0hSUNG51FlGoG8eMZ9Le7P8Z2V0TJGLGeMPdc7+e8EPLOCgkQjKkuvkzm0151o1p/mmRuuZUa5b3UITXfJOJJFZj5aPDTCHBCY+6mKTgjCGT+0qhtFtPxAfwDkxzVoa83GsPvMQ76pIGg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302112; c=relaxed/simple; bh=O14boLSMnaUK5KQuMgG+hh5758S7JN5TBcFPKjsad5s=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Ge1lCdAQO/5AMDXHqvTE9V43tGsrdReY5W+7FX2AxTZs5fS+gGuTOPGO04HD7D/t5ItAaWaabuEBEQAtpgYS8RRURr2npaxYHsLh94ELQvTHMSSbRKsE46xkbZ4c0Li9WuUoU3lAvHZhp/BbkhQKhwe3AYGvpR/9ZIa/5E0+Mjc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50e78f1f41fso7509786e87.2 for ; Wed, 03 Jan 2024 09:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704302108; x=1704906908; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7l+se1Oh8ovwnEIs2wE3+cpOABSQr/6AfWUCk7DUVzU=; b=PFtgiQHtp8FJEFRjDzh9ZGSFIaQv7mpecUZlIDMJ6jNETyc/Sl6Qyf6T51VU63v7aL zFYTnG3Mfx9Co+860DNRzhx/axZpLoHZ0yjavzksgaRwFCjZcNgfeum6mpuspxPwg6Hu LraCmk/pfsdifQzk4d4db/VvxP050IV1piMNeqLggvST+mQ0Apt77Hyz6Z5I1h0uiWlH ESjKDV7NkTpsr9LjnyKojfDDdkyNxBeX0TWpXu8IYfbB9qam4G3KWruqU/yMKokomMDC kKB2t0Dm8nJsIBCaTxVZ1gunaDxWaIowicC7qX+9YeZl7dpW7UDEQhx6IrHcNwVUzuyx f72Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704302108; x=1704906908; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7l+se1Oh8ovwnEIs2wE3+cpOABSQr/6AfWUCk7DUVzU=; b=nbgSLNutZ1ces1NqIe0UXtO+0iMLgf6ER9s9yFgeRtfTk61pbCifQQJLjMFNIP3vM9 hcvbgIZ2HDEmVx3gDGy0kBS4FEj3+y1YFR5xQyVXBfiqtNPJFtH1p6+se1Pucg+o0slH ztQZcgoY1wm1UspCU+IBhQomUs8uphALB1zfC+aBfnh/U55XbAK+16kqrS3wNbvWunRF 7f/F1hI967gJ69gKqJxPNfrXYgrY8ywHWKUY9F8rprgdoPjX/UNoLlE2XsgBvtMTUhtb 4nEWCjL5QJjLJuXQRr3cYFC8+VXBW6Q7IeqRnrf2sEu3k8/fjsZ0UASepvTyBnD4oCRs mIag== X-Gm-Message-State: AOJu0Yz/CWbfNyRyvTzjvafFHQc7eu93aTzCiVg/FWrSFUtaoq+jkXUC xhWNGU9cMvbrx1DxzcwlwVXlO1tjIpQ= X-Google-Smtp-Source: AGHT+IGnUxuCJsFOQkuMIwH++571vSVX9vG3BcJBtokNuEtS/MWWTTq9xkercS9rztIcpT/jj3AvZw== X-Received: by 2002:a05:6512:1246:b0:50e:74f3:9c5a with SMTP id fb6-20020a056512124600b0050e74f39c5amr7827297lfb.38.1704302108234; Wed, 03 Jan 2024 09:15:08 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:b32f:ebdc:fd0:376b:8006]) by smtp.gmail.com with ESMTPSA id y23-20020a196417000000b0050e6d84d177sm3546068lfb.279.2024.01.03.09.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:15:07 -0800 (PST) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [PATCH 04/23] mach: Drop some unnecessary vm_param.h includes Date: Wed, 3 Jan 2024 20:14:37 +0300 Message-ID: <20240103171502.1358371-5-bugaevc@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103171502.1358371-1-bugaevc@gmail.com> References: <20240103171502.1358371-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, 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 server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Signed-off-by: Sergey Bugaev --- We should try to include vm_param.h less; this statically asserts that these files are not possibly using the PAGE_SIZE definition. dl-sysdep.c used VM_MAX_ADDRESS for the "loser kludge for vm_map kernel bug"; that bug has been fixed and the kludge removed. setup-thread.c has been including vm_param.h from the start; I can't see any reason for it. mach/setup-thread.c | 1 - sysdeps/mach/hurd/dl-sysdep.c | 1 - 2 files changed, 2 deletions(-) diff --git a/mach/setup-thread.c b/mach/setup-thread.c index 72bf1083..1e7f9953 100644 --- a/mach/setup-thread.c +++ b/mach/setup-thread.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include "sysdep.h" /* Defines stack direction. */ diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index d3933bfe..43129a1e 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -32,7 +32,6 @@ #include #include #include -#include #include "hurdstartup.h" #include #include