From patchwork Thu Mar 22 20:20:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889645 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 406fQb64hnz9s1B for ; Fri, 23 Mar 2018 08:08:07 +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="P5KLA3Yl"; 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 406fQb4NZFzF1qT for ; Fri, 23 Mar 2018 08:08:07 +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="P5KLA3Yl"; 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:c0c::242; helo=mail-wr0-x242.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="P5KLA3Yl"; dkim-atps=neutral Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (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 406dNQ2TYMzF20B for ; Fri, 23 Mar 2018 07:21:10 +1100 (AEDT) Received: by mail-wr0-x242.google.com with SMTP id c24so9993504wrc.6 for ; Thu, 22 Mar 2018 13:21:10 -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=x/CkMCf4+eBtBx9tSq1CTEOF3fr3cBgRvpEoFqSM2bo=; b=P5KLA3YlLiXQQ1iUQR0QB5M9FjBYtQDX8ILHiRo8t1rtXj6ROIUuSSckpVscj98kgF yk8B/pxfwbMpnZRlYKFQjGmETzgDM1QMNBsxVCkkY1Bk3wOuomdE9UWj68LqHqhtHLh4 CZygBPhfJGSda5JNSC6mzdcTdWStBVCY8GqmdaeTxSO6ViGiHKwqt1FvNgEnRQ/gtxVb zqVdyafUWtStldmaNxaKSnUabPa2AXFAYTfAOjqvAC3+j+86O86E9HzsEmTO+pQ4DbIy NsbRW2xwnWdGnfTjDYKw3BtXdDNwKqjS6Zyb1p8PS0OLWuiK2hthuGR/xpvEpbBor80k V3CA== 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=x/CkMCf4+eBtBx9tSq1CTEOF3fr3cBgRvpEoFqSM2bo=; b=I13RQFll0WTU7Y1EyBNTymWygJ6pxvetR7zM/eHFPcK416SKtvRVd+iuljXsQA+8nh WuWpOdb1CSdh6Lc1C+JAL/92VsRAxiC88k/VZyuPr+NcVoFLFJwuXTzgdFe0zMfOYqLN wsZrPeIeDh8lYh7Vyv3O0bIko8rrgTxLsl3aWRpH72CpIzcMKssQRf81kh6iO9J+ZIOH Oolmy10hl71hESrxJvsqb4Kg05lMQad6uyhdk4iioEqscEI+6oyO6eYWV/MdYO/BcyX5 jsBA8fPNJrcRg8UIyizLUc4r7iLjoNf0BxXXfa+IzhydAEOs9/AKtIWZwP1CStAPEoIe WqkA== X-Gm-Message-State: AElRT7FrYTCienLzyG3F8X2+mBoim4S5F7p7UAwKCRukCdZK+k7+BjQc UwnB1kaBoxsAjscpcY1VuRY= X-Google-Smtp-Source: AG47ELsqNLgt8zVhcOR4vAi9XfGK+MYe/lLLe5JwGjfkcfx7Xd9hOZVeCux3LyKdux/MxwHWs6Qxug== X-Received: by 10.223.133.6 with SMTP id 6mr17148721wrh.53.1521750067229; Thu, 22 Mar 2018 13:21:07 -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 m129sm1765325wma.16.2018.03.22.13.21.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:21:06 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id AED2210C03A5; Thu, 22 Mar 2018 21:21:05 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 16/19] powerpc/powermac: Add missing include of header pmac.h Date: Thu, 22 Mar 2018 21:20:02 +0100 Message-Id: <20180322202007.23088-17-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" The header `pmac.h` was not included, leading to the following warnings, treated as error with W=1: arch/powerpc/platforms/powermac/time.c:69:13: error: no previous prototype for ‘pmac_time_init’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:207:15: error: no previous prototype for ‘pmac_get_boot_time’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:222:6: error: no previous prototype for ‘pmac_get_rtc_time’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:240:5: error: no previous prototype for ‘pmac_set_rtc_time’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:259:12: error: no previous prototype for ‘via_calibrate_decr’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/time.c:311:13: error: no previous prototype for ‘pmac_calibrate_decr’ [-Werror=missing-prototypes] The function `via_calibrate_decr` was made static to silence a warning. Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/powermac/time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powermac/time.c b/arch/powerpc/platforms/powermac/time.c index 274af6fa388e..5cc6fa40fcc4 100644 --- a/arch/powerpc/platforms/powermac/time.c +++ b/arch/powerpc/platforms/powermac/time.c @@ -34,6 +34,8 @@ #include #include +#include "pmac.h" + #undef DEBUG #ifdef DEBUG @@ -256,7 +258,7 @@ int pmac_set_rtc_time(struct rtc_time *tm) * Calibrate the decrementer register using VIA timer 1. * This is used both on powermacs and CHRP machines. */ -int __init via_calibrate_decr(void) +static int __init via_calibrate_decr(void) { struct device_node *vias; volatile unsigned char __iomem *via;