Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp990639ybh; Wed, 15 Jul 2020 23:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyd7QRafXGn0Igry3Jpz/MsGs563TgxuDz1WS+b6DjFl7sAN7BHJQzBvm2ruKU5Ut4D8qo X-Received: by 2002:a17:906:2b50:: with SMTP id b16mr2414623ejg.410.1594880348923; Wed, 15 Jul 2020 23:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594880348; cv=none; d=google.com; s=arc-20160816; b=oNROGd4YpV+Lwtnf9mTqTGwfG6/idP6QHj8K+8WX928JOS0f5YU1oIdf7woTk2Xthz /ru4+Obx0ClzZ3Hg6+wa1jA4acKD9LItCsYstvgLYPoZLQO8i5SD5YLyVhhOGGWB761p 3ErL8ZgcHwz3eZTx8v4zQVUXyNQa/i419FVfydp+SAB0TObs3YYuMETcLle+/r4JVYCx peLburC+7AWFIfnkLCaH9ZlUXLygpjgDbQQFoS6N4+AOig2GUn5EH9MH27zHLrQhA9z6 gT6JY+0ZpMF+T3zXHdNK7rkOR/i37axD9Dcbz/mUyvrLbJRbGScigrMye7hfOM3qs7OQ +CgQ== 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=NH8aoxyeroB9r2QCUkJbzC8njwuGOl2txaaxtAHbw8Y=; b=Nrux4db4szZ7t3twXAqixvc+LY4MN8iamHIFkcogNR69wKzCpyyyqMHPVKjrF+l6AD 5ySqH6tRMkPAYs8814LUYdpXnVVoBU094J+mvWY1zG7Nu7OZ4Poa7eqHGtZSnHvNHDFV ru+dJ0Od0uwXsB8yNDswFkYwzjZJZGBhQH2SL5EYh9+QywCXdM+XNMz3tsoJFeGVnh5/ DGqR+kTZoMwxLznQ+VonnYjhrdRvp7vXeazC8Bi+2lZkH5SW6igXgotmEZYEoAn7M2KP Nnu/a00MpT6vD4pj6WmNI6TuCiA3nBFgjfakd4Z7qKRUtYSGqrQnI0zMsvP6ETzD1BvH g0ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=al9N3pH2; 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 m4si2626057ejd.630.2020.07.15.23.18.46; Wed, 15 Jul 2020 23:19:08 -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=al9N3pH2; 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 S1728052AbgGPGPg (ORCPT + 99 others); Thu, 16 Jul 2020 02:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728049AbgGPGPe (ORCPT ); Thu, 16 Jul 2020 02:15:34 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0828FC061755 for ; Wed, 15 Jul 2020 23:15:34 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id 72so3423016ple.0 for ; Wed, 15 Jul 2020 23:15:34 -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=NH8aoxyeroB9r2QCUkJbzC8njwuGOl2txaaxtAHbw8Y=; b=al9N3pH2qFvWwSBc8W/ztrqzKd8bd1pyR+1d1oVXLKb49o52h5gNdw9FNyFPExLy0C Wfftfu7vRuEfQNU83Zw+n370ONmwthk2AIMqzgMjgOiOqKHirErJOc6nY9kgSSI82mDi CXbWLS/zhRxRh1jnPa8B4fG5mMSZWcg3idp+CiJsDQGP50k9FUCZbzbDstw1L9PrxoQh h2zGbKTWGiEh8KdRIeCZ5MziDD8BEzW1O9cPCsnwQIO47UOE+N9qjSKuRnoVhN79zC0F 3jp//s+xZ4R5E/hZX+N65zfCjVDcPySj11v+cR0aoeGksyu2p+F6MMpy3NW5yQdgYP9a HBUA== 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=NH8aoxyeroB9r2QCUkJbzC8njwuGOl2txaaxtAHbw8Y=; b=CsVwpgN3/Z9+6kNLVaVjdM7flgvhyu/JGxWRtTvIksMEds4aaIXunkVRW/8M6cpr6X Bmba60w+TKyqXjKdmIUs1krLnwzNE4Ln4grNzPN0BwXaJKdau4fO8iT0GDHeLnfqV6bQ xc7VJsC4aILOBIP2pw6HK1YG65GbBUsWywMqUCOW/cgu4oiMh97J/FcDs3LG1O8seNGt J0bwnuuzfmluqfhSJI7a6tneCoQXAT4Z0h6wyNDQWA3jPbxcWH6mmYjhmCy13qeEr8+9 q22720UlJSLRMbEB5Q91GeoxhPP5iakHkWBpWhs/FMs6i5I/1xyHGvPpYHIxSrA20Wj3 NcMQ== X-Gm-Message-State: AOAM53077K5n/3EFLfSb6/OnUffUGJx6g5um0UIwuKazFfYN3rQtmOcz pNuPjfsPCVm14NYL5U/5xF1J24X8Ph4= X-Received: by 2002:a17:90a:1acc:: with SMTP id p70mr3456925pjp.210.1594880133577; Wed, 15 Jul 2020 23:15:33 -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 w20sm3669904pfn.44.2020.07.15.23.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 23:15:33 -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 1/2] riscv: Fix build warning for mm/init Date: Thu, 16 Jul 2020 14:15:26 +0800 Message-Id: <0ce0ae99b9af776497bce02f9ee1efb85797ce9f.1594880014.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. 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