Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1533791pxj; Sat, 29 May 2021 17:34:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNDGy1HgMSUO4FKyzApu4lgyVeFaeQ2Ny0VcTMDdf/FTLbffvp1ALqH00q0Thw1Rei1nNu X-Received: by 2002:aa7:c9cf:: with SMTP id i15mr17452763edt.118.1622334854796; Sat, 29 May 2021 17:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622334854; cv=none; d=google.com; s=arc-20160816; b=cLCKoE31nlszodOxTXa7JbPrbTNlaVvW51Xm/HUgWtYpeRSOuNxJTtVFA18yoxvQWm aVJA4c4jziS7bTIO+rF07tWgBvQcp2cLe/GuVhQBXi+U1bkkMiE8yiDZ6Ydv9pVReVnM 7ts4uw9cwUIZFRVIY3O8mykPJn9nIGohEZgf44//o/pap4CMTmjprfR3OkWZIaLFvUVM eKLd+S1AhGImqA4T1aJVzB9vXVGEUWaiT/TS3RZQKjPH7BttkJfGsyTxCuClDgAQSUHI lSTtWwNOJY75vL0NdHM0M18X9RCXN0QXAaT7O1ZWE5uD2x/F+RK9hkphb2CIORo/2Kc8 PW/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=lUMGhkNpzUYJl7mNHm/MIb9alcAEBQViZqKnCFlPkiQ=; b=fStrJcxITQ4nRTAW0/5ymHgLkimdrl1UASHh4QuxBN7ZXRzyC9tInk3KuD2SA2Fbcf uqIuDuH6eg8Eaxh0VUMwo7NGz+dC4w2M5jf9QBXz6a+s1NycsfDbZjEzFo5GfeLq2+th XdYIQKrs0VYHPVv5t9hGfesgoUBO/NrLdKqcm9IlQMfzDwEyLnnvI1+rObmvn8yKtpHi bBWdySnjKoociLCaw+jl7GZkf6mwp66QApnpyhhg1Njj0LNGqbiCS3B0FMulTSYeqQAP z+DsPiRvrgiSas2vYVehK57QtKv9yvsazJCQ13jGLbiPlJebFs4hC7RIg+RcfD3hOPo9 liEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IzBDDXAv; 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=REJECT sp=REJECT dis=NONE) header.from=google.com 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.33.52; Sat, 29 May 2021 17:34:14 -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=@google.com header.s=20161025 header.b=IzBDDXAv; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229625AbhE3Acg (ORCPT + 99 others); Sat, 29 May 2021 20:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhE3Acf (ORCPT ); Sat, 29 May 2021 20:32:35 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7104C06174A for ; Sat, 29 May 2021 17:30:57 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id lx17-20020a17090b4b11b029015f3b32b8dbso6657425pjb.0 for ; Sat, 29 May 2021 17:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=lUMGhkNpzUYJl7mNHm/MIb9alcAEBQViZqKnCFlPkiQ=; b=IzBDDXAvaOLrqEa29uJVLU4OPt+UZpVx3SAwSF/lYpM99VEml2Jygyadpibil7SOpC ub135CdmEB3N6uDJOho5LxpKnKBmkfc/y4lwV9uMmRI9fPMl5pXy8XCqPAIAvq01vaDz /uYn0usaKGewAtoas5Equmd4zE8er4CS4amBxn6G4dtgtNJ1LjdMLwpNbrq8tiqAmi83 Jv7N33mlpPMHfwpBtMYcrF1Sp8BhdyY0/i0dDfUed/tjzBivauNVZbPv1Iv+QuB9MI3P KIclbaOB96QipZnVQ3GkT+OZpx5VmVbi2F3MPuCAK6caVWDcVx2JDLgi0zkX/IFYx9Sj ehMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=lUMGhkNpzUYJl7mNHm/MIb9alcAEBQViZqKnCFlPkiQ=; b=FgCtEG2cx8uzM8Pbk1FYq9KsBOHl8z144xWq2oDM5QlNrGmow1a9TGeoIbP4gtny3B lJcVkqhTeSSd9K9WwGVWaoAuRh+mUAUQMmaJY64+mk0yEZkd5t5z69pjUKOBWEhVn1P+ rT0TT3bC7C4QbIOJDWXZZ1vdAygG3eIMqqZERs3Q0O36KBM/LaiN0YMva4a/tdk/WfSc XFMjth56zcLmo9HGY+9oMZDANw+cnPISRi7ieYoxB5PUvX6Bmslw9mDAsVPdDKjlzzHg Pqzf4Tt/9j6Uab5Ean907QxPHdC95pRtUHM8tcBhBfuLVlKELar56wCtnfStmFvuNx18 b4PA== X-Gm-Message-State: AOAM533GPc8WgrRl6WlwP5ARSva8e4MmdTHPYyQbBXoMM0SRPqXb55gS KTQq9RcFtP8s3zvfCKMgkPETir2/kMezpFPV X-Received: by 2002:a17:90b:3e89:: with SMTP id rj9mr314786pjb.114.1622334657147; Sat, 29 May 2021 17:30:57 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id 13sm7583786pfz.91.2021.05.29.17.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 May 2021 17:30:56 -0700 (PDT) Date: Sat, 29 May 2021 17:30:56 -0700 (PDT) X-Google-Original-Date: Sat, 29 May 2021 17:30:41 PDT (-0700) Subject: Re: [PATCH] arch: Cleanup unused functions In-Reply-To: CC: Anup Patel , Arnd Bergmann , Christoph Hellwig , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-sunxi@lists.linux.dev, guoren@linux.alibaba.com, monstr@monstr.eu From: Palmer Dabbelt To: guoren@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 29 May 2021 17:26:20 PDT (-0700), guoren@kernel.org wrote: > 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. Thanks, I'll drop this and expect a new one to show up.