[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMpxmJWH8JUFbAoSwyNyRNoh9W-OU_qg19N8TzO8SxB96EbcgQ@mail.gmail.com>
Date: Thu, 19 Mar 2015 17:48:45 +0100
From: Bartosz Golaszewski <bgolaszewski@...libre.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Guenter Roeck <linux@...ck-us.net>,
lm-sensors <lm-sensors@...sensors.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v3 1/4] util_macros.h: add find_closest() macro
2015-03-19 17:33 GMT+01:00 Steven Rostedt <rostedt@...dmis.org>:
> On Thu, 19 Mar 2015 12:32:24 -0400
> Steven Rostedt <rostedt@...dmis.org> wrote:
>
>> On Thu, 19 Mar 2015 17:28:47 +0100
>> Bartosz Golaszewski <bgolaszewski@...libre.com> wrote:
>>
>>
>> > Definitely a good idea - it should probably be added to section 12 of
>> > the CodingStyle doc. What does 'fc' stand for?
>>
>> fc == "find_closest" ;-)
>>
>
> I originally was going to suggest "__find_closest_<var>_" but then it
> got a bit messy. But maybe that would be better, as it make it even
> more likely not to have name collisions.
>
I think __fc_<var> is enough. With variable names that long it's no
longer readable.
Bart
--
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