From patchwork Thu Mar 22 20:19:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889616 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 406dWW1m6Sz9s0v for ; Fri, 23 Mar 2018 07:27:19 +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="REga2UIH"; 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 406dWV68mszF1rl for ; Fri, 23 Mar 2018 07:27:18 +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="REga2UIH"; 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::242; helo=mail-wm0-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="REga2UIH"; dkim-atps=neutral Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::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 406dMt1XG7zF202 for ; Fri, 23 Mar 2018 07:20:42 +1100 (AEDT) Received: by mail-wm0-x242.google.com with SMTP id 139so18530639wmn.2 for ; Thu, 22 Mar 2018 13:20:41 -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=8gHZatXA1zb/lR1JsN3Hg0dNxbec00ZyJVtL+NH3Yjg=; b=REga2UIHYN19Sa9hPF519Qv4D9Ub1zJlEERuQsHfc3SBQUurrx3A896f+2N+xGKaOo /cM7N+5Q/dg1j7RSfqy4Thth3asmU9peTEe2TAb9Fz85r0tbAkTxvSLQyP7Ie580+9wV MC39MsCKh0qce5X++2/rMd8OQLCwMcfw4sERxlLdKT6MpjN6b9ZRse36mBSIKUN3lsxl N7Ggyf10Z7JTq/JSw0LXTV3lgCuPJ+zsxyaZCHcz9Ex2K9mkgfnztqgdFFG0u+Y16I/O dIQx0r+/a+oAdbS6z0DsV/wS29W4sCQdY81yvTPwk8v88im5bCOpuN/dWTlbsJMVyoUS /mtA== 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=8gHZatXA1zb/lR1JsN3Hg0dNxbec00ZyJVtL+NH3Yjg=; b=bFiG9FaJnc0ooEtKpL31/qqB40p2/o5xXzpgVRghP7XwcIhNL9gMIYqi0OUS8Q1oGQ an+6Lx6gW/rGdIDKdmNs5lm51WLiRCibBNc2ytK9BERTJKFulkyCuMVSfEoq49BByvXS fVVQLcr+nsPEdUcksnZ4exP4/OsoLSIsWvm5FWPTCf9/sc9nqqx6afw/ZapcqD+wszfG VgobwtRWM3zaAqvKyKvgVI0d+438v92KveKUCoge9imuYVM2jeROBd7TRuRbPW06znB2 gL3A03tkoOpdWTeHX7Nsgykx2Rb4C2YZp2uUOGFxXB3fMptnZZ9xfPZR/GOykU2xR9h/ wRGQ== X-Gm-Message-State: AElRT7EgWm0/yYn43FATg5WxPcm4CwWdEm7BhwZ+544ngZa1XbD1JR8B HpybY5/26be4ZjIoGNLwhkc= X-Google-Smtp-Source: AG47ELulvtBC5Vv3jWONzRRgldvopDLW0ng410OWG3IDeWzDPJehZK7NndV0OSxXxzbCo/Sx7OMoAw== X-Received: by 10.28.127.147 with SMTP id a141mr6313994wmd.138.1521750038738; Thu, 22 Mar 2018 13:20:38 -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 x7sm7173142wrd.76.2018.03.22.13.20.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:38 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 26AC910C03A5; Thu, 22 Mar 2018 21:20:37 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 01/19] powerpc/powermac: Mark variable x as unused Date: Thu, 22 Mar 2018 21:19:47 +0100 Message-Id: <20180322202007.23088-2-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" Since the value of x is never intended to be read, declare it with gcc attribute as unused. Fix warning treated as error with W=1: arch/powerpc/platforms/powermac/bootx_init.c:471:21: error: variable ‘x’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/powermac/bootx_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powermac/bootx_init.c b/arch/powerpc/platforms/powermac/bootx_init.c index c3c9bbb3573a..d3ce55dae78f 100644 --- a/arch/powerpc/platforms/powermac/bootx_init.c +++ b/arch/powerpc/platforms/powermac/bootx_init.c @@ -468,7 +468,7 @@ void __init bootx_init(unsigned long r3, unsigned long r4) boot_infos_t *bi = (boot_infos_t *) r4; unsigned long hdr; unsigned long space; - unsigned long ptr, x; + unsigned long ptr, x __maybe_unused; char *model; unsigned long offset = reloc_offset(); From patchwork Thu Mar 22 20:19:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889624 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 406dZT15nHz9s0v for ; Fri, 23 Mar 2018 07:29:53 +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="HH+y3tik"; 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 406dZS5NGYzF20t for ; Fri, 23 Mar 2018 07:29:52 +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="HH+y3tik"; 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="HH+y3tik"; 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 406dMv31XzzF205 for ; Fri, 23 Mar 2018 07:20:43 +1100 (AEDT) Received: by mail-wr0-x242.google.com with SMTP id l8so9997530wrg.5 for ; Thu, 22 Mar 2018 13:20:43 -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=Z8VK8kBOEIdVVomZ/ZFs3EDYHfkvH3Qri9erRDn+jmc=; b=HH+y3tik2WSBGEaBsxsUyi9HJ57oXiO2htflOpdE23ufLSyseV1KEG6Zox52nGrN9A xbyP63bkKtvBs4WIJKgDvJ4/Y64hr5dmoAIU7BUNBvmOxtDKHQWeGQumORumqZdkaeKA J3qUqFo6dIoFD0/R2/3SEMk/x3bKPXKiejjDL2rJUWX/enVOy756LBbN+Jbmu5B/KBXj cnJh8Olpr3x5PnEgpckkLLSiNjCWgsoCTHwvTZtiu+FmBT4MvQYTQYcQ5cX+6W1vqXt7 u6hylR6xtGlkSPbgC53g4AFN45gNuaMyROy8UgItQRkMQjNNfeSBjksHN+OC4xnN9S/l on/w== 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=Z8VK8kBOEIdVVomZ/ZFs3EDYHfkvH3Qri9erRDn+jmc=; b=im4iiJysinNdvaAZpES9gW4mo5Ko3s2f10G0qn0ym1yAawDR5s4H5O343XJmFUg2pt TRqMBEkMaWHZpsANwaSRHvwAZIZPgnvg9AbAcyIQPbghi1AuyFwvWXfo33Zzll0bVXwB RNFnhHOi6c2HvEUGICl4Taji97fPcvqzdZNLXHSVINWv5BUGIuTLKdT01Wxd/WwwmXtx Zl/wSgP+fijrGMQGOLnVG+45alZVR+MaE9Jj9VLZWbcX8C79OzAqYLqA5X7REMS00yqE QrDkukNgYSTWJgJ81eRzSVXXXmKqYFubHNjO1ukKTEBRey1SjfZMMqEt2sBdT+83PLz5 M03w== X-Gm-Message-State: AElRT7GlveW7g8/rdJyUrjPoNcwmIe5SPS3zr+1fUJA4kNqOSvVk5AWH LT1Va0wlcVh6Wcic6W1Tkvg= X-Google-Smtp-Source: AG47ELtuIukf4YhCRxgtXWCJqm7x+Pmkun3xxSjLhpvVkt+AxBh7/QWpcQhKjo8ZibyVuq2QTgP56A== X-Received: by 10.223.199.132 with SMTP id l4mr22043167wrg.6.1521750040605; Thu, 22 Mar 2018 13:20:40 -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 w40sm11013076wrc.33.2018.03.22.13.20.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:40 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 0ED8410C03A5; Thu, 22 Mar 2018 21:20:39 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 02/19] powerpc/powermac: Mark variable x as unused Date: Thu, 22 Mar 2018 21:19:48 +0100 Message-Id: <20180322202007.23088-3-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" Since the value of x is never intended to be read, declare it with gcc attribute as unused. Fix warning treated as error with W=1: arch/powerpc/platforms/powermac/udbg_scc.c:76:9: error: variable ‘x’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/powermac/udbg_scc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powermac/udbg_scc.c b/arch/powerpc/platforms/powermac/udbg_scc.c index d83135a9830e..c38ca406df1a 100644 --- a/arch/powerpc/platforms/powermac/udbg_scc.c +++ b/arch/powerpc/platforms/powermac/udbg_scc.c @@ -73,7 +73,7 @@ void udbg_scc_init(int force_scc) struct device_node *stdout = NULL, *escc = NULL, *macio = NULL; struct device_node *ch, *ch_def = NULL, *ch_a = NULL; const char *path; - int i, x; + int i, x __maybe_unused; escc = of_find_node_by_name(NULL, "escc"); if (escc == NULL) From patchwork Thu Mar 22 20:19:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889625 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 406ddj5SFYz9s0y for ; Fri, 23 Mar 2018 07:32:41 +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="lIiw33MD"; 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 406ddj3fRBzF1xl for ; Fri, 23 Mar 2018 07:32:41 +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="lIiw33MD"; 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::241; helo=mail-wr0-x241.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="lIiw33MD"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 406dMx53ckzF209 for ; Fri, 23 Mar 2018 07:20:45 +1100 (AEDT) Received: by mail-wr0-x241.google.com with SMTP id z8so9983233wrh.7 for ; Thu, 22 Mar 2018 13:20:45 -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=Vbe8+gBlBDYlDDVoFyL4tIcgnxCrGQATqsmcejhxXpY=; b=lIiw33MDaf3p9E16Bm/u8zcYr3piGb/+i/WwC7ZYr5WYp1YM8E99chMxvKqkiOPbtP qtwxdzDhqjvCxN1LL7jMx6PX5etU7B3O5+hDFQKl6NF5jOCUjAfMRYWiK35cIXQSo0ng Yr/PXPpq5YALKn67jDRpRNFqWa4JuTYWfpEq9AGyzH3I+97z6Gnp/zyPJkpJu4iRzeSB Grm1rFXDhcnqJsAk3AcN+42l/JJVN7X8ImUZamHz6AH+iAW4pHxkxog7Dq9RljkGDzoI 0jD1qYpTvDFgiofl27cnLBBomCxA1mOlMvGqeby05Icq9oZMZqSZSg1ts5cYhgM+RhXn IJNQ== 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=Vbe8+gBlBDYlDDVoFyL4tIcgnxCrGQATqsmcejhxXpY=; b=lXs718UU81RU6uP1qyJiOehSfNihG5OgdVwN/piFWhC3zoyYAbxHpwaET1xToq5meu YlQRDrIiWzAU2UDtnAZCuhMXtebI+i+Pe9+66nFywNvfA1+HU727DqBvUblgFVpo7SM+ xvyrehm3Rf4Gb+BrqMYtwcUck6m2DzfojLW7QIvhA/FjOUYu6+NX3qYSCzM101irLs7J SY8oSG7Sdk7QEJT7Pepmi6iP6zvH1tnHiKfDxc4mRPtQeOU7X3Mbk4ElMNTJ6oza2VuC 17PKCyD5hc/KXIjYhLI8C9OISVlMY8tiJj8enRAIurgLMsN7nDziyPM6FTBw0ikaojMS ir5Q== X-Gm-Message-State: AElRT7H7q967L3vjbzp6EgkvXbrBg1boBKPNBGsJHXDYjGbMqxnJagp0 +pDwLGrqQ0OK5Qb79BmXQGo= X-Google-Smtp-Source: AG47ELsX6f/41o+sfS/ENRA+7xHtfdaj0M6W3WlT+RTBzCv8BYyyxxDPmk4LZzAp0w7ZIS0hbd7yeg== X-Received: by 10.223.165.67 with SMTP id j3mr21545475wrb.111.1521750042798; Thu, 22 Mar 2018 13:20:42 -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 f22sm14896357wmi.39.2018.03.22.13.20.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:42 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id EE01010C03A5; Thu, 22 Mar 2018 21:20:40 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 03/19] powerpc: Mark variables as unused Date: Thu, 22 Mar 2018 21:19:49 +0100 Message-Id: <20180322202007.23088-4-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 gcc attribute unused for two variables. Fix warnings treated as errors with W=1: arch/powerpc/kernel/prom_init.c:1388:8: error: variable ‘path’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/prom_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index acf4b2e0530c..6a3ac4522144 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -603,7 +603,7 @@ static void __init early_cmdline_parse(void) const char *opt; char *p; - int l = 0; + int l __maybe_unused = 0; prom_cmd_line[0] = 0; p = prom_cmd_line; @@ -1385,7 +1385,7 @@ static void __init reserve_mem(u64 base, u64 size) static void __init prom_init_mem(void) { phandle node; - char *path, type[64]; + char *path __maybe_unused, type[64]; unsigned int plen; cell_t *p, *endp; __be32 val; From patchwork Thu Mar 22 20:19:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889628 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 406dhp4WVmz9s0y for ; Fri, 23 Mar 2018 07:35:22 +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="f+VpE5qS"; 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 406dhp2qtTzF1pb for ; Fri, 23 Mar 2018 07:35:22 +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="f+VpE5qS"; 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="f+VpE5qS"; 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 406dMz2Xc3zF209 for ; Fri, 23 Mar 2018 07:20:47 +1100 (AEDT) Received: by mail-wr0-x242.google.com with SMTP id p53so2474767wrc.10 for ; Thu, 22 Mar 2018 13:20:47 -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=5A8E5OoXSpR9V0yootIZHcmcBur8BGh6Iy0NdDTQAKs=; b=f+VpE5qSRammYaWjhuiT1TzHSD+Q2cZ/tIy6DggzxnF42sL5Ec8L67r+p91tgcwLpc 4o/4RRvH6OWDE77AoHr9V5Igry7EQ3z0MT7+tVoY+OaGtIUXyDjkcbgeD5qzX6KeDbkt pWqN1zJBhW7SrGA/zdiHR1jumnEIoUvcmHkqWLToit2AeK7Ezp7ksdUHup1Xz7h1ugtn OzUAR/R1KiEDublFCp7CnikPTtcUHbfAdpvSbPkntkVQOJcOOMlz1NLmgeasSHmN4e64 i/KMsLhe63YNU7NyHED+YaIWEEAS5q2ieTJY4YfJnrhxxFqZzyWAwk1jqyvcgfC2mg/c 2nYw== 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=5A8E5OoXSpR9V0yootIZHcmcBur8BGh6Iy0NdDTQAKs=; b=WqJ76LEzKKU4uIVAKhYZrpFIoJNGvTmyraXnQ2hdFLtkTvoEDycA5Jtgs2ZgdwjXxq fj0zSVfH4sI6oR7SGngWa+GGdYYWZQKc23JTSpEFesql6jMDtWnVXlvQJRc1y/EfhTN8 l63hBS+9ROTOJCdXAXGkDGZujB4zqFbaUiNKmz/JRcsipNdII+aYVJRMZvZe2ryl4+3y cpAVxef9jVGyrvJMM11vW11TqsXUDXlLnK8olwhz3T2bQ+fWMaHgA+FqA1khZrF1kJTv YFql3uH+iufdn1lyycNK/0Nop5ianHn8iHgMcdONEXegagN6zl8gV8DysLllZHeRRWMq FDTw== X-Gm-Message-State: AElRT7GxZBomYeQ2v6Htl1u3mcT2y+pp2+LLL8x5jRuf51fBvJGELnKq TXaYDWtr9qeIwUdJUiuZNDY= X-Google-Smtp-Source: AG47ELspeKjd7/zfXtbd+8DVbt8l598O7/HTFnc6OLInM3UpRFPMRs7AkZfuEWwqwjwDzp3t8KmABw== X-Received: by 10.223.157.21 with SMTP id k21mr21969657wre.273.1521750044345; Thu, 22 Mar 2018 13:20:44 -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 k10sm517681wmb.26.2018.03.22.13.20.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:43 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id CED5810C03D9; Thu, 22 Mar 2018 21:20:42 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 04/19] powerpc/kvm: Mark variable tmp unused Date: Thu, 22 Mar 2018 21:19:50 +0100 Message-Id: <20180322202007.23088-5-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 gcc attribute unused to variable tmp. Fix warning treated as error with W=1: arch/powerpc/kernel/kvm.c:675:6: error: variable ‘tmp’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/kvm.c b/arch/powerpc/kernel/kvm.c index 9ad37f827a97..cd3c088283f9 100644 --- a/arch/powerpc/kernel/kvm.c +++ b/arch/powerpc/kernel/kvm.c @@ -672,7 +672,7 @@ static void kvm_use_magic_page(void) { u32 *p; u32 *start, *end; - u32 tmp; + u32 tmp __maybe_unused; u32 features; /* Tell the host to map the magic page to -4096 on all CPUs */ From patchwork Thu Mar 22 20:19:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889630 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 406dm71snwz9s0q for ; Fri, 23 Mar 2018 07:38:15 +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="Vw2TYdpG"; 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 406dm70J0mzF1yG for ; Fri, 23 Mar 2018 07:38:15 +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="Vw2TYdpG"; 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::241; helo=mail-wr0-x241.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="Vw2TYdpG"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 406dN11HvpzF20H for ; Fri, 23 Mar 2018 07:20:49 +1100 (AEDT) Received: by mail-wr0-x241.google.com with SMTP id z73so10008880wrb.0 for ; Thu, 22 Mar 2018 13:20:49 -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=fhNSBbCYBe2WmHICdFhhNJJj3K4R/xjmfj7+rrqSZS8=; b=Vw2TYdpGxGaEppH3s4cPEUW3UhJIdr/psCjBuhzOJ8W7DdtHmumJnn7U+mjRSoXQA0 7Hnv3CYo29m5R68q4TsMQZAMWeRDe0pTWtaGS/ZRvZ26VIMNBLOzj49byc76k0YcKoyk nUz1eiW+Ibw//uZPiirnEpKVAFtS3+4tlrN0rKwnXAZzoTcKnyAKV+1lFYwBHPlHMCHX ZwzZWkTyVxVyYjOklB4vM25UE6nQ3LMO/z0GkTqkx6ZTORGhQhzgY/pePDd2txMYBvcN +fi7UsMsHCioLCdFu5skkv3zq7u9bmAeXSelqUfmesxwOFr4ZCOHkV+m1cdRLlRR0M/j VOyw== 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=fhNSBbCYBe2WmHICdFhhNJJj3K4R/xjmfj7+rrqSZS8=; b=o5ELgoSgvovHxuRaWh2LVUP/FO6i6c/pUg2jNELyaLmQ1N9x3E88mVbC3V3AFc8ILx aTkUX2Gp9nu18U2eU0+wU3+P55j7w8SzGAF4RplYS4aoWwmD+ycfYrZRKd8DlyFBjPUm 6wcHelnI+M3IfQosotEag/s0i2QXYJjRqdtX68rb9y32OCvkvzMcBYkz653TLpcory4t n3smP80nU4xPZcA97isissBIbxzZXsr0Ww2AD4L9rsYMFGPGYYegRd4Hy12j0KUUU+IH TU0ZLMOrdtq6R240tqDH4ujn/8kPfW7fPJIewUXKuz9Mt6t4SLEABBv8rS91j4bfWZ1x EQdA== X-Gm-Message-State: AElRT7F8i6314SCeELgVEN/Gvl8m0s2R20PeW9fh54dYysY28jDHhmAA 8Qgg4GqH8n/pX6dFVGGA+VI= X-Google-Smtp-Source: AG47ELuDeeaY0LNAaNzNTiMRtI54uSJQVtXCOsDpLyvDWuisVHeURNMenKBJLsq8/hfbvXeyrPgUKg== X-Received: by 10.223.160.241 with SMTP id n46mr20255730wrn.280.1521750046364; Thu, 22 Mar 2018 13:20:46 -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 p4sm8076084wma.5.2018.03.22.13.20.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:45 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id B7C1810C03A5; Thu, 22 Mar 2018 21:20:44 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 05/19] powerpc/chrp/setup: Add attribute unused and make some functions static Date: Thu, 22 Mar 2018 21:19:51 +0100 Message-Id: <20180322202007.23088-6-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 gcc attribute unused to silence a warning. These functions can all be static, make it so. Fix warnings treated as errors with W=1: arch/powerpc/platforms/chrp/setup.c:97:6: error: no previous prototype for ‘chrp_show_cpuinfo’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/setup.c:302:13: error: no previous prototype for ‘chrp_setup_arch’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/setup.c:385:16: error: variable ‘idu_size’ set but not used [-Werror=unused-but-set-variable] arch/powerpc/platforms/chrp/setup.c:526:13: error: no previous prototype for ‘chrp_init_IRQ’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/setup.c:559:1: error: no previous prototype for ‘chrp_init2’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/chrp/setup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c index 481ed133e04b..85df479fd631 100644 --- a/arch/powerpc/platforms/chrp/setup.c +++ b/arch/powerpc/platforms/chrp/setup.c @@ -94,7 +94,7 @@ static const char *chrp_names[] = { "Total Impact Briq" }; -void chrp_show_cpuinfo(struct seq_file *m) +static void chrp_show_cpuinfo(struct seq_file *m) { int i, sdramen; unsigned int t; @@ -299,7 +299,7 @@ static __init void chrp_init(void) of_node_put(node); } -void __init chrp_setup_arch(void) +static void __init chrp_setup_arch(void) { struct device_node *root = of_find_node_by_path("/"); const char *machine = NULL; @@ -382,7 +382,7 @@ static void __init chrp_find_openpic(void) { struct device_node *np, *root; int len, i, j; - int isu_size, idu_size; + int isu_size, idu_size __maybe_unused; const unsigned int *iranges, *opprop = NULL; int oplen = 0; unsigned long opaddr; @@ -523,7 +523,7 @@ static void __init chrp_find_8259(void) } } -void __init chrp_init_IRQ(void) +static void __init chrp_init_IRQ(void) { #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON) struct device_node *kbd; @@ -555,7 +555,7 @@ void __init chrp_init_IRQ(void) #endif } -void __init +static void __init chrp_init2(void) { #ifdef CONFIG_NVRAM From patchwork Thu Mar 22 20:19:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889631 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 406dqD1kRRz9s0v for ; Fri, 23 Mar 2018 07:40:56 +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="MjKKMO++"; 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 406dqD0DFmzF1ws for ; Fri, 23 Mar 2018 07:40:56 +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="MjKKMO++"; 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::243; helo=mail-wr0-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="MjKKMO++"; dkim-atps=neutral Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::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 406dN26m9HzF20M for ; Fri, 23 Mar 2018 07:20:50 +1100 (AEDT) Received: by mail-wr0-x243.google.com with SMTP id p53so2474910wrc.10 for ; Thu, 22 Mar 2018 13:20:50 -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=PlUg8U8YCcO7LnIzhwY38ug+CCeDNn8sue21vKxKd3U=; b=MjKKMO++tQcJ6WcbnpG7kewDDV1xVCLUdmEUS0e3pZY6xdMhfc9he39Zqh7PQzicFD LMfNRjRrKJRleJAjzpqDWTEQ5yEUT2D09VSv5ag9gLPX7eDrUfD7RgMW+RnygHPYJ4yn RCoh7EwseD1eYmzAYu+g5l7q+XY94RJx7RAeHKxqudXBxwhKfPBKQFbXGXVLid/hNlVy +M3Q98YKK+g1hnD1Uj2X2XuiPReWLh+f0GRb3878quAUn7/C06bjE2Z+FxQDD5EcDI0S ta1L9QFh0ooR+r7iBc//eQWe60kuFzmEhIJIVdj1btXd9I6NE8q7HUTjgJRUZb7M+CFG WPWg== 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=PlUg8U8YCcO7LnIzhwY38ug+CCeDNn8sue21vKxKd3U=; b=X0mUg6Q9xwGD56SpuEeh+/sT1iUd6GP9CFgQw95EB5sW2JygzAgNrLkcdpxfcjc73w czPowNjSIqj5emI41l12fHCEt1spleihKzo2A1FCnwHhVtlxVkozVhGCvgfY0DNByS8F Yw+sUHMSl0FoMQyVXNo/rPs8VSGpH1jvcBQYSBEvJXb9jv3Kyxme6QVw1PDzQ+gSkkcr q2dWHfquhXVOw14sS1xwaRbLV8GYG8S87LptcLFA5kKicV2E+2yijsB0IDX6Eq81s3z9 uCU1cB3lUgIREoQap9nNeZG07x7FuHVwRhGetzm4yCQUy9r1DWePBeojZWQigxYaHwJf Ed4Q== X-Gm-Message-State: AElRT7HSpBDL9mGHtMPCuC+z000hszdcpfDL8anf1SjXckCAFgVaSf1l gXlO1ZYdV8p62P7ZgiBeqXY= X-Google-Smtp-Source: AG47ELve4FoiE+U2O4gWMqEeUCxqOFTs0ryEhGFzlzYbWibFJQqhCiWTinKO9BI5MvehRZQzvJq2Lg== X-Received: by 10.223.169.229 with SMTP id b92mr20262920wrd.244.1521750048099; Thu, 22 Mar 2018 13:20:48 -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 c57sm4352655wrg.84.2018.03.22.13.20.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:47 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 9C89010C03A5; Thu, 22 Mar 2018 21:20:46 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 06/19] powerpc: Make function btext_initialize static Date: Thu, 22 Mar 2018 21:19:52 +0100 Message-Id: <20180322202007.23088-7-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" This function can be static, make it so, this fix a warning treated as error with W=1: arch/powerpc/kernel/btext.c:173:5: error: no previous prototype for ‘btext_initialize’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/btext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 6537cba1a758..38ae3ffe44f6 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -170,7 +170,7 @@ void btext_map(void) boot_text_mapped = 1; } -int btext_initialize(struct device_node *np) +static int btext_initialize(struct device_node *np) { unsigned int width, height, depth, pitch; unsigned long address = 0; From patchwork Thu Mar 22 20:19:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889632 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 406dt338Fcz9s0v for ; Fri, 23 Mar 2018 07:43:23 +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="LyGdHKzv"; 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 406dt31BglzF1w1 for ; Fri, 23 Mar 2018 07:43:23 +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="LyGdHKzv"; 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::244; helo=mail-wr0-x244.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="LyGdHKzv"; dkim-atps=neutral Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (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 406dN5195TzF203 for ; Fri, 23 Mar 2018 07:20:53 +1100 (AEDT) Received: by mail-wr0-x244.google.com with SMTP id p53so2474973wrc.10 for ; Thu, 22 Mar 2018 13:20:52 -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=JQ6049q67KytLvrXqlWXomfh7HkoBlYVuvRLVwiuXP4=; b=LyGdHKzv44nBVQZ0YPlK1f8WQGL5sBKFBVJO7AOW08C4lNZwral6BNFwlpQ1aeaQ/1 Ga38UTbH8/zjHOb3cno8e16mSvboXybQSdGyaIvfWF/NTI5awYH103Wx+uDMQQqghGrb 7y7zdSVfreQPr0UTUbKBARg3nH88TA3xNmVUCrjaRZbrYHtru31XLtsbInYGP83tEhxF bm+kdmMJc3KrwxN96JW6LV/y1Y4yMRp0Ypu+8Jy8Wv/0DWdcHm7xCnZFgYL8W9FOLbGq 8hL6ZnSCxAbFji/uCjM4jDhOULnIQc+zkwgbcd5g/ccgE5fZVau+UVQayYnsX3peIhT5 TTuw== 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=JQ6049q67KytLvrXqlWXomfh7HkoBlYVuvRLVwiuXP4=; b=mxx61oW8Rz5s5r459MofCTL3eGeq7541hkBzw4rSc/ZcZmHlYDKQfu9TlIKbUWMS8G Ts0GBBp+otG7ka0MiCtT19ny1UoB0dybGynI8jQfFaCTewUquoNMyvaMejaXf7PajRiy XQL95Uxb+iCQeE/sbJ13Zd+A0ImjldMf56cdGDQwOQ39db4mcOgoN/lsq1BR5hICbhdz HC2v2vZTe9E2+isugdE2Ka4qWbaXLn0u7Kk2/LZOfSQRQCHZr0oBTJrzgRYBLxU1teSB 670IC1tL1u8yHnQM1YGmqKb2wjcMRfah2Fh1DPxH1lFF6nUBZKRnKPo9XSmSOCW7YFo1 9WtA== X-Gm-Message-State: AElRT7HeBVp8lJgI2IgjnufeBNyFgJGUZ8fwg3aqazkYanbeuqawCXNz Rb6fvDFoMwTmZ7eAAIbWWGg= X-Google-Smtp-Source: AG47ELs3AC5PoMo9c6IAgSo4ZC+8/6huh4yK24FaADxxTnAyXWtJElcxr1Y5HDtylRdoP75il7zHeQ== X-Received: by 10.223.159.79 with SMTP id f15mr21798277wrg.115.1521750050049; Thu, 22 Mar 2018 13:20:50 -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 o11sm7761574wrg.91.2018.03.22.13.20.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:49 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 8606410C03A5; Thu, 22 Mar 2018 21:20:48 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 07/19] powerpc/powermac: Make some functions static Date: Thu, 22 Mar 2018 21:19:53 +0100 Message-Id: <20180322202007.23088-8-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" These functions can all be static, make it so. Fix warnings treated as errors with W=1: arch/powerpc/platforms/powermac/pci.c:1022:6: error: no previous prototype for ‘pmac_pci_fixup_ohci’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/pci.c:1057:6: error: no previous prototype for ‘pmac_pci_fixup_cardbus’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/pci.c:1094:6: error: no previous prototype for ‘pmac_pci_fixup_pciata’ [-Werror=missing-prototypes] Also add gcc attribute unused to fix a warning treated as error with W=1: arch/powerpc/platforms/powermac/pci.c:784:19: error: variable ‘has_address’ set but not used [-Werror=unused-but-set-variable] arch/powerpc/platforms/powermac/pci.c:907:22: error: variable ‘ht’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/powermac/pci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platforms/powermac/pci.c index 0b8174a79993..d3b9818dd880 100644 --- a/arch/powerpc/platforms/powermac/pci.c +++ b/arch/powerpc/platforms/powermac/pci.c @@ -781,7 +781,7 @@ static int __init pmac_add_bridge(struct device_node *dev) struct resource rsrc; char *disp_name; const int *bus_range; - int primary = 1, has_address = 0; + int primary = 1, has_address __maybe_unused = 0; DBG("Adding PCI host bridge %pOF\n", dev); @@ -904,7 +904,7 @@ static int pmac_pci_root_bridge_prepare(struct pci_host_bridge *bridge) void __init pmac_pci_init(void) { struct device_node *np, *root; - struct device_node *ht = NULL; + struct device_node *ht __maybe_unused = NULL; pci_set_flags(PCI_CAN_SKIP_ISA_ALIGN); @@ -1019,7 +1019,7 @@ static bool pmac_pci_enable_device_hook(struct pci_dev *dev) return true; } -void pmac_pci_fixup_ohci(struct pci_dev *dev) +static void pmac_pci_fixup_ohci(struct pci_dev *dev) { struct device_node *node = pci_device_to_OF_node(dev); @@ -1054,7 +1054,7 @@ void __init pmac_pcibios_after_init(void) } } -void pmac_pci_fixup_cardbus(struct pci_dev* dev) +static void pmac_pci_fixup_cardbus(struct pci_dev *dev) { if (!machine_is(powermac)) return; @@ -1091,7 +1091,7 @@ void pmac_pci_fixup_cardbus(struct pci_dev* dev) DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_TI, PCI_ANY_ID, pmac_pci_fixup_cardbus); -void pmac_pci_fixup_pciata(struct pci_dev* dev) +static void pmac_pci_fixup_pciata(struct pci_dev *dev) { u8 progif = 0; From patchwork Thu Mar 22 20:19:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889634 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 406dx21JL4z9s0y for ; Fri, 23 Mar 2018 07:45:58 +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="L75N/tBe"; 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 406dx16Z0yzDqm0 for ; Fri, 23 Mar 2018 07:45:57 +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="L75N/tBe"; 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::243; helo=mail-wr0-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="L75N/tBe"; dkim-atps=neutral Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::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 406dN660whzF20D for ; Fri, 23 Mar 2018 07:20:54 +1100 (AEDT) Received: by mail-wr0-x243.google.com with SMTP id d10so9992776wrf.3 for ; Thu, 22 Mar 2018 13:20:54 -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=gdL1LQRCZnNXULEM85REfSUOIpMyWVdAh7LWeCXyRFM=; b=L75N/tBeKZyhmm8ZqyEML9EyX8bjWvbJ/Syj/zaXdrXiUu2bdVbRU+RQKs75E7BS7i N/5zHzuajDxC1goPdrEIGRVVdHx375QZ7RquJFU48WvxzjDlSwpdF1xwAtIf3D/6ny/h iNn9vWM7V28UqP+UaD9cPnHcpoVjRXOhvGgbmLtkQasW1hs8IOVE8CaTLw/fPR9gvZ5y +daCSMy4abENIjDTTK3mjPKHVH10TtPdLHdQP4DVw26LdZhXdfl95s1mElQd3QU2wpMe Sew79GyWtfSCH/kT41jVofoQOTS12vOAkYCe9RZOoSqrwqiu9TrOD8vspBQ0Lj5p3CNn dptA== 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=gdL1LQRCZnNXULEM85REfSUOIpMyWVdAh7LWeCXyRFM=; b=CeRaZjYGzItH5BpFRH4NuUQ4y2wIfEf4BVa4Se3QoiYLvQ2IpAIXD9E3Zk2oMvbQXr Hs9sUEF4IHEMEEkHYJyNb2uGhMbEIRHlPG10XB/GHv90hDDcuNQwrvevFvyrDZYmJ7zX r7+PP0M0qmELIBpHk2lr7cmczspfjjpWIFz35Oone1+D/wXGxslC5B4AKS37RpfUEO5j JmtpGDK9oXqZ2Q1nr/pQDteJH3ONNWW4OjJwGYa1T1Hm5g6zqSeBrjwVzP/2TtXkwfud sio409slksxKTYgzg0a2aNPkBgfYNHi8GiqulKYhwvshOOvstV2TRnsINhcvwf3clwhG tm/A== X-Gm-Message-State: AElRT7EXXCzUih1Jan+EgA7jwQhoFYkE4cUe3Tr19xPXCR04E0vxe7ZE Pb5atzk3bdamSSYavE0O6d0= X-Google-Smtp-Source: AG47ELvmv07KpO2AdzvBaiSUPH2Vrjv6WzTIZshtuC7BOwDqT9tdsBjnpIBPEL7nCN5buHiakMK2PA== X-Received: by 10.223.171.213 with SMTP id s79mr1243081wrc.52.1521750052031; Thu, 22 Mar 2018 13:20:52 -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 g38sm12320334wra.77.2018.03.22.13.20.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:51 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 6B60810C03A5; Thu, 22 Mar 2018 21:20:50 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 08/19] powerpc/tau: Make some function static Date: Thu, 22 Mar 2018 21:19:54 +0100 Message-Id: <20180322202007.23088-9-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" These functions can all be static, make it so. Fix warnings treated as errors with W=1: arch/powerpc/kernel/tau_6xx.c:53:6: error: no previous prototype for ‘set_thresholds’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:73:6: error: no previous prototype for ‘TAUupdate’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:208:13: error: no previous prototype for ‘TAU_init_smp’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:220:12: error: no previous prototype for ‘TAU_init’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:126:6: error: no previous prototype for ‘TAUException’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/tau_6xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/tau_6xx.c b/arch/powerpc/kernel/tau_6xx.c index 8cdd852aedd1..1fc6a89a978e 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -50,7 +50,7 @@ struct timer_list tau_timer; #define shrink_timer 2*HZ /* period between shrinking the window */ #define min_window 2 /* minimum window size, degrees C */ -void set_thresholds(unsigned long cpu) +static void set_thresholds(unsigned long cpu) { #ifdef CONFIG_TAU_INT /* @@ -70,7 +70,7 @@ void set_thresholds(unsigned long cpu) #endif } -void TAUupdate(int cpu) +static void TAUupdate(int cpu) { unsigned thrm; @@ -205,7 +205,7 @@ static void tau_timeout_smp(struct timer_list *unused) int tau_initialized = 0; -void __init TAU_init_smp(void * info) +static void __init TAU_init_smp(void *info) { unsigned long cpu = smp_processor_id(); @@ -217,7 +217,7 @@ void __init TAU_init_smp(void * info) set_thresholds(cpu); } -int __init TAU_init(void) +static int __init TAU_init(void) { /* We assume in SMP that if one CPU has TAU support, they * all have it --BenH From patchwork Thu Mar 22 20:19:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889638 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 406f0549bqz9s0y for ; Fri, 23 Mar 2018 07:48:37 +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="JReM4z3K"; 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 406f052f1HzF1xB for ; Fri, 23 Mar 2018 07:48:37 +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="JReM4z3K"; 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::241; helo=mail-wm0-x241.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="JReM4z3K"; dkim-atps=neutral Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 406dN8538qzF20M for ; Fri, 23 Mar 2018 07:20:56 +1100 (AEDT) Received: by mail-wm0-x241.google.com with SMTP id e194so18201627wmd.3 for ; Thu, 22 Mar 2018 13:20:56 -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=YO29PxLEm27J11q/DXw9H8eKKrUS1f8ZC2UZPg5Fk+E=; b=JReM4z3K7sArtOQbYOsQ4TfqZVXE9CANZXGsCLZ4Y6DK1Kkbq8UIGOuhPdQm7kWp2N OsXussEY9etm1LrOOXpl0zkgegdDpcYeAeeAVHcgoFsvfUSvft/jpLCUjupccWlR/TIR eP1ZF9fEygxIMQlewKbIuJbi4G6A8EIisFArfKFWejQ3tcbChzgiWDOhOrfbc/S4Kt3z 4qoxELdGDRuoV9XiuQsytID9u9vW7q1e1CPFOnK5msPayNTDCX2+bzRdu2yOjVv/p4FS JKW55sHc4PUNwrFF6NpXnlVwc0DrFccFzQLfkB98/8SMcdW2GHPimSDkIcnwozJ9U6Dy sjIA== 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=YO29PxLEm27J11q/DXw9H8eKKrUS1f8ZC2UZPg5Fk+E=; b=Y5QYS0eKmSbIrtXxKcyb6gzMkDeHHpvzCuy6GCjGhHcBs8n7lQYctWL26niI2t2AdF 56hfKip3r2myXOYusKMhocofFWX/WKDrDPAGvfExW9y769yX49VvudFHQS1LpnS62VTI kA71PYml5MkAaQIuu3j+q4N5wyowPW8cTIEM5knClGJONCqZ+9XewIyGvPvL99B9Ckfe GyWyVyUj2VU9u2jLE/RIKYocEdwsgs5fyoguUa4AavtdibEZCrcbKQlLR7qmi3tQ9iid 4mHQf6ekmjVMo5VLI1wlfSP1BPD3Lo570uQ9kxlwrjIEezRNHEh4RuBazlHq+iTM0LvX BBwg== X-Gm-Message-State: AElRT7ET4joktAl2jRr3LoLUR7uykwdVFpl56sZAWWu6+QWr29zZRhVt kc3p+6Cz9/IkSZeTBUbGk1U= X-Google-Smtp-Source: AG47ELvKrfl2AVoucU38ClRI+s0fFjabHLcYve0iz39gJjRr2wT0LaS8sb8FMXUzs8AQqNY7DduoaQ== X-Received: by 10.28.171.131 with SMTP id u125mr6291347wme.19.1521750053860; Thu, 22 Mar 2018 13:20:53 -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 e10sm7223809wrh.38.2018.03.22.13.20.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:53 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 536BC10C03A5; Thu, 22 Mar 2018 21:20:52 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 09/19] powerpc/chrp/pci: Make some functions static Date: Thu, 22 Mar 2018 21:19:55 +0100 Message-Id: <20180322202007.23088-10-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" These functions can all be static, make it so. Fix warnings treated as errors with W=1: arch/powerpc/platforms/chrp/pci.c:34:5: error: no previous prototype for ‘gg2_read_config’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/pci.c:61:5: error: no previous prototype for ‘gg2_write_config’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/pci.c:97:5: error: no previous prototype for ‘rtas_read_config’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/pci.c:112:5: error: no previous prototype for ‘rtas_write_config’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/chrp/pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/chrp/pci.c b/arch/powerpc/platforms/chrp/pci.c index 0f512d35f7c5..84e1fedb3796 100644 --- a/arch/powerpc/platforms/chrp/pci.c +++ b/arch/powerpc/platforms/chrp/pci.c @@ -31,7 +31,7 @@ void __iomem *gg2_pci_config_base; * limit the bus number to 3 bits */ -int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, +static int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, int len, u32 *val) { volatile void __iomem *cfg_data; @@ -58,7 +58,7 @@ int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, return PCIBIOS_SUCCESSFUL; } -int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, +static int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, int len, u32 val) { volatile void __iomem *cfg_data; @@ -94,7 +94,7 @@ static struct pci_ops gg2_pci_ops = /* * Access functions for PCI config space using RTAS calls. */ -int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, +static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) { struct pci_controller *hose = pci_bus_to_host(bus); @@ -109,7 +109,7 @@ int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, return rval? PCIBIOS_DEVICE_NOT_FOUND: PCIBIOS_SUCCESSFUL; } -int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, +static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) { struct pci_controller *hose = pci_bus_to_host(bus); 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); From patchwork Thu Mar 22 20:19:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889640 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 406f6d2Hygz9s0v for ; Fri, 23 Mar 2018 07:54:17 +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="d3KKkTWs"; 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 406f6d0dwCzF1xJ for ; Fri, 23 Mar 2018 07:54:17 +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="d3KKkTWs"; 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::243; helo=mail-wr0-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="d3KKkTWs"; dkim-atps=neutral Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::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 406dND47jHzF203 for ; Fri, 23 Mar 2018 07:21:00 +1100 (AEDT) Received: by mail-wr0-x243.google.com with SMTP id z8so9983824wrh.7 for ; Thu, 22 Mar 2018 13:21:00 -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=H25tO5aoTgX8NKQyRWjbMjhJ0LayjnxJetrKtxduXdw=; b=d3KKkTWsL1iyYU4I+1R+Ghjp5eBrd7hbwHHHCD3LCnP4Wpbe+Eris92AsScUlceuBm YT+hB491TOYz/5AvrF25JxRE4ChbuiieZMyzbFhJt5fi42RJu7mc2cbtcyjurG6MWOb3 tFgDPuC0apHPMKl4ZSlypH1LQwEJKHun2QEM71siIy9Hd8k2zfaYAxQujEERDx1NARaK UWavbiC9fqAocCXHXJ99a8AiP6dMnrHleHkqyM4/x78jEKH9Wgjtlfc5Kpn5LcaQQwIU /zwSFmGhspQ0iCpVcx7c5RmmBzOZqewj1mJN93VeqcHWYBOcjLfIqt/1eLL/ptWIQNt5 AblQ== 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=H25tO5aoTgX8NKQyRWjbMjhJ0LayjnxJetrKtxduXdw=; b=YdKRoNJ1RmRVACDpgPDokC069KF6RqCyn2wLOncqiVQD0Q3LjFafwFsl2qG6aYrkWs L0tx/c0j/6+8iqSR08LUjRJhnIiEFUBw3ygAe/JDB8PO8XwyDM++v9Rn/I32I9TH2R9K XAMQLoIjL/8VLfqGOJtyEb/CJx8RyQnrkGpTiipdE9Up4vTiakr+39Nnh+NOQYt0LhLg D2ISxn7PKSJC5D0CtOZgZzzg7hKXbM18omiypekFgKPUgLGIgDJQu2gPF2XjAy7rNm9E BDuF0jfNwWz/VY1nxf0n0ROfEWAZJSN4E9l/1Y6GvdjxbD+XGdaSZDKuf5DDpUPiZRKQ b89g== X-Gm-Message-State: AElRT7ERjmLGgKybuofU07dDyh5sSR6309REcsDX2ZA5vqudaAn7TIej Lxi8GlHKlJPNN8RJ5Xp9P9w= X-Google-Smtp-Source: AG47ELtUfMK/RfA0hWMI0r+JCgbZfcOYzTxA1me2k78zKPbIa5SvIraHclsoVgui+/pfMKHQvTA9tw== X-Received: by 10.223.170.66 with SMTP id q2mr6254360wrd.140.1521750057725; Thu, 22 Mar 2018 13:20:57 -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 y68sm8708415wrb.73.2018.03.22.13.20.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:57 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 3FEB710C03A5; Thu, 22 Mar 2018 21:20:56 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 11/19] powerpc/powermac: Move pmac_pfunc_base_install prototype to header file Date: Thu, 22 Mar 2018 21:19:57 +0100 Message-Id: <20180322202007.23088-12-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 pmac_pfunc_base_install prototype was declared in powermac/smp.c since function was used there, move it to pmac_pfunc.h header to be visible in pfunc_base.c. Fix a warning treated as error with W=1: arch/powerpc/platforms/powermac/pfunc_base.c:330:12: error: no previous prototype for ‘pmac_pfunc_base_install’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/include/asm/pmac_pfunc.h | 1 + arch/powerpc/platforms/powermac/smp.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/pmac_pfunc.h b/arch/powerpc/include/asm/pmac_pfunc.h index 73bd8f28f2a8..99f7a288789a 100644 --- a/arch/powerpc/include/asm/pmac_pfunc.h +++ b/arch/powerpc/include/asm/pmac_pfunc.h @@ -245,6 +245,7 @@ extern void pmf_put_function(struct pmf_function *func); extern int pmf_call_one(struct pmf_function *func, struct pmf_args *args); +extern int pmac_pfunc_base_install(void); /* Suspend/resume code called by via-pmu directly for now */ extern void pmac_pfunc_base_suspend(void); diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c index 95275e0e2efa..447da6db450a 100644 --- a/arch/powerpc/platforms/powermac/smp.c +++ b/arch/powerpc/platforms/powermac/smp.c @@ -65,7 +65,6 @@ #endif extern void __secondary_start_pmac_0(void); -extern int pmac_pfunc_base_install(void); static void (*pmac_tb_freeze)(int freeze); static u64 timebase; From patchwork Thu Mar 22 20:19:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889641 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 406fB76N8zz9s0v for ; Fri, 23 Mar 2018 07:57:19 +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="CrLAIiMs"; 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 406fB74zSYzF1vs for ; Fri, 23 Mar 2018 07:57:19 +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="CrLAIiMs"; 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::241; helo=mail-wm0-x241.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="CrLAIiMs"; dkim-atps=neutral Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 406dNG3RfKzF203 for ; Fri, 23 Mar 2018 07:21:02 +1100 (AEDT) Received: by mail-wm0-x241.google.com with SMTP id t7so18320928wmh.5 for ; Thu, 22 Mar 2018 13:21:02 -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=XE6MuhZu1Hv/B+HLq4kqXQySPBldU4rWJaLtMx6WYmk=; b=CrLAIiMsT1LDKUMZv67ITxgrWu5stc8dYTR89yVX+ULbyy90ozU/2kJ7kWlj3QKhwC pPkqebFcimYpFS5/YmAOWxqW33VsPejE5Odxj6nuMDpssyE3tWuYkaDzkwBUIg0zMoVR Gvtzl4hKVrwD6gkJ0e1RpBBCaJbF5mvhCwSivk8aJVL9G/uzbVdFZCeRE67SiZ7djcez cWbxFlvxoAS8nYtmsKhMlnRlnUerbZqr7KJoD1+0a4sdc4s2boIW/ZGuxY09X7JzS3Fw 6EyfPzoibSbIWXCZZPFw3ALVWL3YnkJ5PDxxCESnPORbvtpkzz3SpHBd0U6gNQJZ8g/y b1MA== 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=XE6MuhZu1Hv/B+HLq4kqXQySPBldU4rWJaLtMx6WYmk=; b=I1ohzbtfHAdid+17JwBuEnVtNGLNdWJMtsb5agyGTtQv/us8+1+anq1Gwi1FDfbI8X uzlB1n9RnFo/csoKfVKcNmFo1cXhXSaBAIzhowV6iDq9vk+4J0nPSBtgum5BmgiRJXYE KswPC9zjWdIiPtk2BJc+otAYZbedmPZ3aDW7S4N4hiVFIFKVeaU05x3Hwikdmmkd4/8S ER7YNcUpnpkpQJchG01qyyfgOJ7JdgD/gZYHJ9oY6jF6/BFoFrHOt/LLtPaqA9dYcxao eE6i1CT3CqDVbJNkT4FoUrttLq73t44SQasTbrKnmIeXpa3j8Xf8TtxPi3X+Mmr3wI6a SngQ== X-Gm-Message-State: AElRT7HYd6zBbASFYAgl6uuP//uuC6qLqbF+Djt5K+Ks8Ua9BwOdXoI5 05x2JfO6r9j1ALqO8Xtv2Eg= X-Google-Smtp-Source: AG47ELt3TBw87iE7M/1R4fpQace9Bw7+ormhhyMMDg5v0+T5ZtyY5jqvFsDr4dbhaEAeygDPKi/kNQ== X-Received: by 10.28.169.150 with SMTP id s144mr6429705wme.40.1521750059678; Thu, 22 Mar 2018 13:20:59 -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 74sm8536638wmf.26.2018.03.22.13.20.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:59 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 2A91110C03A5; Thu, 22 Mar 2018 21:20:58 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 12/19] powerpc/powermac: Add missing prototype for note_bootable_part() Date: Thu, 22 Mar 2018 21:19:58 +0100 Message-Id: <20180322202007.23088-13-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 prototype for function `note_bootable_part` to silence a warning treated as error with W=1: arch/powerpc/platforms/powermac/setup.c:361:12: error: no previous prototype for ‘note_bootable_part’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/powermac/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index ab668cb72263..e3d00f8af441 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c @@ -352,6 +352,7 @@ static int pmac_late_init(void) } machine_late_initcall(powermac, pmac_late_init); +extern void note_bootable_part(dev_t dev, int part, int goodness); /* * This is __ref because we check for "initializing" before * touching any of the __init sensitive things and "initializing" From patchwork Thu Mar 22 20:19:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889642 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 406fF46RyKz9s0y for ; Fri, 23 Mar 2018 07:59:52 +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="WsPoXRSE"; 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 406fF449J8zF1Wr for ; Fri, 23 Mar 2018 07:59:52 +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="WsPoXRSE"; 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="WsPoXRSE"; 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 406dNJ2KCvzF205 for ; Fri, 23 Mar 2018 07:21:04 +1100 (AEDT) Received: by mail-wm0-x243.google.com with SMTP id t6so18519563wmt.5 for ; Thu, 22 Mar 2018 13:21:04 -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=Gl3P3DdWtqMsX8q8fFBUpT8oBzwV+CiYTGXzIImJYUQ=; b=WsPoXRSEI19hiPt4f6OnGY0OMnJRj9Pd4yXNeZvzsP9byUeBZOuelEOWHrL/sQUD8m PAcEt1nb3OoxGSpRQsafjTh1GQxHFG7hveFFxFdpvrOum8KwwW1QtqK37ayrzxdiIfdS 9AkAfuX66aB9EjfSe2cPM9MMnABuU2ameGu2+QET//glGT1pgt7Kd0Mn92ZZ+o7r0GOk Fxtn/fZYmMRCYP3PBTX6UZebbwXLIVDpNiLHytjfduAdPppW1P96k9MWDw2S/dj63Mrh zBD45n4ZEjCAz78pbOWGhi8ugOoqsi0KijbP3mNjQro3+kIJUuSNYTgJ/7e05mDzXUaS vB2A== 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=Gl3P3DdWtqMsX8q8fFBUpT8oBzwV+CiYTGXzIImJYUQ=; b=B+tKTlt6+4BLdYSGiLEtt4BsCNB70GqSPGYHxUimuCNXkeS1lBv499xgUdy1HuipxA uQoAVtQrc8tqtnfWWE/G9W+bUrckvE/TBrOBxKeVS1qbrOh8xgtB+XjLbN/YjEPxHMjD TKd0r1HnGDAXcNyvq6Ku5PClhgUlXlN2aUZcBpAzTS4U09g2ISrXwdPTqg0QfVS6+29x mJCQ4LDQAWCNIxil6Bru1GggrxMZsZDQ+OyjRzf+HboFlEHwRIeqJW0i+8dwAhGgnz7i hkDw404HSpteGFSZz6PS5GAazu/eQZrmJ1jE1JJODfgrstsqWjlkcCZtAJY1NvcQvLLY jOkg== X-Gm-Message-State: AElRT7GH48uc5hks6iH1FyYRkmC1YdVp2j/Y5ZEQge9yStMWUNJGUn5t YgCwHHIYAiy5nTvfOZ90AMEylwM9 X-Google-Smtp-Source: AG47ELvNqKEs5LkXiRqY3KTqQ0CyZSr3miLaNnw1i7zZOpQ4FP2mg/srn+ulL+WR0ig/88DQrfFcOg== X-Received: by 10.28.210.81 with SMTP id j78mr6502480wmg.55.1521750061485; Thu, 22 Mar 2018 13:21:01 -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 m9sm7846203wrf.13.2018.03.22.13.21.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:21:00 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 0565D10C03A5; Thu, 22 Mar 2018 21:21:00 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 13/19] powerpc/52xx: Add missing functions prototypes Date: Thu, 22 Mar 2018 21:19:59 +0100 Message-Id: <20180322202007.23088-14-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 function prototypes were declared within a `#ifdef CONFIG_PPC_LITE5200` block which would prevent them from being visible when compiling `mpc52xx_pm.c`. Move the prototypes outside of the `#ifdef` block to fix the following warnings treated as errors with W=1: arch/powerpc/platforms/52xx/mpc52xx_pm.c:58:5: error: no previous prototype for ‘mpc52xx_pm_prepare’ [-Werror=missing-prototypes] arch/powerpc/platforms/52xx/mpc52xx_pm.c:113:5: error: no previous prototype for ‘mpc52xx_pm_enter’ [-Werror=missing-prototypes] arch/powerpc/platforms/52xx/mpc52xx_pm.c:181:6: error: no previous prototype for ‘mpc52xx_pm_finish’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/include/asm/mpc52xx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/mpc52xx.h b/arch/powerpc/include/asm/mpc52xx.h index e94cede14522..0f6b3cbb119f 100644 --- a/arch/powerpc/include/asm/mpc52xx.h +++ b/arch/powerpc/include/asm/mpc52xx.h @@ -350,14 +350,14 @@ extern struct mpc52xx_suspend mpc52xx_suspend; extern int __init mpc52xx_pm_init(void); extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level); -#ifdef CONFIG_PPC_LITE5200 -extern int __init lite5200_pm_init(void); - /* lite5200 calls mpc5200 suspend functions, so here they are */ extern int mpc52xx_pm_prepare(void); extern int mpc52xx_pm_enter(suspend_state_t); extern void mpc52xx_pm_finish(void); extern char saved_sram[0x4000]; /* reuse buffer from mpc52xx suspend */ + +#ifdef CONFIG_PPC_LITE5200 +extern int __init lite5200_pm_init(void); #endif #endif /* CONFIG_PM */ From patchwork Thu Mar 22 20:20:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889643 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 406fJS4PRMz9s0y for ; Fri, 23 Mar 2018 08:02:48 +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="aMWnwBwQ"; 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 406fJS2nfqzDrTt for ; Fri, 23 Mar 2018 08:02:48 +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="aMWnwBwQ"; 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::241; helo=mail-wm0-x241.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="aMWnwBwQ"; dkim-atps=neutral Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 406dNL203TzF20B for ; Fri, 23 Mar 2018 07:21:06 +1100 (AEDT) Received: by mail-wm0-x241.google.com with SMTP id 139so18532393wmn.2 for ; Thu, 22 Mar 2018 13:21:06 -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=QRspRhrLGfD1KC5OC1ddBwoZzPJUduD1E4w/wGYSDjc=; b=aMWnwBwQACuKyRAsHaTpmv457I3fK6Gq/ksLGiaTzElS4sW75kzb85CgHrg9nfvZQ5 j6jl2/Q0lwB4F+CdY8ChPujnENz4ryof0HA73DKdcHBNHUffFVo2Lobk8rV03CHZ8vak GRFRSxtuPqjUAa3jLifkU/vtEDPgrCwbHoaKrCZZlYYx+hLCPRs4gU84KdNT98k1IPp8 8ixen8cx6Dff5UcumJ1e0srHz0OesR0Yox8mnszP5WQjDiCqVG3l8sgXncFY1+qlxel5 nCrI87CLhcO01f5/zZ1aX66hxJCp5IoGWQBjTWPrLkp5g0OEzPLymMrbRQl8X7sNEt3M yn4Q== 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=QRspRhrLGfD1KC5OC1ddBwoZzPJUduD1E4w/wGYSDjc=; b=NoMUx3KYRKOEKE+8iMYoWq86Y+ln2d619Ku6qkBPKt+/qkqZ1nvKSjMcyTFnKMr//w IqkcfFGDascfXSocuUGXVR6g1I+D0YnvVDoL9/twHjuNvwC9zI8ApMk/1w7t8aOI05PR AkC3Hl4dZ+o0RIQludJ2N5d80BVWUqV8ctqSKbZJmPVGj6hgvoSxfNksfbGI7OF/JgmL eINr1q36MfoEavCygSu0S5gHxMcFxLbiABj8FU+4+WY3vfucsE0Xg2w34rBzeN+Pf9Eb enUlDi5iH1dK9JWTNdyUKepMyZwplISXKq6/UOSZ4CbHExlgpZgVy1ETJ4Vpe5oyTx2Y k+fg== X-Gm-Message-State: AElRT7FlObMjFn5/CnlBJI/nwhHERH60j8B/dD0SUVyOqafHk3E2q00c Wo3SETh7oMMcp6hFMQMLUeM= X-Google-Smtp-Source: AG47ELtLgxmN++Mue0e7DzCfT6rIrLWcHzw8X9FlQoSDqK1ur52rKErHMhJB1bU7gUlI9Ivn2UMAJA== X-Received: by 10.28.175.82 with SMTP id y79mr6363506wme.93.1521750063454; Thu, 22 Mar 2018 13:21:03 -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 b9sm7069261wrc.85.2018.03.22.13.21.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:21:02 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id DA55910C03A5; Thu, 22 Mar 2018 21:21:01 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 14/19] powerpc/altivec: Add missing prototypes for altivec Date: Thu, 22 Mar 2018 21:20:00 +0100 Message-Id: <20180322202007.23088-15-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" Some functions prototypes were missing for the non-altivec code. Add the missing prototypes directly in xor_vmx, fix warnings treated as errors with W=1: arch/powerpc/lib/xor_vmx_glue.c:18:6: error: no previous prototype for ‘xor_altivec_2’ [-Werror=missing-prototypes] arch/powerpc/lib/xor_vmx_glue.c:29:6: error: no previous prototype for ‘xor_altivec_3’ [-Werror=missing-prototypes] arch/powerpc/lib/xor_vmx_glue.c:40:6: error: no previous prototype for ‘xor_altivec_4’ [-Werror=missing-prototypes] arch/powerpc/lib/xor_vmx_glue.c:52:6: error: no previous prototype for ‘xor_altivec_5’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/lib/xor_vmx.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/lib/xor_vmx.h b/arch/powerpc/lib/xor_vmx.h index 5c2b0839b179..2173e3c84151 100644 --- a/arch/powerpc/lib/xor_vmx.h +++ b/arch/powerpc/lib/xor_vmx.h @@ -19,3 +19,17 @@ void __xor_altivec_4(unsigned long bytes, unsigned long *v1_in, void __xor_altivec_5(unsigned long bytes, unsigned long *v1_in, unsigned long *v2_in, unsigned long *v3_in, unsigned long *v4_in, unsigned long *v5_in); + +void xor_altivec_2(unsigned long bytes, unsigned long *v1_in, + unsigned long *v2_in); + +void xor_altivec_3(unsigned long bytes, unsigned long *v1_in, + unsigned long *v2_in, unsigned long *v3_in); + +void xor_altivec_4(unsigned long bytes, unsigned long *v1_in, + unsigned long *v2_in, unsigned long *v3_in, + unsigned long *v4_in); + +void xor_altivec_5(unsigned long bytes, unsigned long *v1_in, + unsigned long *v2_in, unsigned long *v3_in, + unsigned long *v4_in, unsigned long *v5_in); From patchwork Thu Mar 22 20:20:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889644 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 406fMG6sdyz9s0y for ; Fri, 23 Mar 2018 08:05:14 +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="bUAwxl/b"; 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 406fMG5DcYzDqy4 for ; Fri, 23 Mar 2018 08:05:14 +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="bUAwxl/b"; 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::241; helo=mail-wr0-x241.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="bUAwxl/b"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 406dNN3LnBzF207 for ; Fri, 23 Mar 2018 07:21:08 +1100 (AEDT) Received: by mail-wr0-x241.google.com with SMTP id z73so10009648wrb.0 for ; Thu, 22 Mar 2018 13:21:07 -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=UmTCc7+Gfu4PuPDEGJN43JFZdclOV5z7vLP8sjhvtkk=; b=bUAwxl/bQCkCnc7z0ULZbc9J+qfr2ev6LR4073/qYCJ1yegN4sEl8hMLEE5VgFFDVL rkXlGFQszxi9tukveoy+hFoESjSOEdnwaEQAtlkF18dgT8Gat3XqFHx7ZjjtyRh93dK1 FIhJks7/l1S841dKZmczJZBR74BFNIyjnWIImcW4ljSTIPS5hFL0rCWNxK6YX1v30Ig6 wpSFQgRafHg3kzrW4tjl2eh8gm09uNY9bOUBXAl4cxzrw1HgvfTn/11H5Xq2ztqqeQ/o VGMXVrFPr75ghPGL/k+Bgbdz9duoMYQdztmsBm5CGk82pqHoUSZd5L4tcCGIZ0fxoO0v 6V9g== 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=UmTCc7+Gfu4PuPDEGJN43JFZdclOV5z7vLP8sjhvtkk=; b=FjWjDSrKVo/DT9Y2faJ5CJ6NJ6aVojLf7Zduhm3ds/cAtrG/wmBp4LQCY+2ld2NXiC Zqmk1UMWAJt2oMftZuRMhwRJefCgOQATLvT4SdTMKXbnHBG2/ni5QqrZ7Rj5xJUzNd9X iQgSSyI6kWmAOU74Tg7bjsaQBR+ByAY+JurJvrbnuVWbBT7gyjnYzx9PaFziXcwLz56w AQtrnBYieQn3sA9B+06TZ0CD/XKSq2XPq8kubtUyPJIREiHD3CE1k3n8kmlQEVKfNhJp jsjCW4KM4h/DqboMdSdRo8aVD74dqQ46vMoWUttrIYsoAgxkGl2Fd+qKU0o5+L70Apk3 1oAg== X-Gm-Message-State: AElRT7E7VWn36Xl7QVTpyON187+teJ03L2EJLu49GQWXqDNuH96sjzHZ OgnNQyW6NqshZRSSo6mDZzM= X-Google-Smtp-Source: AG47ELvJm5PQ1PFeQaA3piXJ5S1tPmrFQM1is4SiE1kAD4mvw5zbTUpaRkLbTrmLzPumK5KN097K2g== X-Received: by 10.223.182.2 with SMTP id f2mr19182389wre.117.1521750065282; Thu, 22 Mar 2018 13:21:05 -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 q21sm9038610wmd.40.2018.03.22.13.21.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:21:04 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id C390210C03A5; Thu, 22 Mar 2018 21:21:03 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 15/19] powerpc: Add missing prototype Date: Thu, 22 Mar 2018 21:20:01 +0100 Message-Id: <20180322202007.23088-16-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 one missing prototype for function rh_dump_blk. Fix warning treated as error in W=1: arch/powerpc/lib/rheap.c:740:6: error: no previous prototype for ‘rh_dump_blk’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/include/asm/rheap.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/include/asm/rheap.h b/arch/powerpc/include/asm/rheap.h index 172381769cfc..e75d96de19a0 100644 --- a/arch/powerpc/include/asm/rheap.h +++ b/arch/powerpc/include/asm/rheap.h @@ -83,6 +83,9 @@ extern int rh_get_stats(rh_info_t * info, int what, int max_stats, /* Simple dump of remote heap info */ extern void rh_dump(rh_info_t * info); +/* Simple dump of remote info block */ +extern void rh_dump_blk(rh_info_t *info, rh_block_t *blk); + /* Set owner of taken block */ extern int rh_set_owner(rh_info_t * info, unsigned long start, const char *owner); 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; From patchwork Thu Mar 22 20:20:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889646 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 406fVL4hGpz9s0y for ; Fri, 23 Mar 2018 08:11:22 +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="ZoDbWAWL"; 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 406fVL2CzxzDr2S for ; Fri, 23 Mar 2018 08:11:22 +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="ZoDbWAWL"; 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="ZoDbWAWL"; 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 406dNR6ZJrzF20G for ; Fri, 23 Mar 2018 07:21:11 +1100 (AEDT) Received: by mail-wr0-x242.google.com with SMTP id s10so9986369wra.13 for ; Thu, 22 Mar 2018 13:21:11 -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=c6Zg/PNmvs4AQkSoyT1Oxl/MI6fYj3A29uuCjxhuyvc=; b=ZoDbWAWLhL/O+GoFZvttzbR9Jq+k4Fa3ZGA81Mq+eHWD9WMTUpey2F0QXyjLiTL6Kw 96PGOU17kDinCkCmn52D2qXIOZ9YgqwPqgzV5jwEerDe+AScOHUUKhIaEKH0DEwFBRaC fjPXCbu72ii0YWED6T2x7bJ8nCq0RRWnX6fdpaFh9Z5S8vYICbW+S9JWBwaQRbsDkzIj ZqiVuFmxC4uhYxtqvFjI/7PHM4phpXylVAeqEavzwBbL9/98aKwbXlLiCeMKjUAy5dZ8 MWkRaYAFhwLIpMFAEXLV1cZJYbbPCwxvX4xZDOJaLnWbvjDkDnU11mmVE6ZjXHgWs3pM b6mw== 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=c6Zg/PNmvs4AQkSoyT1Oxl/MI6fYj3A29uuCjxhuyvc=; b=c4VWokZwC2/V7zkyEmpG9NmEiATXkURGXHtptWiUE/A4lHGLLjH77V6z29NE+zfcdz BBXozOW70TciefjRoluo6MN1BPvw6S59PXvbH6FKKhr6+LnCNTpgdWqoWnmXW44J0JRC Rzv5rDwqB7PfbhfPpvyU4nrrPL6N8dJjYSOWH4Cv3jkjDQVnFJm2lxpx9bNma9Gnzngv P3zhfO4dSrMXEbVx3QJ/YaZIHBxp3OPIrOtNgFIqSAON9GtfPQfw1yC+Hqe4pm+RTWZ/ oOVyzFdg18OFI0dBE2wMXYsdsHzd0fdYv9ohnkECyw3kokiQbt3x5BzOE4fUVv8YD8ks p2Lg== X-Gm-Message-State: AElRT7FQZS6ZEBUyCqrF/BATztHFELZi7HIGuhYdqxWtpAMLafpfDNJM HZhsFafTYeNC+COBcqYhbjI= X-Google-Smtp-Source: AG47ELtlLGd6gPI2dRDiZdh5V//2a39shh0/dqj9m849IKsb4yTtykJFwYy7p6jsJby3YQL4CwCvDg== X-Received: by 10.223.225.2 with SMTP id d2mr12540412wri.56.1521750069159; Thu, 22 Mar 2018 13:21:09 -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 q9sm6695066wrf.11.2018.03.22.13.21.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:21:08 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 9CAB710C03A5; Thu, 22 Mar 2018 21:21:07 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 17/19] powerpc/32: Add a missing include header Date: Thu, 22 Mar 2018 21:20:03 +0100 Message-Id: <20180322202007.23088-18-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 file was missing from the includes. Fix the following warning, treated as error with W=1: arch/powerpc/kernel/pci_32.c:286:6: error: no previous prototype for ‘sys_pciconfig_iobase’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/pci_32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index 85ad2f78b889..51cba7d7a4fd 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include From patchwork Thu Mar 22 20:20:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889647 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 406fYD3sDBz9s0y for ; Fri, 23 Mar 2018 08:13:52 +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="oz9NeHEV"; 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 406fYD200hzF1kt for ; Fri, 23 Mar 2018 08:13:52 +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="oz9NeHEV"; 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::241; helo=mail-wr0-x241.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="oz9NeHEV"; dkim-atps=neutral Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 406dNT6NLvzF20D for ; Fri, 23 Mar 2018 07:21:13 +1100 (AEDT) Received: by mail-wr0-x241.google.com with SMTP id d10so9993544wrf.3 for ; Thu, 22 Mar 2018 13:21:13 -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=a3Btp3OQ63yil0TMTE82U2q5fOojV9bAfzenQIn6miY=; b=oz9NeHEVQFUKIPmLZwJSJmgjXf9cob2z0IZq6UOgEUuWnqNRTvtwS/x9qzwfxVVMdc 883RT2aDnhbuRSl7uGHUcGcarJ8bDorxXHA5Y2zoTkbISez+iPvy596KG8Xv51sWzT/5 WhS2oUcDn0TF7S2/PwN5+cEwEmIaoNrmC8qjJv5r0SW/xClGkjSuf0mKid8W6XRexfli j47HHpd/hNOpGnuHE/o2Ptpr03AlJR/Htp6kiR3MHq9/RNWEaIvaV0dNIQ1aCFo0tQDc f2V6GhGkaFLUMy+vZqESVeYW745N5fZcVhgpQba++XNvahDESg2ScoP8hFL/+SyLhLwa EUFQ== 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=a3Btp3OQ63yil0TMTE82U2q5fOojV9bAfzenQIn6miY=; b=QRxUhJO848hv2E4nW+iq/7emCBx5uLp4ansfjdwxPrTTkCY9oSzLj4vkOzPyXSM7Ar Yl6TsFUZI5BPBjmzond9gemL7niKiYvzCckgPtZ6cG+1QrJaQQzX0PW6WEE/jRu3AHAF lYgZSSKC1stlwy7u++GmSSBuIkhSUPuphM50b84UIVJJ4SE2hMDFPOT7VraYgW9uNrk8 llnlON0i50GuVxqN8NzFKJIeQPQMUkor4caHjj6WJga6hYz62jkTEepOBEolaN11NY1x OF7ZbOBUB5nJ2RCOGN1s6Uzif1DpsY+MipXYba04QOgFQMi6F2PYpot6/bRDYeQtGDpu 2Rhw== X-Gm-Message-State: AElRT7FWND7Yw+AdUDPnxJzs+6jpSn3XdJOmixH/XxLRYLk/3FTSSwfC cuUQIf6xcRzz5zbWJETqIU0= X-Google-Smtp-Source: AG47ELu8/bOxxWQ5OMFO8OJJfifdmYOnJymtT2b9tbL3QFsfU7bPR5oBe+BjDzYOTt2+r0OVjJeTeQ== X-Received: by 10.223.145.161 with SMTP id 30mr20586371wri.106.1521750071074; Thu, 22 Mar 2018 13:21:11 -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 j3sm8691676wra.19.2018.03.22.13.21.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:21:10 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 8D57210C03A5; Thu, 22 Mar 2018 21:21:09 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 18/19] powerpc: Add a missing include header Date: Thu, 22 Mar 2018 21:20:04 +0100 Message-Id: <20180322202007.23088-19-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 file was missing from the includes. Fix the following warning, treated as error with W=1: arch/powerpc/kernel/vecemu.c:260:5: error: no previous prototype for ‘emulate_altivec’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/vecemu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/vecemu.c b/arch/powerpc/kernel/vecemu.c index 8812085883fd..4acd3fb2b38e 100644 --- a/arch/powerpc/kernel/vecemu.c +++ b/arch/powerpc/kernel/vecemu.c @@ -8,6 +8,7 @@ #include #include #include +#include #include /* Functions in vector.S */ From patchwork Thu Mar 22 20:20:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889648 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 406fcT4w0Xz9s0y for ; Fri, 23 Mar 2018 08:16:41 +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="swAvjcV3"; 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 406fcT3MSRzF1yV for ; Fri, 23 Mar 2018 08:16:41 +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="swAvjcV3"; 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::244; helo=mail-wr0-x244.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="swAvjcV3"; dkim-atps=neutral Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (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 406dNX1SZHzF20D for ; Fri, 23 Mar 2018 07:21:16 +1100 (AEDT) Received: by mail-wr0-x244.google.com with SMTP id o8so10002083wra.1 for ; Thu, 22 Mar 2018 13:21:16 -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=H1wD9jdgbLj2ktVat8+wW6wU+w6yUGjYesVPlwYPmtw=; b=swAvjcV3iUmYZcN2jAVsJh8lx+4P0UQMDTaUWppolnHO+qgqjDVykTqcqQm0Bl0F9w BgeQ9QpgkRmmptB2U8N9u4Sq8C21/wSNCKRXhilgO2iVqDwj3rITEjvhFABVsicPsE12 Plh9wym0N+3eiiaPfrumRbQfeD7bgIzloJr0aZEJmvFzUkC6D8Um+iALlIAvr+hxMdDe 8fQoJVIqRidTAsAes8Y0aanWshh6uIF4ttGvksDcs4rhug7fSDsnZ6in4A2BCWIeVcY2 Z/2yCvqszsT1KTR7sFfRBmgX5MBpv8GDQH27/n7HxfJeNuwhhqjKSNOa0rj1+Znoej1M O+2w== 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=H1wD9jdgbLj2ktVat8+wW6wU+w6yUGjYesVPlwYPmtw=; b=ii2d/qwVTes+Ojt3kSxRo/W0Lc8BIdrphRkP128BM1don6QsaaVHk8UjmEq7VGj4jU Vw6owOWFQnnPZO+603SLJzKdsTjUrobtXA8Zh2/BWStgCbakDZEQ90GlzOs5pGDXuvq0 Mviif/1UukAUw09qJGem1nFgdEeYO4ziGhjvnZqXMvEn5d+Gi0jVct76HA93vfKKoh0H FZpPLDN2qc1RFhUyx1DS23xA7x/52vTaAm7IYwvBMzY7g79U1AMm70brGiwoPtg6JMK0 kh1kGobIAZG7/xkVBe2R0fPGMyxKizbjc/ET8LrJU62EobuBLfYewJXwHX2Jq4dZtQJX eJGw== X-Gm-Message-State: AElRT7F3hHEqFDmnNNiHN+4IOtVXHLi62HcmmwODveu2IBaKpUytJHer TZZ6VzAociRtheA68Jk9wc8= X-Google-Smtp-Source: AG47ELswrI0VBHmtWchCXOka+8EUPVZMAH13pmXGH++DEqrAs2l+ugGI66QOAOyGkjRu5Uaecp4SVg== X-Received: by 10.223.189.14 with SMTP id j14mr9981348wrh.138.1521750072965; Thu, 22 Mar 2018 13:21:12 -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 m184sm6957115wme.40.2018.03.22.13.21.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:21:12 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 74C8610C03A5; Thu, 22 Mar 2018 21:21:11 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH 19/19] powerpc/tau: Synchronize function prototypes and body Date: Thu, 22 Mar 2018 21:20:05 +0100 Message-Id: <20180322202007.23088-20-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" Some function prototypes and body for Thermal Assist Units were not in sync. Update the function definition to match the existing function declaration found in `setup-common.c`, changing an `int` return type to a `u32` return type. Move the prototypes to a header file. Fix the following warnings, treated as error with W=1: arch/powerpc/kernel/tau_6xx.c:257:5: error: no previous prototype for ‘cpu_temp_both’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:262:5: error: no previous prototype for ‘cpu_temp’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:267:5: error: no previous prototype for ‘tau_interrupts’ [-Werror=missing-prototypes] Compile tested with CONFIG_TAU_INT. Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/irq.c | 2 +- arch/powerpc/kernel/setup-common.c | 6 ------ arch/powerpc/kernel/setup.h | 6 ++++++ arch/powerpc/kernel/tau_6xx.c | 7 +++++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index f88038847790..3777b6e09142 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c @@ -89,7 +89,7 @@ atomic_t ppc_n_lost_interrupts; #ifdef CONFIG_TAU_INT extern int tau_initialized; -extern int tau_interrupts(int); +extern u32 tau_interrupts(unsigned long cpu); #endif #endif /* CONFIG_PPC32 */ diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index d73ec518ef80..bd3675c3984b 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -192,12 +192,6 @@ void machine_halt(void) machine_hang(); } - -#ifdef CONFIG_TAU -extern u32 cpu_temp(unsigned long cpu); -extern u32 cpu_temp_both(unsigned long cpu); -#endif /* CONFIG_TAU */ - #ifdef CONFIG_SMP DEFINE_PER_CPU(unsigned int, cpu_pvr); #endif diff --git a/arch/powerpc/kernel/setup.h b/arch/powerpc/kernel/setup.h index d768023a04bd..3c9c19430439 100644 --- a/arch/powerpc/kernel/setup.h +++ b/arch/powerpc/kernel/setup.h @@ -70,4 +70,10 @@ void kvm_cma_reserve(void); static inline void kvm_cma_reserve(void) { }; #endif +#ifdef CONFIG_TAU +extern u32 cpu_temp(unsigned long cpu); +extern u32 cpu_temp_both(unsigned long cpu); +extern u32 tau_interrupts(unsigned long cpu); +#endif /* CONFIG_TAU */ + #endif /* __ARCH_POWERPC_KERNEL_SETUP_H */ diff --git a/arch/powerpc/kernel/tau_6xx.c b/arch/powerpc/kernel/tau_6xx.c index 1fc6a89a978e..e2ab8a111b69 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -27,6 +27,9 @@ #include #include #include +#include + +#include "setup.h" static struct tau_temp { @@ -259,12 +262,12 @@ u32 cpu_temp_both(unsigned long cpu) return ((tau[cpu].high << 16) | tau[cpu].low); } -int cpu_temp(unsigned long cpu) +u32 cpu_temp(unsigned long cpu) { return ((tau[cpu].high + tau[cpu].low) / 2); } -int tau_interrupts(unsigned long cpu) +u32 tau_interrupts(unsigned long cpu) { return (tau[cpu].interrupts); }