From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 19 Sep 2010 01:45:14 +0200 (CEST) Received: from mail.perches.com ([173.55.12.10]:2103 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1491081Ab0IRXpH (ORCPT ); Sun, 19 Sep 2010 01:45:07 +0200 Received: from [192.168.1.162] (unknown [192.168.1.162]) by mail.perches.com (Postfix) with ESMTP id 8A3FF24368; Sat, 18 Sep 2010 16:44:55 -0700 (PDT) Subject: Re: [PATCH 01/25] arch/mips: Use static const char arrays From: Joe Perches To: Ralf Baechle Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org In-Reply-To: <20100918225447.GA4739@linux-mips.org> References: <8fcec0d2a48e806558e6bc39d5aa98518a97f8c7.1284406638.git.joe@perches.com> <20100918225447.GA4739@linux-mips.org> Content-Type: text/plain; charset="UTF-8" Date: Sat, 18 Sep 2010 16:44:59 -0700 Message-ID: <1284853499.1778.83.camel@Joe-Laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-archive-position: 27767 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: joe@perches.com Precedence: bulk X-list: linux-mips Return-Path: X-Keywords: X-UID: 14632 On Sat, 2010-09-18 at 23:54 +0100, Ralf Baechle wrote: > On Mon, Sep 13, 2010 at 12:47:39PM -0700, Joe Perches wrote: > > diff --git a/arch/mips/pnx8550/common/reset.c b/arch/mips/pnx8550/common/reset.c > > index fadd874..e0ac0b2 100644 > > --- a/arch/mips/pnx8550/common/reset.c > > +++ b/arch/mips/pnx8550/common/reset.c > > @@ -27,8 +27,8 @@ > > > > void pnx8550_machine_restart(char *command) > > { > > - char head[] = "************* Machine restart *************"; > > - char foot[] = "*******************************************"; > > + static const char head[] = "************* Machine restart *************"; > > + static const char foot[] = "*******************************************"; > > > > printk("\n\n"); > > printk("%s\n", head); > NAK. > The printks should have been taken out and shot. And while at it line > use the space on the other side of the wall for pnx8550_machine_power_off. Fix them up as you see fit Ralf. I don't have the hardware and was simply moving stuff that should be const into const ro sections. There are a lot of defects in that file, for instance the printks don't use KERN_. cheers, Joe