Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1532994pxj; Sat, 29 May 2021 17:32:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3I/CdTjUnX0aUIcfdoFaq6JKdlxpQCU7qC8UUh6txXAf3y06UEjT0pcm8bav8b1ZgncHq X-Received: by 2002:a17:906:498b:: with SMTP id p11mr16200769eju.295.1622334738662; Sat, 29 May 2021 17:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622334738; cv=none; d=google.com; s=arc-20160816; b=a8fEj0SdxwyWOurpU3rt4nhga7JADIPvMXcFRcEqAhn51aI0ROLMWzznWYYPMX0553 /IncEZUJzLteklgDxFuZCSJJmnnMgHk3Or1skSlLcgzlAwaP5/TJArbb76/evP8vUFmr lLR+i1kCCpeDJJkQYwzzvuZsGu0tgApjrOLpxtWUKSWHR9BeJmra194osiyPDQx9Lf5Y 70PWOmeoNUv61HNPjWhnKPxYX+LM7/H07ELuYFxXVxroE7lWtOiw2OphlRjyqw9boDEF X447YZt+bgKlokGfRx1zhHX4T5l2fz/NfwbVh9iF7JoPAaNvWI8ivmPeoZAvxEvV5LpE ll9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zb23vRvxaHmJWjSIPIsMt9/6LNcLagp+8VKrbNm3CMg=; b=yOpGlmgtUs74h5U763nCOD8IoWc4qPogZXDLj/G4GdVqqzW1zBNxZlBQ6/rGlijy4k iMU3LJrvK//uVKpZUirVwueQw+8qcV9KSs5WtCcrt2/8YW2daBXJ1Vh4r8XyFPsuZPqP WcqSsyT6TbcL3tqJq88S2OxBDEuj2XXg39Vm0vgk7s4xzWsea8Ol8Ss+4O1Qq8Q9YUb+ jvqH3gUrMmYtm0Is99SkprZGlq81Gip94LP/CfxAwmcz1j6AD7F/mzGojtVg6uRqrUIk QLI2eE2Ne6Vw1Cmg2YVRlmGbAJeRgiJoIn2v5vCOCeyABU2PkkvGuILTVUcFPQnFnOzi YIXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kHRhk9G+; 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 m13si1810018edq.552.2021.05.29.17.31.55; Sat, 29 May 2021 17:32:18 -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=kHRhk9G+; 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 S229603AbhE3A2K (ORCPT + 99 others); Sat, 29 May 2021 20:28:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:54838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbhE3A2K (ORCPT ); Sat, 29 May 2021 20:28:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EAF7761132; Sun, 30 May 2021 00:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622334393; bh=WO4AvDQOErMivEJBVOiXhGXr5BkKrXIWDEGphngSgbo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kHRhk9G+wUoeLpEV9DQ/UiT1VaYwzO7dFTkRq4nNj8F11uSAi0N7BXIPHj4mKaW+g jOPu8D3jOx2k6Xm6vAVks94uG25qw67scVZt1N73qS0f4DYSIlU2iP7Ji2ynxzD85w cPp/kQWYDNmms3WPPc4UobJGQsiEImwR2aI1kA6/3r3S2GUdQ4JtvXMz65p+82B4kX SBjXbdMzHj0sz0lvLAon1rY+Xk3uxM02qUAHlP0GQtw3w28MK4Qw7j4QZWBXGY/kfX ccuJ/qaefyj6e56SP2sH4jy/LpV6Ym358BqbrQxyxcqnj7Zm5JBv9/J5NZCp8QZnHv AtP/6kehfDx2A== Received: by mail-lj1-f171.google.com with SMTP id a4so10075348ljd.5; Sat, 29 May 2021 17:26:32 -0700 (PDT) X-Gm-Message-State: AOAM53110UCqsO9hirfX6G1tP2i/TXm12OQwRwioZfm5P7i7qpu0Sds1 DiZ1IzCBdQXSx4Jee0DvVGtzLFPQwMJma8dwG/w= X-Received: by 2002:a05:651c:2d0:: with SMTP id f16mr3853539ljo.18.1622334391183; Sat, 29 May 2021 17:26:31 -0700 (PDT) MIME-Version: 1.0 References: <1621945234-37878-1-git-send-email-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Sun, 30 May 2021 08:26:20 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arch: Cleanup unused functions To: Palmer Dabbelt Cc: Anup Patel , Arnd Bergmann , Christoph Hellwig , linux-riscv , Linux Kernel Mailing List , linux-arch , linux-sunxi@lists.linux.dev, Guo Ren , Michal Simek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 30, 2021 at 7:08 AM Palmer Dabbelt wrote: > > On Tue, 25 May 2021 05:20:34 PDT (-0700), guoren@kernel.org wrote: > > 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) > > Reviewed-by: Palmer Dabbelt > Acked-by: Palmer Dabbelt > > It's generally easier if you split this sort of stuff up, as it'll be > easier to merge if we don't have to coordinate between the trees. I'm > happy to take this, but I'd prefer an Ack from one of the microblaze > folks first. Em ... I'll separate it. Thx for reply. -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/