Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1126384imm; Wed, 20 Jun 2018 12:03:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJl16+ek4yfFPwZXwW1lwZ1r4bw8yspqUIZQifgyOcg0sI72wRyK2ReqWqr5/zmMdL+nqpp X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr24863518plb.274.1529521391259; Wed, 20 Jun 2018 12:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529521391; cv=none; d=google.com; s=arc-20160816; b=FlL78HDYrc2wAWhKztusPgnD2b7H1oNJo0fccdV18/x37X4kS+RJp6TwY7J9i7syt+ +f8qK46OmgnGQ7on08IO54jcKJL1z8qQbLxbd3tvLvgd/8b8N/EZh2BijDYiBFN2El5B zMB7fEpQEwVS91I2a770EbTjD5l7XOcHrsQh/9GKQKdO+f5Bxzhu8/rTW9RVMxZB2A+b OymAyIERIBM2LpVUi/htIrBWel3R4FBfNiJGup92NEro3neVsv0/Tarok9Lf7WHmPA9+ UOAVbVFuK2vz8GaU4HJ30yEcsGWfxtKDD4KJ1x0O7j4nqvIaZ5NcTdMQv+Gqciz8FInh MQ1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=UC5dXIGt593eVM6AX+ICADj2mmyQXD7nyucwhBOKZ/E=; b=dxYh9Buniawj/SjPA0pUWVjvd8XlJ7cC2NXGdk8TbN92qxNiO1KDZ1tbM20MvvReX1 rEdyMXfbc51tfo4Bx5KEYHzKnU33K1bB86pSKnwvANQn00WwFpi4BJPxwcXfByIWLQvs KB3ybQuelck6AfY/ghdvm2UIMUHR4YS9OwTLfnhIuArFDdQChUJuEZ/JxKMsi/JqVq8m +dAQ3+bfbLTbkZnTHekMhB4vX8ENvN+lVkrBEPbeyyTT1XfLZfEzeCuml2o45h/Dz/wX xxK8ObS9yFNENAKBpyk7GsFdbNcBtsI6R1bc4rPiF7F3ax/CQtVm4osdltYdfe75nBe4 bZeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uUXACcRJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b62-v6si3073764pfm.104.2018.06.20.12.02.57; Wed, 20 Jun 2018 12:03:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uUXACcRJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754580AbeFTTAp (ORCPT + 99 others); Wed, 20 Jun 2018 15:00:45 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:50506 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753989AbeFTTAo (ORCPT ); Wed, 20 Jun 2018 15:00:44 -0400 Received: by mail-wm0-f66.google.com with SMTP id e16-v6so1207771wmd.0 for ; Wed, 20 Jun 2018 12:00: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=UC5dXIGt593eVM6AX+ICADj2mmyQXD7nyucwhBOKZ/E=; b=uUXACcRJEoQvaRhUlwH2qg4BEGme4hTyCfQlPe7VROBth/XbZYxFl6hHOUwDpcMcrI uGdwheMv+RNg8+14tTxEHQvPGoNVbQiVZ/SYSf03IJiSxk6sawwwU1lgbD57c0bUZUG1 f2U1sbZaZm/QYPHwllRIYRVAvG+X/9kWN3HO4uxAQTYkbQgcCXB6+Y34NgfXchjIOtlY UW8Wpj1rJggzWM0rQ8Qnl7/gKU/7pIqhEl+fY9Jb4hvk3jS4xLyPOIcWvBP/z/vETzPR JkSlQHoTv99dDEUMzAbxRU8MlGLQbXo86q/T0vZEl3AXwOh8/Qq7lc5U9QsOpn63/VCN 9Cng== 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=UC5dXIGt593eVM6AX+ICADj2mmyQXD7nyucwhBOKZ/E=; b=DZP7Zq40SWj3dmf8P6bnzBEUdw5SdXxE+GApsNfCwCdgl6jz4OyHjK1p2CX56eo6d7 9Mm7kBQdGBZH/WErqmNdr7/pUdlVodqOGzW3h8i2E0rbRI5tY74u5QcCWZUJc8rjT4k2 +k9LfcJrzPHSzm70oui4VPLWp0/Gzbth9pfICPfon4mlLxZcbD+ouysWtP4+3T2LTrnP 4gMS14NjZb838fvILM3Mh2v+zaLkc4WpY0c2XRFJGzLO4+SoBJUsvHDrH/tuxyaUkyrR WwbFNCYOjfGzZ/tsgu08Kvj8BNrAixY4kpwRttvY/qvWNiPSAnXW+EgFZkr7ZaJildYp oUtA== X-Gm-Message-State: APt69E2UTaqHPDXDRpsnZVOLZ02LHNFrfk11mJjM2kvuPzjQhtTiNneq CdklVdYlit1H1glJ2dU4fSbAxd/i X-Received: by 2002:a1c:b80a:: with SMTP id i10-v6mr2830672wmf.123.1529521242833; Wed, 20 Jun 2018 12:00: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 72-v6sm3659924wrb.22.2018.06.20.12.00.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 12:00:41 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 189AB10C03DB; Wed, 20 Jun 2018 21:00:40 +0200 (CEST) From: Mathieu Malaterre To: Michael Ellerman Cc: Mathieu Malaterre , Benjamin Herrenschmidt , Paul Mackerras , Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] powerpc/32: Remove left over function prototypes Date: Wed, 20 Jun 2018 21:00:37 +0200 Message-Id: <20180620190038.3250-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180408194821.19682-1-malat@debian.org> References: <20180408194821.19682-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 4aea909eeba3 ("powerpc: Add missing prototypes in setup_32.c") prototypes for - ppc_setup_l2cr - ppc_setup_l3cr - ppc_init were added but at the same time in commit d15a261d876d ("powerpc/32: Make some functions static") those same functions were made static. Fix conflicting changes by removing the prototypes and leave the function as static. Fix the following warnings, treated as errors with W=1: arch/powerpc/kernel/setup_32.c:127:19: error: static declaration of ‘ppc_setup_l2cr’ follows non-static declaration arch/powerpc/kernel/setup_32.c:140:19: error: static declaration of ‘ppc_setup_l3cr’ follows non-static declaration arch/powerpc/kernel/setup_32.c:186:19: error: static declaration of ‘ppc_init’ follows non-static declaration Signed-off-by: Mathieu Malaterre --- v3: correct subject line to be less confusing v2: Previous version contained the reverted patch, correct that. arch/powerpc/kernel/setup.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/kernel/setup.h b/arch/powerpc/kernel/setup.h index 35ca309848d7..829ed66f0a40 100644 --- a/arch/powerpc/kernel/setup.h +++ b/arch/powerpc/kernel/setup.h @@ -19,9 +19,6 @@ void irqstack_early_init(void); void setup_power_save(void); unsigned long __init early_init(unsigned long dt_ptr); void __init machine_init(u64 dt_ptr); -int __init ppc_setup_l2cr(char *str); -int __init ppc_setup_l3cr(char *str); -int __init ppc_init(void); #else static inline void setup_power_save(void) { }; #endif -- 2.11.0