From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (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 BB99F72 for ; Sun, 30 May 2021 04:54:22 +0000 (UTC) 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> X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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