Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1201071ybh; Thu, 16 Jul 2020 06:07:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE6NcShllI9wsaE+9bpYce7vV5ACIz0G6X621Np03bOq5yZHHNI48sgUh0FHbf+r1g459Y X-Received: by 2002:a17:906:6d49:: with SMTP id a9mr3478965ejt.435.1594904819952; Thu, 16 Jul 2020 06:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594904819; cv=none; d=google.com; s=arc-20160816; b=BD8kT600p+kZRUlxe+UOedt33+9pNEAxPn7urdy19GxOcCLg5j173XYWar7Srnl5z9 PznJfaTRfIWSoERuh2S5Hm0A4Y8iiCBhUxYB0ZaQv6wUfgaaoSH+mktdcvqN4nlQQFqS 9HUmtYMLZj9BfbByI4lD/0dCW6BK7zu9p0es2skyFrbl0FYAYJh5y/XvXLOVh8mXWa7o 4p93sHbS6L2ANU4+0fMQRvs5Ov5fJlQoKvPpFcNB6l16HQSdW9PLujnzLKxzpsvVEXyX vSCOb4drXcD9tiQ1wigoG65FDa8GVnWNhtyPrzhpxZSX70WobvuoTtmYsZn8xQP+Y+tN Qpsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M9lp+Kxwx0lmE4Cwlw3/F+vQGoahFcCHs4bRN+684nE=; b=imBxBAOsNrZwTdcdAjcbvKQW3Bl7xMcsvI/JGtPxMMYnZKYRaD4x6KNnKsyXaoVHkJ n+GZdDR4W650KtCxhJLZp82x2eYohvSPgQJ9BlnrY3voh792gxOvBw9Xv2UH6Hx7dTtg TiwSujrg6ideNgoiPnRgeSj2Jq/35NOarFYkjp7H0nSE6nHVKfY7O7ytd0f2Immpu45i +xV9nUlGmzzFOvZwTapm+i9e8OciRoGded0FuGmiD35CApd0KvHuUQ3YX0+j1jV+Z0tl 92zXEQ74AWG1zoC/wK1KENvYpSsxxg8ObnMhGdWTO7b0NCyk4OyUy2CEIGkK/oLYFsBt eqmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=L4NVGjJ4; 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 p2si3100802edy.558.2020.07.16.06.06.36; Thu, 16 Jul 2020 06:06: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=@sifive.com header.s=google header.b=L4NVGjJ4; 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 S1728768AbgGPNFy (ORCPT + 99 others); Thu, 16 Jul 2020 09:05:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728237AbgGPNFx (ORCPT ); Thu, 16 Jul 2020 09:05:53 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00654C061755 for ; Thu, 16 Jul 2020 06:05:52 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id k27so4829992pgm.2 for ; Thu, 16 Jul 2020 06:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M9lp+Kxwx0lmE4Cwlw3/F+vQGoahFcCHs4bRN+684nE=; b=L4NVGjJ4DvPjs6puIdx8yJNxFpLBd0/It5C6pnxG9k6fFceXEA5VzlWNS11zFIWGwR wpwD33JGixX4HMEy9TgBBwvBMY3xVFzWmNJan3dm/m3akokLW3q5PHfwfqtxhD9QOL7H 4wx20QjtKda8POtSNnsrX5i6o5S+lzGP+04LjZmeYMLPWm+s1iFWqeTqp+n22qgpeAlF qnla2J/k+x59dNPck2pkV0riZCslQAD/Xy82YXmK0uSo+QHX5MwVpSAmAjF0TtEWY8Ho JEUKqcUXcEDqMxMozlVifBJRVG5t8AaqLcHhi7PpbBx7l+HkV+ilzGH8wB36GnxetM0o 3Wxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M9lp+Kxwx0lmE4Cwlw3/F+vQGoahFcCHs4bRN+684nE=; b=feBe5G/XNbzc+HEYwPLpo+JnRne9/T7xQIW3iGz+Z5LRq2zzyJSUhVGlyS4wl/PX+/ azGY4uxUnZ5wvHwPVLUvTfHKn6578tWfJdb7TB9/Lv6sUiV7t8a25gGUX4XvcZh0tMZh r4VPuCrFvgH99ZCbH6gxo59/Xwjm6v3hKXjqOf4DKpFixn3YQdoys8ljY181UkIgMMSN o54cEQ5R1Vn3bEjW3Nd/uwThDr7BmQlfmgmkCiQuSz31nC1Id06c9Lgpg8vC51pSV7kb VK7VNDhpCKEsI4zEYNmVuuzIC6Oja4egFUetNUWNCtqIT3yE52/M+IEbHLMHD5K7WWAO GCrA== X-Gm-Message-State: AOAM533WKjKXPbQ/EQRkgMqAVtI7cmuGhSd3XnBHDuxWt3W/eQ6GMuUj znn4vq+FuvSglNPcuS6VabrZ7Q== X-Received: by 2002:a63:ca0c:: with SMTP id n12mr4323915pgi.216.1594904752552; Thu, 16 Jul 2020 06:05:52 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id c134sm4770203pfc.115.2020.07.16.06.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 06:05:51 -0700 (PDT) From: Zong Li To: palmer@dabbelt.com, paul.walmsley@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Zong Li Subject: [PATCH v2 1/2] riscv: Fix build warning for mm/init Date: Thu, 16 Jul 2020 21:05:45 +0800 Message-Id: <628efa24c79a493e39ce6ef13017ae52eaf13388.1594886530.git.zong.li@sifive.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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