From patchwork Fri Jun 22 19:26: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: 933565 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41C7sh4bsMz9s0W for ; Sat, 23 Jun 2018 05:28:56 +1000 (AEST) 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="ZcmoqPi/"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41C7sh34pJzF14h for ; Sat, 23 Jun 2018 05:28:56 +1000 (AEST) 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="ZcmoqPi/"; 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="ZcmoqPi/"; 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 41C7qb3J7KzF132 for ; Sat, 23 Jun 2018 05:27:07 +1000 (AEST) Received: by mail-wm0-x242.google.com with SMTP id p11-v6so3757944wmc.4 for ; Fri, 22 Jun 2018 12:27: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:mime-version :content-transfer-encoding; bh=yvvvSbx0/lqHcUeMeexa3pxT0FD18SDoSNhBteFCioY=; b=ZcmoqPi/rI4ofXERWdmKiDA/gzM5r/ZYRs7t6Uxcufo4HRmB5mX3Q0N5uBEsl78Arb /KjMUKSkzVN1Wb1I4+c6GVx7cUC6Ovrxr0i029vZu7oTCORlL1yslDq92usxSKVv3C01 ab++T2A+kvoR7PbdipM3OJ6bIAC2S3ErPylThvllnOPv6OjvPcW3vKUIaL6ifzxWyqN4 554vUkcLUR2L7kO2kq0io++7KGX45AtA41HLjBTm1xhxZz1O2pYU+TxcFbfJKLUfotcb QLdz3HrovlkEeelm/AaX/K4WEygbJcLhp9CXojk1wsgcZhI4+RvsCr8b1A/0yt0Q2vn0 Guvg== 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 :mime-version:content-transfer-encoding; bh=yvvvSbx0/lqHcUeMeexa3pxT0FD18SDoSNhBteFCioY=; b=WaJ1aBS3QUXS/GYRZ/qHr+UBG91DuLQ8Jh3MsrImejxXwI5aQKhBgXJayHfLlXL3Rj pkPU9VQVaKYyM8quXVnOGs71MabUen405+X8WKTYe8tbhMVqvNvn8XmN40odkMBc7njv Go5gG9OKqqSeltF4bEnMjYL/m3f+BRe5sdQlICEWyTVBCgW06b4+XxZvf+qbuExunmEf BzwZD1QE/c/qD8NCy10qSvElbdihgAUgNstodYDTwYJ5KKuFUhVaLW3Hrd2ia2NYe/8p CXE7X5kovAx09YKXo+lkLgCl2EbgToreee6HD9SAPTI1Wk5jsRwJHp65V0wIm9u1XMrR e//g== X-Gm-Message-State: APt69E19+Jr2bJDa6U91X9f+wodCrDOnHOIQZvkkFTd+CWQloeJG7qjV SKTmd9d5wr4LPQvnqjsOeew= X-Google-Smtp-Source: ADUXVKL4pjRuQcKqnjRtFnVytuPvAoxyx8Hn6YuNOxDLkUP8L1JArh3Hocsx6mRCNJyxkFvfLwyBXw== X-Received: by 2002:a1c:b5c7:: with SMTP id e190-v6mr760792wmf.118.1529695623348; Fri, 22 Jun 2018 12:27: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 s17-v6sm1628939wmc.34.2018.06.22.12.27.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Jun 2018 12:27:01 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 718F810C0452; Fri, 22 Jun 2018 21:27:00 +0200 (CEST) From: Mathieu Malaterre To: Michael Ellerman Subject: [PATCH] powerpc: include setup.h header file to fix warnings Date: Fri, 22 Jun 2018 21:26:53 +0200 Message-Id: <20180622192655.23464-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 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, Paul Mackerras , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Make sure to include setup.h to provide the following prototypes: - irqstack_early_init - setup_power_save - initialize_cache_info Fix the following warnings (treated as error in W=1): arch/powerpc/kernel/setup_32.c:198:13: error: no previous prototype for ‘irqstack_early_init’ [-Werror=missing-prototypes] arch/powerpc/kernel/setup_32.c:238:13: error: no previous prototype for ‘setup_power_save’ [-Werror=missing-prototypes] arch/powerpc/kernel/setup_32.c:253:13: error: no previous prototype for ‘initialize_cache_info’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/setup_32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 74457485574b..9827b6b3aaaa 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -41,6 +41,8 @@ #include #include +#include "setup.h" + #define DBG(fmt...) extern void bootx_init(unsigned long r4, unsigned long phys);