Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4454762pxj; Tue, 25 May 2021 08:21:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynAw/wG1l8Tt/KTHXRXyYn4kFY4VrzMsijTf/XhHQMfhd8fU7Z4C5jc9cfafV+IQqOlsbf X-Received: by 2002:a17:906:a255:: with SMTP id bi21mr13368640ejb.323.1621956096487; Tue, 25 May 2021 08:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621956096; cv=none; d=google.com; s=arc-20160816; b=KZEJXTF1sf1prZzNIyWcJ1wCJOxtDZNJxs+UB2TBRGVDbeWp2/NN+Pux5pQPo+7vDL nDtYbXZ2akkJsg0VJSPh+W01Vy2Q8jrZukf3vQnqd7mn3frj32Kj3aCMHhNSqGRVDZxR Ns00GTGOAtIoYhNUYUxtbXNv0iPEfYR++++9gfDrHWgB/AmbVrXq2/o0YddOFvYJIkR0 7S/ycDu5Xy3hN1A0/H3dgNks4oOKLzGoDFPjayIChTYRO7pzyCmzy1AdXZTC9+paJD0A 1xVl+VY1cC/hbcAW9ZYnilwt9+EzHZEBA82W4eqCDwlXLngJ5JlAX4hwHWGQgYQXpCck coAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=oFohYTWEtPOZsHFzhNm7ldv9aJ3zpkvXSXn9kscTikQ=; b=i3DRaTQDpGvjpEmkfVU7Fzi6nIPmrjIZwNDXv0gLEmEorxi3WZ7r8NH9c3jbsP+5tf Yde28hEHp0agv/3WrKy6uzBbaT9/ZbKFfMIa7vYD0ysHmH1b3Q7h15qjOmNhBZ8Vb1cG OmQrw2vd6wn2TKu6KRkyM63xkvVmO4BPrAc5KFTTUI/cqcInu/gZOU97/i+QtxXOy+E4 tzLy6PHNjwOjmMThPpcYS5WsF5CiSPfbe7b5jPkjduVZJapXKezxTFdNSroAAnDGPyg0 Mpnn+rKHIAFgGm1uOaWEfveYLkYzaND/9elVsLeSBiHmxm8iol77xe2px20uVHYQ89Js I90A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dFS/jLpi"; 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 s20si16463811eja.135.2021.05.25.08.21.13; Tue, 25 May 2021 08:21:36 -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="dFS/jLpi"; 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 S232544AbhEYMXg (ORCPT + 99 others); Tue, 25 May 2021 08:23:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:35884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232588AbhEYMWz (ORCPT ); Tue, 25 May 2021 08:22:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D25EF613F5; Tue, 25 May 2021 12:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621945286; bh=kkOFBK36MRxl8q4h1ABFoSf/N6xzgxGjK2IhPoS7xos=; h=From:To:Cc:Subject:Date:From; b=dFS/jLpi2jnANmVgkpVSLL+EL4f1yLHSxpzak6UnyM6v4A/aNcCTvjWpJtpJSiNZR GKgB4LEiLR6US9khaJ8z4aYMx2PXMXvxZSCq/GEN/oE4CcfNqGisIHRrWELvNfTZKm xh17eSoJqSi1W5C5TYN8kN0+g4VsFzH1I87ILpc+nbjPTYbytl9zn/38VCnrOXUNWE hgjXkE1BHNqtaT0hwcy5cWVWAcy5rwk4FQ/MfJ/Z3Ms8EGP6F3mlE5IikT2DtjAEtQ ai3oQkuUkJp6v6Xmuwn2lLFs8y9UIAn0TiVRH5IkEVg6u8dgiaRoqTLzBUxoVCd9zb L03U1dSD8pRpw== From: guoren@kernel.org To: guoren@kernel.org, anup.patel@wdc.com, palmerdabbelt@google.com, arnd@arndb.de, hch@lst.de Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-sunxi@lists.linux.dev, Guo Ren , Michal Simek Subject: [PATCH] arch: Cleanup unused functions Date: Tue, 25 May 2021 12:20:34 +0000 Message-Id: <1621945234-37878-1-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 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, but I only use grep to check the microblaze's. Signed-off-by: Guo Ren Cc: Arnd Bergmann Cc: Michal Simek Cc: Christoph Hellwig --- arch/microblaze/include/asm/page.h | 3 --- arch/riscv/include/asm/page.h | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h index bf681f2..ce55097 100644 --- a/arch/microblaze/include/asm/page.h +++ b/arch/microblaze/include/asm/page.h @@ -35,9 +35,6 @@ #define ARCH_SLAB_MINALIGN L1_CACHE_BYTES -#define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1))) -#define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1))) - /* * PAGE_OFFSET -- the first address of the first page of memory. With MMU * it is set to the kernel start address (aligned on a page boundary). 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