Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5412369pxj; Wed, 23 Jun 2021 00:14:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuSJrIaz76XW+hSdT3raza++QIcfWqQbC75LI/nsRvw0heSbWRleA2VfBlUz5zlfFkV5/4 X-Received: by 2002:a05:6602:21d2:: with SMTP id c18mr6097589ioc.7.1624432440953; Wed, 23 Jun 2021 00:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624432440; cv=none; d=google.com; s=arc-20160816; b=mDOGWukXKyhdPkpx5RWTiw9OXjsCpMcvM6UScKO4rAbXoXH9TmS4eE3MNsvlh68kFk ltxja7aa2DN3hqBZTBTu2rFUcrJIaqbKzlB0I2Ns4RuL3fNGFGbUEsjcVyNjztf64Eig med3YWW8QuGBoznKuYtSYY9WM9scwadxchxAI4uSO7y8x+Kk4bvdcsW2gch+HJ4+1B6A oFewjvGnoUNvfnwGDNDPAjx454N5GuzPtC+EJCK4EGgFuq4ypxlgItuUobtKBDlrwAqb ubacGinZmIw8+sCp9Y4J4Ps5JF+umopj44P+smSyRkrykDqZzSZs/K54mMi5XjI4780d AgFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LjIbOik+tUzV2FAD2na1696gFXMGb7R+P+hDuHHFZOI=; b=sFczXShLyNUUa8F68SFwmJMIe1n0yvfBEsbju/Ty1PGYwn7L/i0s2p0CBioC03OksA JmsfozMw/aJHwxEJeERsOJbWng9SqTpX3qSqCWvm39jGhetRfglyd5o6B/5jLUqjL4jg 9UPV9IpblcSGCxsq9EC4XX2eIk92hcai6tDBk4QO9wqhj7EcqppBmBQQcJ5H1guTarB/ ZhhMnxmGFcWBsAcAOADfh7yXB8/jFF8YXdkcxkoQv8ZWXIsZvRCfJjTq8kIsTP2Ui4ov 8z88USzml3N5G2ddbQEHlY+lXo3zs7glewbhdy1CBcR+6Rsra2xG4ZP3KIoScvSKMZMx LSsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JAZPOKEM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si20285108ilu.78.2021.06.23.00.13.48; Wed, 23 Jun 2021 00:14:00 -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=@infradead.org header.s=casper.20170209 header.b=JAZPOKEM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229922AbhFWHP3 (ORCPT + 99 others); Wed, 23 Jun 2021 03:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhFWHP3 (ORCPT ); Wed, 23 Jun 2021 03:15:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E1BBC061574 for ; Wed, 23 Jun 2021 00:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LjIbOik+tUzV2FAD2na1696gFXMGb7R+P+hDuHHFZOI=; b=JAZPOKEMwDPIg03f1aYgme25zA g9aQTjfMe07QbFC3mfhnrgbQlD/YUrJ38nUhvqx5RZQxUNLxFHUX1VD+YHbDEI0M0iMNJtuydIwqd GLisIytMEGBdipVxvGUj6Z3CqozBv8W5rX0fijltGRJHwMb2GP6sLaM35qj6d/18pBVi2cfV28tzQ s/U/cWaCk5fLB5Sn7Y+3ED2asMw91BZ7E5e5uQYkunpOzgmm8U1MHSifaCXFKH7TZnx6XliHz9zr+ Qu4gM+hHyUyyLbQzr1Zg38NzDeSpz2B/XnurpGeEzZ32ijQG1BahdQRVJl5J+QpMb25u91sTI5oSH 5kjUycFg==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvx3B-00F8z9-5R; Wed, 23 Jun 2021 07:12:02 +0000 Date: Wed, 23 Jun 2021 08:11:53 +0100 From: Christoph Hellwig To: Jisheng Zhang Cc: Alexandre Ghiti , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Christoph Hellwig , Zong Li , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 1/2] riscv: Introduce set_kernel_memory helper Message-ID: References: <20210622082134.2404162-1-alex@ghiti.fr> <20210622082134.2404162-2-alex@ghiti.fr> <20210622225304.53d94c0b@xhacker> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210622225304.53d94c0b@xhacker> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 10:53:04PM +0800, Jisheng Zhang wrote: > > > > +__always_inline int set_kernel_memory(char *startp, char *endp, > > If __always_inline, can it be moved to set_memory.h? Yes, __always_inline pretty much only makes sense as "static __always_inline" anyway.