Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1202132ybh; Thu, 16 Jul 2020 06:08:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3Od4ejWwlcNNKqEznq0LyvsxmFQQpihSP2iz4P5MPZWFuf6TMYXpIow15UaHgXhKs/a/Q X-Received: by 2002:a17:906:3a17:: with SMTP id z23mr3519099eje.238.1594904902880; Thu, 16 Jul 2020 06:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594904902; cv=none; d=google.com; s=arc-20160816; b=JuVTrHJXjJdWZRJs43VhMh3hSxxDlEHko0zBIDaRnpeiNQFIRRasiMMUKiO9J8NfLm qsVQwa5sv92JQJnHO1vsyzuGzdv2cwAyLN7fHHS3UXKZg5x1Bk74BAsGajNV5us6RUEj yWTqUAfcwcozGRJiuMQmpDNvQe5eMbaKBMnHIGO6HfohQRx7vsSBX0HS5hAMcvrn6Njd jzoti3LdIxN52wbfwMUACSV6TpQS/lXiCTYYj+FvRQ6k8QGMS91qOjh7H6VWj8v7GeAz Yr81MK4GDnIuRy7ipDTXVA1ZvRgtVOUPSf2uLOjwMAA5YQeXWjszDwEs6StdwdDrePrK CaBw== 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=yTCgb6pNfriHa7QdwxnKN0JEx+SnNfgA6oWTF7AfWbo=; b=fxdnw56ErDcrSRAWWcDdgxefLHQoF1scFzMuT/3+IYYpzyKBssHChS11BaknB6IgR+ Fqcewg6mXUYk9udOuzdtPFB0Kh2hvXmkDTiw/0laDuIPVu+vw02wrpIQ8Z01NVQLRTVt fNaaWV6UStzrtTV/wglAXKtDP6Ez+dwrWbGJSsl/7OyEAuDiI1xn92MogsFZfXxabo6V cPRuwA6infVIS+fSSjyL7emmxkkk5PTCIvZqJ0ndX04x/LfMxOUDPvlABYuqOkW6pnjc 7SDFGewJY7vBKAWexUehKSTsk+wRGNXlK0YBdex/fzflWgdki8PiWIjy/5qU/3YHdXx3 Bjaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="cCv/Msoh"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si3205832ejt.197.2020.07.16.06.07.58; Thu, 16 Jul 2020 06:08:22 -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=@gmail.com header.s=20161025 header.b="cCv/Msoh"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728225AbgGPNHb (ORCPT + 99 others); Thu, 16 Jul 2020 09:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726537AbgGPNH3 (ORCPT ); Thu, 16 Jul 2020 09:07:29 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 793C4C061755 for ; Thu, 16 Jul 2020 06:07:29 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id ed14so2647903qvb.2 for ; Thu, 16 Jul 2020 06:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yTCgb6pNfriHa7QdwxnKN0JEx+SnNfgA6oWTF7AfWbo=; b=cCv/Msoh8UW7Bm1Ew8GT4XIMHQ5AJwvGTe8s9LT94fF+PJeTQgsP+v5v1GAmtbExv4 AZSIzhBLiBCorjt2hS6uoOZf3czaI3ZFMgL0smOQJjeSTYT/fXqHwrKG7qIY1e+MVnF1 pdhbZMbDN4UFVQ7ArTXFQ1Wj7wV9UKXSdeZrHyxP6hN+L11P7Ft/kzJocP8n4wn9TRDl UR5G/QfuxcTytcAFVRnxVNxv8I13sJI6+uh+bcHqlhKRRdjngerDzHOHo5qC/55+MmTF Fcw0EL5Pk2ZUydhrgaAjpwPsvCd18e8CY8m0lkfnhfJaYQeKi8qj3zqARNnlmdcy5qDt yW4g== 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=yTCgb6pNfriHa7QdwxnKN0JEx+SnNfgA6oWTF7AfWbo=; b=GmjjPdyfoOi3legAGj2uEckX+NGSO/T+eX4RSpmOEmKRYvkeOI6yQ9bc4nyjsCo93V ST9MZYGm6Bh6J25Grcb6y88wRKMOopeAfHh83KUfwxlStYOyhhsOJGZy1dRCdyLwqjQm rM+xH1IjBcKconT+QtGcGvOPjaGeZqUdalXg/LfTm/aTj63jh8rJyiNpKos2Va7SneE6 K7VzHPM5AaknAIjo/7IgEMHPQ8vzuRoRmxxbSEGT6a8Jbx7qNmT0crAzZRLhwC2OJWzD uwRcNem7KmF2oNRnvDG7v5q++w4uB8duCKb77jMLPLsfcqNC4W3Yz1F6rXN2s20YsNbm 6whQ== X-Gm-Message-State: AOAM533h1SSV7vOjnSvL5pvhqXkNaF1RY5IpzcFAd4NIQZlwUvT3E3gm hRcWxUlXKQC0+Fbbly/Xy4ezjszTTc5S1FYx508= X-Received: by 2002:ad4:4cc3:: with SMTP id i3mr4073553qvz.114.1594904848734; Thu, 16 Jul 2020 06:07:28 -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: Pekka Enberg Date: Thu, 16 Jul 2020 16:07:12 +0300 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 , LKML 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 4:06 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 Reviewed-by: Pekka Enberg - Pekka