Re: [PATCH 3/3] Add support to M54xx DMA FEC Driver

From: Geert Uytterhoeven
Date: Wed Sep 05 2012 - 07:25:29 EST


On Wed, Sep 5, 2012 at 11:14 AM, Philippe De Muyter <phdm@xxxxxxxxx> 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@xxxxxxxxxxxxxx

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/