Message ID | 20231222115703.2404036-4-guoren@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-9681-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1007116dyi; Fri, 22 Dec 2023 03:59:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhn2Jag12uluN2hYQEmYkWTRgAVU//ZyYQCNrGAKsWSSbRnCPaRRUAvHPyIuAUWnP8x1bj X-Received: by 2002:a17:903:22cc:b0:1d0:a2b2:6b0d with SMTP id y12-20020a17090322cc00b001d0a2b26b0dmr1050932plg.4.1703246342819; Fri, 22 Dec 2023 03:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703246342; cv=none; d=google.com; s=arc-20160816; b=AvEkSS6S3XinUSPdIb0esd/Ik5Nv6nU86Qgd6AJcy8EtSmgbeJFR/nhXZ2rpFUu8OJ tYLZxRnGSey2lDIvGCIm+WtDKKbW8POMcYNIDD1H3Hqgsb4QRMnPOZGeB24PsouuNIHc ZvPMuPwLxfHaWsknqspPlmVqqnJE2V/qwXCClfon4djfGUZ6iCw3CDifc7XaLPYwLSUQ Vhg7mea44oQxJ59fYbRs1DJHOyD5B4Hb5jrfVCDNiNk7OZrP/cYISfi1rrf/I04yh/v0 2XoJWHdBTE+U/R1BFRcKWpAwoNcyy4Xvn8hWH5x1NzIwtRhi4di319SNwguOyH3erUGO Yu8A== 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=+2B64yVuborNRhR0hRJ4G06jDIODc2br0dk92JgFIMw=; b=z9WxsWcLIJE37UOu9ejxf1RXA2oz/9fZKtczAgA8kOD9zTRik9BjcbVdOT8P355Gqy JasophfppJdZeJKJTffHHfA8U/3E+Nj9SWlxnUwdoxa3jc1UAi/xuOTznQLykUww51gB cdzstC6ozKSUxXHmHsqvS+YQDypPcMWvUpM6P2vPoxY/nY6BddVZZOP7VLXdQVPYxX8S wKn+YTq0sDoR7QhCR0z+lKA4rBS5aIayXrasfKrbuaG1OBWp7fHlwmzLUDvOBx7+y3eF 1pYFHxJUDbjsPn57CnV0/YJ8Zqv29f4ikuz3R6cx0Ot4d5U9aqJQciR1uj4n8+PjdelE O6ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rjHR5MVA; spf=pass (google.com: domain of linux-kernel+bounces-9681-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9681-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d12-20020a170902728c00b001d408a4f5fdsi2501177pll.646.2023.12.22.03.59.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 03:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9681-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rjHR5MVA; spf=pass (google.com: domain of linux-kernel+bounces-9681-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9681-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 73AF1286AA7 for <ouuuleilei@gmail.com>; Fri, 22 Dec 2023 11:59:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D34322338; Fri, 22 Dec 2023 11:57:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rjHR5MVA" 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 D13242134B for <linux-kernel@vger.kernel.org>; Fri, 22 Dec 2023 11:57:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13664C433CB; Fri, 22 Dec 2023 11:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703246253; bh=vzAUwHIH1r+/fUC34Yyxdlm+3Xgnktg3iqTJcmMW334=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rjHR5MVAmrvSXQrnh46hTtmqK2B9Ui39aUg7OorT2cb7T849p32wzZw9EYsyX9q9N pBB+OF3PIATNO4q1fk4nJjhiCj7Vtir85aXm+msta1pHfJBBUi49qgN+24XqFg/cnh 9AODp2lyUyp/yMu1DkyVIuZ4hjS0Sf0kwkbyy9vhPiti2WZ3KGKEGRdbvBIVFQPLOB CJpuzMqlx2Hnk8FPva7wkN7HUj0wizLUI2a9WJF/1iztEH6nb2GGSkVLDXBX465EEr nWpko0+T3CgqYkOaQAKDzZOBFMmlxTXV6KLQD9pxMD0PyvN/24cCIFzUJT3KCkdHs3 CN27UjUDwUs4Q== From: guoren@kernel.org To: linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, alexghiti@rivosinc.com, charlie@rivosinc.com, xiao.w.wang@intel.com, guoren@kernel.org, david@redhat.com, panqinglin2020@iscas.ac.cn, rick.p.edgecombe@intel.com, willy@infradead.org, bjorn@rivosinc.com, conor.dooley@microchip.com, cleger@rivosinc.com, leobras@redhat.com Cc: linux-riscv@lists.infradead.org, Guo Ren <guoren@linux.alibaba.com> Subject: [PATCH V3 3/4] riscv: mm: Remove unused TASK_SIZE_MIN Date: Fri, 22 Dec 2023 06:57:02 -0500 Message-Id: <20231222115703.2404036-4-guoren@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231222115703.2404036-1-guoren@kernel.org> References: <20231222115703.2404036-1-guoren@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785983237156423443 X-GMAIL-MSGID: 1785983237156423443 |
Series |
riscv: mm: Fixup & Optimize COMPAT code
|
|
Commit Message
Guo Ren
Dec. 22, 2023, 11:57 a.m. UTC
From: Guo Ren <guoren@linux.alibaba.com> Remove TASK_SIZE_MIN because it's not used anymore. Reviewed-by: Leonardo Bras <leobras@redhat.com> Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org> --- arch/riscv/include/asm/pgtable.h | 2 -- 1 file changed, 2 deletions(-)
Comments
On Fri, Dec 22, 2023 at 06:57:02AM -0500, guoren@kernel.org wrote: > From: Guo Ren <guoren@linux.alibaba.com> > > Remove TASK_SIZE_MIN because it's not used anymore. > > Reviewed-by: Leonardo Bras <leobras@redhat.com> > Signed-off-by: Guo Ren <guoren@linux.alibaba.com> > Signed-off-by: Guo Ren <guoren@kernel.org> > --- > 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 */ > -- > 2.40.1 > Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
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 */