[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071218222259.GX17536@waste.org>
Date: Tue, 18 Dec 2007 16:22:59 -0600
From: Matt Mackall <mpm@...enic.com>
To: Eric Dumazet <dada1@...mosbay.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Linux kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] procfs : Move some extern declaration from fs/proc/proc_misc.c to include/linux/seq_file.h
On Tue, Dec 18, 2007 at 10:25:50PM +0100, Eric Dumazet wrote:
> Some 'extern struct seq_operations' are wrongly defined in
> fs/proc/proc_misc.c (they miss a const qualifier)
>
> In order to fix this correctly, move the "extern ... " declaration from .c
> file to an appropriate include file, as advised by checkpatch.pl
>
> Note : "extern struct seq_operations cpuinfo_op;" will be taken into account
> in a separate patch, since its const status is arch dependant.
seq_file.h doesn't seem the best place for these, as it's otherwise
unpolluted with anything but seq_file internals.
Most of these things perhaps ought to be pushed out to their relevant
subsystems and then no .h file declaration will be needed.
--
Mathematics is the supreme nostalgia of our time.
--
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