Skip to contentSkip to conversation

apparmor-remove-duplicate-macro-list_entry_is_head.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: apparmor: remove duplicate macro list_entry_is_head()
has been removed from the -mm tree. Its filename was
apparmor-remove-duplicate-macro-list_entry_is_head.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: apparmor: remove duplicate macro list_entry_is_head()

Strangely I hadn't had noticed the existence of the list_entry_is_head() in apparmor code when added the same one in the list.h. Luckily it's fully identical and didn't break builds. In any case we don't need a duplicate anymore, thus remove it from apparmor code.

Fixes e130816164e244 ("include/linux/list.h: add a macro to test if entry is pointing to the head")
Cc James Morris <[email protected]>
Cc "Serge E . Hallyn " <[email protected]>

---

 security/apparmor/apparmorfs.c |    3 ---
 1 file changed, 3 deletions(-)
security/apparmor/apparmorfs.c renamed from security/apparmor/apparmorfs.c~apparmor-remove-duplicate-macro-list_entry_is_head +0 -3
@@ -2046,9 +2046,6 @@ fail2:
 	return error;
 }
 
-
-#define list_entry_is_head(pos, head, member) (&pos->member == (head))
-
 /**
  * __next_ns - find the next namespace to list
  * @root: root namespace to stop search at (NOT NULL)

_

Patches currently in -mm which might be from [email protected] are