[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150312160700.c0a64288f6726ba517318bc2@linux-foundation.org>
Date: Thu, 12 Mar 2015 16:07:00 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Bartosz Golaszewski <bgolaszewski@...libre.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Guenter Roeck <linux@...ck-us.net>,
lm-sensors <lm-sensors@...sensors.org>,
Steven Rostedt <srostedt@...hat.com>
Subject: Re: [PATCH v2 1/4] kernel.h: add find_closest() macro
On Tue, 10 Mar 2015 18:27:19 +0100 Bartosz Golaszewski <bgolaszewski@...libre.com> wrote:
> +/*
> + * Similar to find_closest(), but 'a' is expected to be sorted
> + * in descending order.
> + */
> +#define find_closest_desc(x, a, as) __find_closest(x, a, as, >)
description? descriptor? descendent? oh, it's "descending". So
let's use "descending"!
I think it's good to put possibly-useful stuff like this into
includes/linux, particularly when we already have several usage sites.
But we don't _have_ to keep putting things into kernel.h. Maybe a new
include/linux/handy-macros.h or include/linux/find_closest.h?
--
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