[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMuHMdWwSe8-DHUiRF89P2Vf99U4C1tsFaqjswdOEk5TuKJXaQ@mail.gmail.com>
Date: Wed, 5 Sep 2012 13:25:35 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Philippe De Muyter <phdm@...qel.be>
Cc: Greg Ungerer <gerg@...pgear.com>,
Stany MARCEL <stany.marcel@...asys-ingenierie.com>,
linux-m68k@...ts.linux-m68k.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] Add support to M54xx DMA FEC Driver
On Wed, Sep 5, 2012 at 11:14 AM, Philippe De Muyter <phdm@...qel.be> wrote:
> and I am now at :
> 464 WARNING: line over 80 characters
> 90 WARNING: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
>
> Many "volatile" warnings are about such definitions :
>
> #define FEC_FECFRST(x) (*(volatile unsigned int *)(x + 0x1C4))
> which are afterwards used with
>
> + FEC_FECFRST(base_addr) |= FEC_SW_RST;
> + FEC_FECFRST(base_addr) &= ~FEC_SW_RST;
> + FEC_FECFRST(base_addr) |= FEC_SW_RST;
> + FEC_FECFRST(base_addr) &= ~FEC_SW_RST;
> + FEC_FECFRST(base_addr) |= FEC_SW_RST | FEC_RST_CTL;
> + FEC_FECFRST(base_addr) &= ~FEC_SW_RST;
>
> Any advice about those ones ?
>
> while many "80 characters" ones are about :
> #4014: FILE: arch/m68k/platform/coldfire/MCD_tasks.c:2406:
> + 0x6000000b, /* 0098(:1560): DRD2A: EU0=0 EU1=0 EU2=0 EU3=11 EXT ini
> t=0 WS=0 RS=0 */
>
> I would like to keep those lines intact because the comment seems to actually
> be the assembler source of the hex value at left, which seems to be a
> microcode, and it makes sense to me to keep that on one line. What do
> you think about that ?
Just ignore these 2 warnings (for this particular case).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists