Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1634505pxj; Sat, 29 May 2021 21:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY11Umxyj33c+eIw+U12i2+T/s5klluOK9RX9aRJTOwRiLdXqc7Xw5tNepRxu9zaKpZHoR X-Received: by 2002:a17:906:abcc:: with SMTP id kq12mr17229549ejb.97.1622350581001; Sat, 29 May 2021 21:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622350580; cv=none; d=google.com; s=arc-20160816; b=FhaD8Wy0JxYTtuhuAtYfB0NxGlUWlgvi3CeP6QCX8HVriufIuXSTvua2rL95lWTYps xdVYdkwGLDe7+arwvJwmWNYgTAkoNGdogXCcs3ABf/U0FwQgcMdiNrepFG+51k/EzpBI 3HcXHe6iTmRWILRuZ8LitrO3PrTkcphHfz9RTFgQVi8Mo5HGKR9FHaJd2GonVd5fhzVp l/G4SHMri/ub0deAi0AQRb8P5Nc8J0lvCezwOTfisMbR+kTujK2ioL8ZCB7iz9y4HgnU UsJaeiQuF6JGWkCVC7RittgLbCm/GCMwHc5Qi49wSZgx17sHnb8VRRKFaqfurvCwBKSz pSUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=GyP+6eoFkYsiRFT4suP7zKGCWAApscsZ5APNuPW7Os0=; b=UP1aYNkveXnDvi0mqd/QELEeZ0FP9WY4Jg5rrF4vJkowLGrjQ4VI0arB8MMUPCX0WP aZVL2ijX41G2drlRbJWbErs06N+exfXspo2OmHthuC2Ms/vDgXLPlfuDgHvmX77NVaCV OQQvn++NiprG55QgvCzgpT1io+lcCTPJxuS0nribXYqf68vZ5E+VQXH7Fcjel7Nc80tS lSoYcYWPLj1b/gYsu+kEw0WnD916entrus8uCw902vCp3amSGAcwX4xTCh+GtXsIB41h +vAc3toPLij5yaQVAaw54vA2BOX3l1yKRgmfClud7P5bjWYBs0uUscTw21T9noZtB9LE G2Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOIfg7ml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si8699108eje.397.2021.05.29.21.55.59; Sat, 29 May 2021 21:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOIfg7ml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbhE3E4D (ORCPT + 99 others); Sun, 30 May 2021 00:56:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:53924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhE3Ez7 (ORCPT ); Sun, 30 May 2021 00:55:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 86B9F61107; Sun, 30 May 2021 04:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622350462; bh=ld9Tfr3N3Uv38Fxhir93icz1umeDF3KkC8aAIxDQbwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XOIfg7mlMFZ1nQjdb4dqKXiGjWv4ZyQCW5AnwlKX6jwR73kWxxyGvpdHy5IQzeaBD IEzoWQrCygRhksdK7aK5cMQKinDPutXSMAHrAwbkGOLxOeDx8/tb+dOmendeBqkkDZ ieD8GayYjH0sb0/1H7KbridiCWa01JtL9eb11ox3sQ8j4zIipLtZZaFy3SZHNB9rkR RIgRwDYwp0jpwcFYar1ima3HLNARvxAEv11BDw/T+2AToUFlgU6JupO+Dbm5fN+CRK zBAoP7A57auTr3bwrq6C3F2/udTLN6gxgnvtghKzPjKhZlVuUFmOIhmwpq0aI+ewnt qYKfgTpAJA5AA== From: guoren@kernel.org To: guoren@kernel.org, anup.patel@wdc.com, palmerdabbelt@google.com, arnd@arndb.de Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-sunxi@lists.linux.dev, Guo Ren Subject: [PATCH V2 1/2] riscv: Cleanup unused functions Date: Sun, 30 May 2021 04:53:27 +0000 Message-Id: <1622350408-44875-2-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1622350408-44875-1-git-send-email-guoren@kernel.org> References: <1622350408-44875-1-git-send-email-guoren@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren These functions haven't been used, so just remove them. The patch has been tested with riscv. Signed-off-by: Guo Ren Reviewed-by: Christoph Hellwig Reviewed-by: Anup Patel Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- arch/riscv/include/asm/page.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/riscv/include/asm/page.h b/arch/riscv/include/asm/page.h index 6a7761c..a1b888f 100644 --- a/arch/riscv/include/asm/page.h +++ b/arch/riscv/include/asm/page.h @@ -37,16 +37,6 @@ #ifndef __ASSEMBLY__ -#define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1))) -#define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1))) - -/* align addr on a size boundary - adjust address up/down if needed */ -#define _ALIGN_UP(addr, size) (((addr)+((size)-1))&(~((size)-1))) -#define _ALIGN_DOWN(addr, size) ((addr)&(~((size)-1))) - -/* align addr on a size boundary - adjust address up if needed */ -#define _ALIGN(addr, size) _ALIGN_UP(addr, size) - #define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE) #define copy_page(to, from) memcpy((to), (from), PAGE_SIZE) -- 2.7.4