Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1200666ybh; Thu, 16 Jul 2020 06:06:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNZB7rZBM0Ax00odtl7mIJYGHjd7RIPFNZ2IynFIBjhO6WqWKRI2ErdBtBjrdZ1pI7WlxV X-Received: by 2002:a17:906:6897:: with SMTP id n23mr3493619ejr.473.1594904789653; Thu, 16 Jul 2020 06:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594904789; cv=none; d=google.com; s=arc-20160816; b=U4JnYkG6ONr4l4yHzIF1f12GAiCXNMEvA2Ax1gwleYo5JhMfEo7RPki3d/V4KySGpF EB8HLhZ+pQbAQze5iHH9QeHPggmIdE8TGrUS3yym2F9bQ1whf2FbqUIYKmgaXVxPzemY 7+hXC915c6yZ5w0aRLvKB8cJKnwa1ZCNuysV70dD5SyK1p4uHD2Ns24qC40kqnJJGNvI FRDIhwtdBvb1tIK3Y81rt1F7myyZ9fRAzp7maKmyB5ssBxO5C7VsifmlgneRt+yfO2YP bxQEL+SNCr3T9cufQflMSnhu1gNVeVJTRUeoTXnl7KLoiB4HCDl4Ak2rz33aryy/cNEr SkDQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=MHe4h5tXPNZHs87zVRoJ5H1MBCfFmTXIJuQzb/CTGuc=; b=BdtLcuedjCyoY7kqQ9U0Rglpz2InWE+uPC4fO1Qyzb5SSSDLIniBR1r+T4gtLTGbU3 lUlrQQC5juW3TaIHlc/fgRwkGtZ3jUAXGIIJ7AMnPI767zrUvtUO9tg7LnnBNWTFyRVx WocFbgwtxEY+JflSHeWkNy3xT9HxYSehgN9TxvkUTj88Bw2xAVrNRtmP9kk3Syxpon72 MelFoZk5bTLpO/FrMNzJMNH5SAOaWrmLuj9Obh9cTssWeMOxr/4a9igSPVC38nrkLIMu Fu2EQybvE8CpjrSrCvjKLgWDBpwdYLIWkQixaqy+YMVDG8ouF9RnhUMaNM6H5xNDxtkH IghQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Z3YpDI8x; 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 y8si3295050edm.463.2020.07.16.06.06.05; Thu, 16 Jul 2020 06:06:29 -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=Z3YpDI8x; 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 S1728470AbgGPNFv (ORCPT + 99 others); Thu, 16 Jul 2020 09:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728237AbgGPNFv (ORCPT ); Thu, 16 Jul 2020 09:05:51 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C173C061755 for ; Thu, 16 Jul 2020 06:05:51 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id u5so3656203pfn.7 for ; Thu, 16 Jul 2020 06:05:51 -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:mime-version :content-transfer-encoding; bh=MHe4h5tXPNZHs87zVRoJ5H1MBCfFmTXIJuQzb/CTGuc=; b=Z3YpDI8xL98JLZJH9yVrpL7//a1wAQAdhcDOchyJO6Kq5DeVT3kv/JUvnoCy3SOGE+ EOdqTWprjhYeoCedKBw7VLDXvMGA79WxdZVhOmXT0I6bctYg7ejnGIs0jm1PgeabTw7H xjm2+kTIUV7P1JrwJoBEPT/l4qnf8EGE3Jm/JDN3WXzAc2yS7ou8nUSulYEM3gKx3TiW tK2burAVyccTy7qFpcCzu8K7t+aVMZeVYDfrCutPhLRbbqqbr4pWFUwyxati0UUgFFuj PWeT2N8xFwypdvPHh34XmwVeBzwhXnIuShzMXZpttyYmzjXSgTVEDs8dtZ9oOWuzIljg Fs+w== 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:mime-version :content-transfer-encoding; bh=MHe4h5tXPNZHs87zVRoJ5H1MBCfFmTXIJuQzb/CTGuc=; b=iTqeGLCEFJM1L9u1x+g5yNfi2N5eu+gCyCxSFbIEFkqDGyaK+7wJtp7dfbyVpgOubl Zdr20znD62DGOkiZM6ixOyNHU2wpNMt/T2WqfGAwhFSxZrCRtY21EYEs0GZXfy3s32WC IVnWeNE2rnaaRpeWp8TjXYHanP3tr9iEhjbFtl9vgGM5geMsykfBdUPpp0+2Ib1LPDFL B0gquipHoBrkPlEI436bAZwlxmDZ3YndRKnWKj7ZMSI5C1SoMJWdUSAIC/R/DAg3gBjI U2jDXdkRyJ/z4bAP3cjObWFcQOeL7S/7n5Hgz6ptQGdjCVnH5hxRMGtmGWmX6KxoNeMV OYtw== X-Gm-Message-State: AOAM530bNCuh8kKpTF9R7jd1Y3m9HOLykmaOCSyviBzKKywFDaV3cGIk eYJo6xwC4t9KpGTFwDjkQZ44kg== X-Received: by 2002:a63:3d01:: with SMTP id k1mr4025292pga.71.1594904750647; Thu, 16 Jul 2020 06:05:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 06:05:49 -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 0/2] Fix some build warnings when W=1 Date: Thu, 16 Jul 2020 21:05:44 +0800 Message-Id: X-Mailer: git-send-email 2.27.0 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 These patches fix some build warnings when W=1, the most of warnings are missing prototype as follows: arch/riscv/mm/init.c:520:13: warning: no previous prototype for 'resource_init' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:130:5: warning: no previous prototype for 'set_memory_ro' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:136:5: warning: no previous prototype for 'set_memory_rw' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:142:5: warning: no previous prototype for 'set_memory_x' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:147:5: warning: no previous prototype for 'set_memory_nx' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:152:5: warning: no previous prototype for 'set_direct_map_invalid_noflush' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:169:5: warning: no previous prototype for 'set_direct_map_default_noflush' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:97:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] Changed in v2: - Modify the patch description Zong Li (2): riscv: Fix build warning for mm/init riscv: Fix build warning for mm/pageattr arch/riscv/mm/init.c | 2 +- arch/riscv/mm/pageattr.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.27.0