[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20091008111427.GA16941@iram.es>
Date: Thu, 8 Oct 2009 13:14:27 +0200
From: Gabriel Paubert <paubert@...m.es>
To: Jérôme Pouiller <j.pouiller@...mic.fr>
Cc: linuxppc-dev@...ts.ozlabs.org,
Grant Likely <grant.likely@...retlab.ca>,
netdev <netdev@...r.kernel.org>,
Andy Fleming <afleming@...escale.com>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: Nested function in drivers/of/of_mdio.c
On Thu, Oct 08, 2009 at 10:45:12AM +0200, Jérôme Pouiller wrote:
> I did some grep on codebase. I have not found any other instances of
> nested functions, but my regexps are not enough to be 100% sure.
>From Documentation/CodingStyle, written by the Head Penguin himself:
"Heretic people all over the world have claimed that this inconsistency
is ... well ... inconsistent, but all right-thinking people know that
(a) K&R are _right_ and (b) K&R are right. Besides, functions are
special anyway (you can't nest them in C)."
^^^^^^^^^^^^^^^^^^^^^^^^
I interpret it as a clear prohibition of using nested functions
in the kernel.
Regards,
Gabriel
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists