From patchwork Thu Mar 22 20:19:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889639 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 406f2w1Q1Xz9s0y for ; Fri, 23 Mar 2018 07:51:04 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PuZGVio3"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 406f2w025rzDqmx for ; Fri, 23 Mar 2018 07:51:04 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PuZGVio3"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c09::243; helo=mail-wm0-x243.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PuZGVio3"; dkim-atps=neutral Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 406dNB4PR3zF20B for ; Fri, 23 Mar 2018 07:20:58 +1100 (AEDT) Received: by mail-wm0-x243.google.com with SMTP id l9so18344116wmh.2 for ; Thu, 22 Mar 2018 13:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eFJKA2lD+uvj1rqp6SKjIBGsUa7LbtqUfJFlC/0dWlM=; b=PuZGVio3Le2K9T70NORz3ZFvDD0PTX1GuXz87w9BtKvklfk9LDXOLEvtD5Whax755R VOItOob0a4eJEPDAeLtELe2Rds62LVa3Xu5L+fvODM05af5Nn0c08MV/lVdSNbUPpCfV b7sdfROQ858Lzn+QpRdeGfgcyt/DS+QTlEqdSLY6YAUiY2omiCIBSWcdC73ki/ADomWX w03jffKiy1ifP6UsOFPRb0Hx/B04I0LkJeKFI3Tl9NdJnDFqAC7EFuVHq3qy1W0a59wJ pm6uwz2e5FdxkK2nmGAZcZE1kCY/oVQTCitqHWRl2NnL1IFXgKhWWH4ao95QcSxZafi7 MzFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=eFJKA2lD+uvj1rqp6SKjIBGsUa7LbtqUfJFlC/0dWlM=; b=QHXZf312o0d8ibfS7tV3gX8OvSqi99R9CmQvurTn7rxHZrsOfFySm+f7Td1GpCXkHY 9p8mX2zot5tqp9f6XJo4Y5exjlNmRb5w+rpXUjALgl5L6YFBv9AqCF99ZXGv8AyVp1ZC 59QbIcIr1g01FYBRFkGXAvh5jkllFOfvZt4O2OeuUogt8L1F48JvGzU3YuPmKmJ9Jb5+ qkwCiHG7UpV7QLzJFQ5cV5atGJcQs2+5Avn0Pm42BUfuBhyjI21VXYkWOA7uaGVp6wyn cYVd3qyfKf0HqWNYyIwu5oRelpOi2F+78Tz+A4YGk2NG14f48nAkknR5LnNcSnVqjPIy GDNw== X-Gm-Message-State: AElRT7FANyM/kgCpw0qPk3GCIu34wURNLkeahg6c4IY0KrRr807jBFis rD9+RuyK25rFlX8D1i5qHYI= X-Google-Smtp-Source: AG47ELsj3CHJafAp7xD2py9NOvI3yql2J1v81knKQbLBx2TkEN65L1DQtiW3b0y8p2FjUL0nfO+DwQ== X-Received: by 10.28.230.11 with SMTP id d11mr2762059wmh.129.1521750055782; Thu, 22 Mar 2018 13:20:55 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id r13sm884726wre.63.2018.03.22.13.20.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:55 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 4864310C03A5; Thu, 22 Mar 2018 21:20:54 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 10/19] powerpc/chrp/time: Make some functions static, add missing header include Date: Thu, 22 Mar 2018 21:19:56 +0100 Message-Id: <20180322202007.23088-11-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180322202007.23088-1-malat@debian.org> References: <20180322202007.23088-1-malat@debian.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Add a missing include . These functions can all be static, make it so. Fix warnings treated as errors with W=1: arch/powerpc/platforms/chrp/time.c:41:13: error: no previous prototype for ‘chrp_time_init’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/time.c:66:5: error: no previous prototype for ‘chrp_cmos_clock_read’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/time.c:74:6: error: no previous prototype for ‘chrp_cmos_clock_write’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/time.c:86:5: error: no previous prototype for ‘chrp_set_rtc_time’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/time.c:130:6: error: no previous prototype for ‘chrp_get_rtc_time’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/chrp/time.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/chrp/time.c b/arch/powerpc/platforms/chrp/time.c index 03d115aaa191..acde7bbe0716 100644 --- a/arch/powerpc/platforms/chrp/time.c +++ b/arch/powerpc/platforms/chrp/time.c @@ -28,6 +28,8 @@ #include #include +#include + extern spinlock_t rtc_lock; #define NVRAM_AS0 0x74 @@ -63,7 +65,7 @@ long __init chrp_time_init(void) return 0; } -int chrp_cmos_clock_read(int addr) +static int chrp_cmos_clock_read(int addr) { if (nvram_as1 != 0) outb(addr>>8, nvram_as1); @@ -71,7 +73,7 @@ int chrp_cmos_clock_read(int addr) return (inb(nvram_data)); } -void chrp_cmos_clock_write(unsigned long val, int addr) +static void chrp_cmos_clock_write(unsigned long val, int addr) { if (nvram_as1 != 0) outb(addr>>8, nvram_as1);