Received: by 10.223.185.116 with SMTP id b49csp1490292wrg; Sun, 4 Mar 2018 03:09:52 -0800 (PST) X-Google-Smtp-Source: AG47ELswOj0Db444bnnSLt1iZpjeR7uNaDrNjiqfDI0o/Wpe5HCid9jknSt1qm0sbOaDyJ9hnDXN X-Received: by 2002:a17:902:b418:: with SMTP id x24-v6mr9884987plr.320.1520161792739; Sun, 04 Mar 2018 03:09:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520161792; cv=none; d=google.com; s=arc-20160816; b=jYLCy6JGWnRI3Xw26uXXpoMP65y/1JpIELgKngTMdaZ2fmd20oRvvHE7BQi61dtt14 pwa/hqlQf83s1rqzdjSV0eTLBR68v3QEBuX6J/jKx4VPGlafqLTfaw7KRKA2Xoe4FEqQ rKerwZNBadoNSIPpP2vkv3ntteuwP2Bss2lxRqXB+6pZs124t+AqQ4es4TpEG6mnNyzh HTw/mrsRa84/S4Mod35KNcdF7ksHLPq9FaHAE+KNTURXh/xWsgsZpVDrdad0Rg5JgBA7 Wn1xKNIPMxJfe/6MUjiAwuCjSBgOkUJmA2zVELtaYZ0LY5gLfvTC05rtujwxiVpfOdez Mugw== 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:references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=2T56mLQobsMqmi85wdTOX60/Fvio6KyEsQxcjLhUknY=; b=g+mfiQjsK1Wmi7Iub6QZWKRts0E7xh5kbCWdI7qJKX8sY4b8nq/g9+Cp1dtYHX8wI+ qXCuvsrzEaIrgPmfXAmr/0V4it4n52/h6TTsnSi2w4O+FGxADbo2C3jQowUJxJqqavHk WRRXlJzXsteg6It7ONuirgUHZ73d1V2VU7t3pqxKTuIxxG3RoXuERZEah53oGZ3fbUhZ J6Dqm/mqhPcawj0Fm+I7Ox0M/1AHpS4m2ZfBOsbfERn951+p17KHNIBdJK19Q6Q0thtL enPp5Ir/LLLeXU0S2J2pNxn2oqaXGLfUrj8lDhiv7SV4GH1H+DLENbqKbcR6Lyo9XPtT s5Xw== ARC-Authentication-Results: i=1; mx.google.com; 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 y96-v6si7643405plh.796.2018.03.04.03.09.28; Sun, 04 Mar 2018 03:09:52 -0800 (PST) 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; 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 S932225AbeCDKyU convert rfc822-to-8bit (ORCPT + 99 others); Sun, 4 Mar 2018 05:54:20 -0500 Received: from ozlabs.org ([103.22.144.67]:39465 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751844AbeCDKyT (ORCPT ); Sun, 4 Mar 2018 05:54:19 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 3zvKfd1qQwz9s3q; Sun, 4 Mar 2018 21:54:17 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Mathieu Malaterre Cc: Benjamin Herrenschmidt , Paul Mackerras , Jiri Slaby , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Mathieu Malaterre Subject: Re: [PATCH 15/21] powerpc: Add missing prototype for MMU_setup In-Reply-To: <20180225172236.29650-16-malat@debian.org> References: <20180225172236.29650-1-malat@debian.org> <20180225172236.29650-16-malat@debian.org> Date: Sun, 04 Mar 2018 21:54:16 +1100 Message-ID: <87o9k4glgn.fsf@concordia.ellerman.id.au> 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 Mathieu Malaterre writes: > Add a function declaration for MMU_setup at the beginning of the file to > fix a warning (treated as error in W=1): > > CC kernel/sys.o > arch/powerpc/mm/init_32.c:102:13: error: no previous prototype for ‘MMU_setup’ [-Werror=missing-prototypes] > void __init MMU_setup(void) > ^~~~~~~~~ > cc1: all warnings being treated as errors Can't it be static instead? $ git grep -n MMU_setup arch/powerpc/mm/init_32.c:102:void __init MMU_setup(void) arch/powerpc/mm/init_32.c:135: MMU_setup(); cheers