From patchwork Sun Jan 7 06:30:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 185713 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp418270dyq; Sat, 6 Jan 2024 22:31:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqeLLKc+K3DfvQDNq4hsQ6c7IBlF6pPrmCMcXgNDD4YqtJMiy4hgMYXXBDQ+2sJHUYjNdh X-Received: by 2002:a05:6a20:a104:b0:199:a053:385a with SMTP id q4-20020a056a20a10400b00199a053385amr25902pzk.55.1704609107955; Sat, 06 Jan 2024 22:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704609107; cv=none; d=google.com; s=arc-20160816; b=0moC+VxCdvFKcK1moAbkH2LR46M1TxvRdDh/lclb00kaaSR1p4MG6qWZRMPi4IezYr b3+Dl0tQIyk2uw9VS8D+qUZ2r/rB9sHpCUH531TYg3a/SAU1UYGavd6SgEiqbl4BbQZA vAgkfUY1yChPXBajAT7Dw6iqRsWSwvPuR2ZrvOIMiYpyOJ4g4thlB7iNIHYlg+2B59OQ w6cXRTbPyNVLnfH7AbG/Iy90ZIwfixlahlzGrb6RN5h3fEOl9AFbq/ggslF3r5Dho+H8 rD6VF4FjWDozRcpS8AS9A/krABg5E/bS5Wd5803aiRaO+yYE0pkj8EvhtzTkiqibE2nu BumQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=51cR+iiFTSeuQGXrjyfcONIKJ3brzFQxfBINGcHw8C4=; fh=yhmNvk3uep6UOKkj3Qx0qRxJTOOYElfRY/Q5awrrhME=; b=m6vPSWDbO4yBOj8QuA1SKkqF4/OtOMXV8kc4etB8cQY2SM/EZiUncSttnvZh3C/kur Gogb3usoFv76LtlEwt48YnNuClrcpIx4CxtUCbYS5R3Gq55GRbu19VoAaPb6Xt7Vsq2w aB9hA68G/XJUW0GSfnWlNCQrNiYebgKyHoF9wRdbrl6W93lpDrVQxP26B4xdrTFoY87i CiympD6IOcJAQrQTrBJjKYAHJsblRvrPBexlvjXmD7WlT3Yufx19a5xsAsVfUHhAXxf+ uAHDMgoEojMiTRlUmvSy/fv5bA9XA1uz1XMOOAwZvF+ATo+07WqqPXk6+Ku5pfKzoVeP 3vXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G3HfLCNV; spf=pass (google.com: domain of linux-kernel+bounces-18802-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18802-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q63-20020a632a42000000b005cdfdfcd033si4123858pgq.180.2024.01.06.22.31.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 22:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18802-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G3HfLCNV; spf=pass (google.com: domain of linux-kernel+bounces-18802-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18802-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E243CB21C27 for ; Sun, 7 Jan 2024 06:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E2BD12B74; Sun, 7 Jan 2024 06:30:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G3HfLCNV" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C63AF134AB for ; Sun, 7 Jan 2024 06:30:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D09CC433CA; Sun, 7 Jan 2024 06:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704609049; bh=vzAUwHIH1r+/fUC34Yyxdlm+3Xgnktg3iqTJcmMW334=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G3HfLCNVX2P6JME1CRwoKlII+8fekB61j+wxGk8SBt44Z+PfP5xWipdBEl9SxyI9Y JgxqN1nqfT4weGIevxsCwJfRZPerhMFS+oG5jbTx/vZuhAnfMu12xrhRCeIG/06IwF Bk8QKbobbXzKmmotNNZNuDEivbp/qqUTEjT9as7W3FFlow/6A8Dlf6bQ+7Lv79Xj29 qI3yqZu1Co4UPztVZ/4IB6kUle6SbZ0cZnzACHAADsQ+kx8jhSA2MQD62USMr6VF8n C8SbqZ3VnLGwKPRpcYLP68+Gvb7UX/pK6Z0V/zF4xaR5q4yBaZ7hJTKsLIxyrUABmP vleOZdLP7cfzw== From: guoren@kernel.org To: paul.walmsley@sifive.com, palmer@dabbelt.com, alexghiti@rivosinc.com, charlie@rivosinc.com, guoren@kernel.org, panqinglin2020@iscas.ac.cn, bjorn@rivosinc.com, conor.dooley@microchip.com, leobras@redhat.com, cleger@rivosinc.com, willy@infradead.org Cc: linux-kernel@vger.kernel.org, Guo Ren Subject: [PATCH V4 3/4] riscv: mm: Remove unused TASK_SIZE_MIN Date: Sun, 7 Jan 2024 01:30:24 -0500 Message-Id: <20240107063025.1628475-4-guoren@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240107063025.1628475-1-guoren@kernel.org> References: <20240107063025.1628475-1-guoren@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787412199632564057 X-GMAIL-MSGID: 1787412199632564057 From: Guo Ren Remove TASK_SIZE_MIN because it's not used anymore. Reviewed-by: Leonardo Bras Signed-off-by: Guo Ren Signed-off-by: Guo Ren --- arch/riscv/include/asm/pgtable.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index 74ffb2178f54..e415582276ec 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -878,7 +878,6 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte) */ #ifdef CONFIG_64BIT #define TASK_SIZE_64 (PGDIR_SIZE * PTRS_PER_PGD / 2) -#define TASK_SIZE_MIN (PGDIR_SIZE_L3 * PTRS_PER_PGD / 2) #ifdef CONFIG_COMPAT #define TASK_SIZE_32 (_AC(0x80000000, UL)) @@ -890,7 +889,6 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte) #else #define TASK_SIZE FIXADDR_START -#define TASK_SIZE_MIN TASK_SIZE #endif #else /* CONFIG_MMU */