From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C79FC4743C for ; Wed, 23 Jun 2021 07:13:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3098361164 for ; Wed, 23 Jun 2021 07:13:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbhFWHPa (ORCPT ); Wed, 23 Jun 2021 03:15:30 -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.