Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1211070ybh; Thu, 16 Jul 2020 06:21:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5G0o1ThPsdmtX88eaFugLNwYqpRVldVfwLZYeUJbaqTK8TfgHJgk/JH4dfXCe9Ztp/2pT X-Received: by 2002:a17:906:71c6:: with SMTP id i6mr3885053ejk.103.1594905659835; Thu, 16 Jul 2020 06:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594905659; cv=none; d=google.com; s=arc-20160816; b=zjyTrsZ2/5DKZxc1+k5W81O5EWZfiwokERULV4pTgCHNomw4tYDmA8OU04BaPUJPQj nZNWEgX2sieN2wTXIkHbiP1SYTyjApWfYPL4fHfyG8pkB671GTvRrIzoUL913OawDBzz fvyYjj0Wdd/Ru18GGqnd+9evQv6lsmZ+o/EfFn9J29ARiLmfCws1ps75DsnrreP1JQYt 94Qr/vceUQMNjDln07yuXevuGRm+HwVovZdUQ41wDgabp5ALYnr/VHqO9e/KOmrMeIEu VfNAU4K3dCI83JhFD5c9+aiy7Rjudpmeh+H01O0zrdeFwKk7zpVPyiiLlJIpfevKbDs+ Beiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+Opa04oEqgTBiOKYS1pjpUdtak0oL8WBVStzXqF1+/8=; b=GW5hYAWPdmCF7TXdxll61VjNV7rno8waqaAfPPm6Quyrn+YklTDKY6nrDCWH0hD35K iXx1hKRqyw80FYQA0zWLoHytJhCHTXxrGf88HwOUI+TppjxOe7nwGNS7BtH0ZDIuWBpv 3kSSQQDgM3eTC6JmccYcGQF8RhXcGMQyvKuy043zJoZrbgVScjdI9S3CpViC8zSH3nPk Yfast2QQ361FYxpMXqe97Dp/J/lyb2aOW6qABX+6UbUI0ZRuRRTxLnvOxvptYMq3beZK pFluD2XoThL0CHbbg7FUHkkZ7Xbg5f7ZjuMIosidEPvrO9WtfgbmvKfbZJWoIUGK3sTx ATgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=wTAAXqYW; 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 v13si2744285ejw.696.2020.07.16.06.20.36; Thu, 16 Jul 2020 06:20:59 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=wTAAXqYW; 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 S1728760AbgGPNT5 (ORCPT + 99 others); Thu, 16 Jul 2020 09:19:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728374AbgGPNT5 (ORCPT ); Thu, 16 Jul 2020 09:19:57 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15365C061755 for ; Thu, 16 Jul 2020 06:19:57 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id g75so10269010wme.5 for ; Thu, 16 Jul 2020 06:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Opa04oEqgTBiOKYS1pjpUdtak0oL8WBVStzXqF1+/8=; b=wTAAXqYWiNlP2B6mjWEgbI3KTLl2M0kIkndJjf3MujFAWW6KxBgEHGHnK6nLsvxQUr uNgBkwVHPilPpPR06GmDjPi2JrQ0jdDsCMihlJEk9FBcMg0Krm8g2F14514JnrBaooXY ueu2SQbxihXqtyfVhrolWOPfnc8ouBq15nSh8Yo1YM5S1/Xxu4qMnNFBi/K/eKppxuZs GR6RLTrq5iVnR/rOOo/1PhFSyUv7yUDXRWj0d5d0tRE1eauZk9bDibb/+TZsMU3rb5qF uvBU2KmfSz5ySW/3Gbl2KKGrQVT1eB/mEYz/y/oUWRiKJSR3JD6Phk20cSntOYmLKPoa H6rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+Opa04oEqgTBiOKYS1pjpUdtak0oL8WBVStzXqF1+/8=; b=BBFol5pYipsv1uKeZKVrc0fZD86+HGhfkn/X12eVea9wPvtmwiPGVoiaOECpUlu68X A6nUsmIEEwws0HuwSl42ISIu/BzAiAy7/XOBv2G8WlC3tO0nCGpxeQzUYGrY+seuxPCW xNLeibVS3M0FLo6BvPHCwuHNo9CbzwFU/yly5xpA/kPZxWkJ1UnINaRaztgs1nC5NoOP e2J0aAHO77ZcmYNOooHmhqyvZbU+u/5GrZYuMCJfvTB/fEMzuxMJnolcE8psI/V4G6pq umW2DU0bMvHG/aRdVkJu4dB2cW3WAKBP+ODY9Xk4I6NH3zQJ0YbeAyJx7RlCeYxaDJ+k EYMg== X-Gm-Message-State: AOAM530IuQVKdoWkPLxQP0hpBj8MCn4K2OkS0/VCdu7a1w7QYhFUaThL FqXpyFdb1T5zoAaxgV5xF/of0JsPekgb/3H8ItbdXQ== X-Received: by 2002:a1c:2d91:: with SMTP id t139mr4306095wmt.3.1594905595633; Thu, 16 Jul 2020 06:19:55 -0700 (PDT) MIME-Version: 1.0 References: <628efa24c79a493e39ce6ef13017ae52eaf13388.1594886530.git.zong.li@sifive.com> In-Reply-To: <628efa24c79a493e39ce6ef13017ae52eaf13388.1594886530.git.zong.li@sifive.com> From: Anup Patel Date: Thu, 16 Jul 2020 18:49:42 +0530 Message-ID: Subject: Re: [PATCH v2 1/2] riscv: Fix build warning for mm/init To: Zong Li Cc: Palmer Dabbelt , Paul Walmsley , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 6:35 PM Zong Li wrote: > > Add static keyword for resource_init, this function is only used in this > object file. > > The warning message as follow (with W=1 build): > > arch/riscv/mm/init.c:520:13: > warning: no previous prototype for 'resource_init' [-Wmissing-prototypes] > > Signed-off-by: Zong Li > --- > arch/riscv/mm/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c > index 92002952c621..66f5952f39c0 100644 > --- a/arch/riscv/mm/init.c > +++ b/arch/riscv/mm/init.c > @@ -517,7 +517,7 @@ void mark_rodata_ro(void) > } > #endif > > -void __init resource_init(void) > +static void __init resource_init(void) > { > struct memblock_region *region; > > -- > 2.27.0 > Looks good to me. Reviewed-by: Anup Patel Regards, Anup