Received: by 10.213.65.68 with SMTP id h4csp1892098imn; Sun, 8 Apr 2018 14:01:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx49UyXcI73GpRtXoIp19Wwe1cWWLrKO/tvNbbD5D++6lQEiJDx5LXzQRI4ta5rWvZIaT7V2J X-Received: by 10.99.132.72 with SMTP id k69mr23300914pgd.367.1523221263928; Sun, 08 Apr 2018 14:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523221263; cv=none; d=google.com; s=arc-20160816; b=nGNfaVhKUqDDRCvqtR8E9XoFHBPXIcrtF9P6ViCCwubjHWHUtuKg829jw3uca43Qwp 2Z2lRLZaSjYlltEhtNUkUijg6NA0EG3p5/HnEg7AoWzFxl0/c8KMDSz5G2DbDUQVOgz9 m+71YY0EMqN06qczsceFCWFD83mq/TgbWC5vFXBpwUamgWCx3dy4qcVrmhBbazmwODY+ 4GAV+e1wsJ7Uggwiol9ecBclGtv0EN/YTocjNtkS5BpHrpWhCerLHN2uXQxNGQfscvBd Arh4rzwi/cKOVY+fLaUCXKE3X1vE0NE/bBOJuQnAO3cXI0uTNP7ZhCK1WFCwHPs2sqgr CqQw== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=eNafx1Q3giwcb+O82bYTwIHxkbkSPjkPw/U/2CAoETc=; b=Spis+6A4HQS7Veod46T2+Wxbp/Q5oxIm/05y7fZWXUL9IrJhDYaBOUuey26hd2faUz Z0gOUGBoF7ZaZD9xYyDvFpj49azvGk3a01nz/4pPM7DEh2TwqxkJssm4moA2ieDcm9V+ edWKq1qdhIl1lPbZrFy5EazK5jcqO0tnX1EMzvVqQ5WUcNxfLoVuKFpz7r0q+d88e1RL nWjGTY65PQzPdSuHfEQcKngwM3BTxlXpgxiM3+bTqZfB8h6vRF/ly55XosZTtuxgQXpt znggtTCvGoaygWvqWcEpA+vtz5i3L+0wKJFXpngpYrTPs0p6NqZmLDUGdzWTZcBmunUe lFgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bsPZE4iR; 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 b3-v6si13540007pld.2.2018.04.08.14.00.27; Sun, 08 Apr 2018 14:01:03 -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=bsPZE4iR; 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 S1752615AbeDHTn1 (ORCPT + 99 others); Sun, 8 Apr 2018 15:43:27 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33329 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbeDHTn0 (ORCPT ); Sun, 8 Apr 2018 15:43:26 -0400 Received: by mail-wr0-f196.google.com with SMTP id z73so6606605wrb.0 for ; Sun, 08 Apr 2018 12:43:25 -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=eNafx1Q3giwcb+O82bYTwIHxkbkSPjkPw/U/2CAoETc=; b=bsPZE4iRBlfHxPGk5tfLC2pwwhL1ui5XqJ/80lL4WGKsHoOcFTgez6z2RgCHZxqCu+ QSYYMIhG11NEpvYBmXDiGro4yGZRAelwxjBj7IR75k3x5fH+sNKblHqSyGpyHlG9OAO8 wxoFuT8EQFMn3Z9INSHlp7KnL7QGMBv7GHdgenBdPulj6ZLLuAB+QY7vYKCDgud/6M78 I4ig5e/g+WerRV93fNVZZ6xQlLvxpfvOCyGA6UCPSU3PKjLI0SYMyvKF/GLuWeTbfmeT o2UzQjldRJ8vLDGIYdY5OpnfdqZXSOGrvtB0OS31m4H0+xuNYkc6vdambBvpKHMtdzWq a6gg== 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=eNafx1Q3giwcb+O82bYTwIHxkbkSPjkPw/U/2CAoETc=; b=QzRJ73YYRxl1Q7R1Xksj8EGQ17D3zFEIDYkYZkEDrJUA3cVOKLuifICJYS9fpJBcUa OExqM2LMGdQFbS4KNSDtLK/0MY5GMf8k1Qch2AoFx33Oq2kXPqJtvfhs8LKsxhwUdT6M qOO9gCe15PVmfkNaiV2UFcMg0/FdSFqNC/09ZCGZes0vYyvo+oUi5AsbHXRauDf982zW g3X1MBi6Z7vD+RyveMO8WV7r/lR4OSfWaSGvU4kNMMx/V+UdADvvOhnyN96lfNnxuQxP u9WTr4pwdH1a5yDV1gG+9SWjhhIUNEYfzj0bcMmUtweEGjfHpuWU+3kMWIAmAwqFXA3X t4zw== X-Gm-Message-State: AElRT7GPS0391uNbWBN3NM8zENJybcJNHcNdkERDh/WUhor8OM03n8mG 3zvxvi9/j1/MtnkCQXmurlM= X-Received: by 10.223.182.18 with SMTP id f18mr22710720wre.211.1523216605021; Sun, 08 Apr 2018 12:43:25 -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 y42sm17098553wry.97.2018.04.08.12.43.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Apr 2018 12:43:24 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id B554610C3178; Sun, 8 Apr 2018 21:43:22 +0200 (CEST) From: Mathieu Malaterre To: Michael Ellerman Cc: Mathieu Malaterre , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/32: Make some functions static Date: Sun, 8 Apr 2018 21:43:18 +0200 Message-Id: <20180408194318.8062-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 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 --- arch/powerpc/kernel/setup_32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 9827b6b3aaaa..9e79be13b937 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -124,7 +124,7 @@ notrace void __init machine_init(u64 dt_ptr) } /* Checks "l2cr=xxxx" command-line option */ -static int __init ppc_setup_l2cr(char *str) +int __init ppc_setup_l2cr(char *str) { if (cpu_has_feature(CPU_FTR_L2CR)) { unsigned long val = simple_strtoul(str, NULL, 0); @@ -137,7 +137,7 @@ static int __init ppc_setup_l2cr(char *str) __setup("l2cr=", ppc_setup_l2cr); /* Checks "l3cr=xxxx" command-line option */ -static int __init ppc_setup_l3cr(char *str) +int __init ppc_setup_l3cr(char *str) { if (cpu_has_feature(CPU_FTR_L3CR)) { unsigned long val = simple_strtoul(str, NULL, 0); @@ -183,7 +183,7 @@ EXPORT_SYMBOL(nvram_sync); #endif /* CONFIG_NVRAM */ -static int __init ppc_init(void) +int __init ppc_init(void) { /* clear the progress line */ if (ppc_md.progress) -- 2.11.0