public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: WANG Cong <xiyou.wangcong@gmail.com>
Cc: akpm@osdl.org, LKML <linux-kernel@vger.kernel.org>,
	ralf@linux-mips.org, kirk@hpc.ee.ntu.edu.tw,
	linux-mtd@lists.infradead.org
Subject: Re: [Resend][Patch] drivers/mtd/maps/tqm8xxl.c: Do some cleanups
Date: Fri, 13 Jul 2007 14:38:03 +0100	[thread overview]
Message-ID: <1184333884.8809.5.camel@hades.cambridge.redhat.com> (raw)
In-Reply-To: <20070713131458.GA1997@localhost.localdomain>

On Fri, 2007-07-13 at 21:14 +0800, WANG Cong wrote:
> On Fri, Jul 13, 2007 at 10:56:42AM +0100, David Woodhouse wrote:
> >On Fri, 2007-07-13 at 11:48 +0800, WANG Cong wrote:
> >>                 if(map_banks[idx] == NULL) {
> >>                         ret = -ENOMEM;
> >> -                       /* FIXME: What if some MTD devices were probed already? */
> >> +                       /* FIXME: What if some MTD devices were probed
> >> +                       already? */
> >>                         goto error_mem;
> >>                 } 
> >
> >
> >That's just horrid. Leave it as it was.
> >
> 
> Sorry, I can't fully understand you. You mean only the above change is horrid or
> the entire patch?

Just the above change. See Linus' comments about strict limits on 80
columns being a Nazi dream.

> I have some questions about mtd/maps drivers. Even when I use `make allyesconfig`,
> I still can't compile some drivers. I should add the corresponding CONFIGs manually.
> Why this? And I still got some errors and warnings, such as:
> 
> drivers/mtd/maps/pmcmsp-flash.c:40:22: error: msp_prom.h: No such file or directory
> drivers/mtd/maps/pmcmsp-flash.c:41:22: error: msp_regs.h: No such file or directory
> drivers/mtd/maps/pmcmsp-flash.c: In function 'init_msp_flash':
> drivers/mtd/maps/pmcmsp-flash.c:62: error: 'DEV_ID_REG' undeclared (first use in this function)
> drivers/mtd/maps/pmcmsp-flash.c:62: error: (Each undeclared identifier is reported only once
> drivers/mtd/maps/pmcmsp-flash.c:62: error: for each function it appears in.)
> drivers/mtd/maps/pmcmsp-flash.c:62: error: 'DEV_ID_SINGLE_PC' undeclared (first use in this function)
> drivers/mtd/maps/pmcmsp-flash.c:63: error: 'ELB_1PC_EN_REG' undeclared (first use in this function)
> drivers/mtd/maps/pmcmsp-flash.c:63: error: 'SINGLE_PCCARD' undeclared (first use in this function)
> 
> Did I miss something?

I think that map driver should probably depend on CONFIG_PMC_MSP. Ralf?

-- 
dwmw2

  reply	other threads:[~2007-07-13 13:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12 15:01 [Patch] drivers/mtd/maps/tqm8xxl.c: Style cleanups WANG Cong
2007-07-12 16:11 ` Josh Boyer
     [not found]   ` <20070713034822.GA2370@localhost.localdomain>
2007-07-13  9:56     ` [Resend][Patch] drivers/mtd/maps/tqm8xxl.c: Do some cleanups David Woodhouse
2007-07-13 13:14       ` WANG Cong
2007-07-13 13:38         ` David Woodhouse [this message]
2007-07-13 14:24           ` Ralf Baechle
2007-07-13 14:31             ` David Woodhouse
2007-07-13 15:11               ` WANG Cong
2007-07-13 15:05             ` WANG Cong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1184333884.8809.5.camel@hades.cambridge.redhat.com \
    --to=dwmw2@infradead.org \
    --cc=akpm@osdl.org \
    --cc=kirk@hpc.ee.ntu.edu.tw \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=ralf@linux-mips.org \
    --cc=xiyou.wangcong@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox