]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
list: introduce list_is_head() helper and re-use it in list.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 Jan 2022 02:08:56 +0000 (18:08 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:24:50 +0000 (09:24 +0200)
commitb2c91aa40510f8b0d827abc9c6f408f02b4a38bb
tree5e987739ddcbcd4814b2d5ab8420bf66acb349fe
parent37d5d8207356da64d2c657b5cb66103d372c0239
list: introduce list_is_head() helper and re-use it in list.h

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit 0425473037db40d9e322631f2d4dc6ef51f97e88 ]

Introduce list_is_head() in the similar (*) way as it's done for
list_entry_is_head().  Make use of it in the list.h.

*) it's done as inliner and not a macro to be aligned with other
   list_is_*() APIs; while at it, make all three to have the same
   style.

Link: https://lkml.kernel.org/r/20211201141824.81400-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/list.h