diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-30 14:02:13 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-30 14:06:51 +0300 |
| commit | 51daa42d6b86efa366320b99e7bbe29a490ed348 (patch) | |
| tree | 387611c5c290fb2985890dd7a7aa880bda7f0274 /include/linux | |
| parent | 54aa8af53905e39a825773883914810033f4d3d3 (diff) | |
| download | linux-51daa42d6b86efa366320b99e7bbe29a490ed348.tar.xz | |
Revert "i915: Move list_count() to list.h for broader use"
This reverts commit a9efc04cfd05690e91279f41c2325c46335c43ef as it
breaks the build.
Link: https://lore.kernel.org/r/20221130131854.35b58b16@canb.auug.org.au
Link: https://lore.kernel.org/r/202211301628.iwMjPVMp-lkp@intel.com
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/list.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index 632a298c7018..61762054b4be 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -656,21 +656,6 @@ static inline void list_splice_tail_init(struct list_head *list, pos = n, n = pos->prev) /** - * list_count - count nodes in the list - * @head: the head for your list. - */ -static inline size_t list_count(struct list_head *head) -{ - struct list_head *pos; - size_t count = 0; - - list_for_each(pos, head) - count++; - - return count; -} - -/** * list_entry_is_head - test if the entry points to the head of the list * @pos: the type * to cursor * @head: the head for your list. |
