Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1709634pxb; Fri, 24 Sep 2021 10:09:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIZp5nIhp1f364GEh6R7BqU8GqqElC1t8oFIsG4YfOFppur6QCZk7kHHKWInPT0u28E602 X-Received: by 2002:a05:6e02:1d86:: with SMTP id h6mr9600102ila.5.1632503358438; Fri, 24 Sep 2021 10:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632503358; cv=none; d=google.com; s=arc-20160816; b=sBC6pyrc+vvq9e6MJQ94w+HiVoDvYV4/7gz4zoU4pLCRWQJCfRzf75sNp29B7md8+5 S5000c0AyCFGK6F7KcjpYeKYOq+azJ+IuK0lQUSd6EIldgm19S/lnWSprw/QuK6yUUhJ VlD7XrYgtcvI99cxnfy6tcgW0XsAzS0XTdRxyeVGO0q1QGyx9BWEPOUMuBbH2a/3nHgY k818aAEPHElG8+8ZRIpbFPmTUHTeYaiHbnbRQy7GTEHVf0zPR/weVe6272dwxo5WsT3B UzjJ8iKouihULF0tdJKHPeGtmVZLFvquupehbF6aJtKXbHVpu9o6q2cJk9PTYyqJdWiU GTWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dv4INDGioGyBl2vzN1M2kCI+OgPKH49Zm8b699C0mEc=; b=PhWvU5p7SG4LH0fi4zVjZFsi6zTI9VKfx/FUUE8ijbPYCXwUr/OwoYQWl7IU+y/6hr vOyEI4NI0mtVixahJmxqleJicPInnp3Z8Db9JoLwLOcX33uY3eS29J9rS5ewIan+xxlG 5TVb+g4x0IRBKs8U/dxD7kejdnI4A8TEDKUizFDN+Fc2ZRfQYgshkd8eSxKx3JApuLw+ Ub0jk2cC5DgByLFrTp6lrsRYeXVw055ZxIu1C54UdKo284b3ciCttH3H4hi/xfAonyj+ gxLGDCXm9e4mH8eomNo5+eZa8hqJP9vHHRaYup+VsqXNplLISXyvzSBNSI5KoAACI72K CAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g6SKipcA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si10943013ilh.21.2021.09.24.10.09.02; Fri, 24 Sep 2021 10:09:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g6SKipcA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344388AbhIXMw6 (ORCPT + 99 others); Fri, 24 Sep 2021 08:52:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:46062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344614AbhIXMvB (ORCPT ); Fri, 24 Sep 2021 08:51:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9425C61284; Fri, 24 Sep 2021 12:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632487726; bh=nsnzZd4ajgOpxYl+PuhIkoBQILawStDEbi7Bo5ncsnw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g6SKipcAgzhDgm3pvufPxw4gx1khC1hhHoQVtlBrKMke2LFykq9po46xQ9NHCB5UQ ByCmM1N5DSnMopXHmT7VzTee81atAyQnFI3KICBuFNIObGxyDxEInnxeIP81WQa7XT JMbgNidwFmFB8Qty9f9Nc4KP1h9FfpB/+0BcRCSs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , John Johansen , James Morris , "Serge E . Hallyn " , Andrew Morton , Linus Torvalds , "Nobuhiro Iwamatsu (CIP)" Subject: [PATCH 4.19 04/34] apparmor: remove duplicate macro list_entry_is_head() Date: Fri, 24 Sep 2021 14:43:58 +0200 Message-Id: <20210924124330.109526391@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124329.965218583@linuxfoundation.org> References: <20210924124329.965218583@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko commit 9801ca279ad37f72f71234fa81722afd95a3f997 upstream. 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. Link: https://lkml.kernel.org/r/20201208100639.88182-1-andriy.shevchenko@linux.intel.com Fixes: e130816164e244 ("include/linux/list.h: add a macro to test if entry is pointing to the head") Signed-off-by: Andy Shevchenko Acked-by: John Johansen Cc: James Morris Cc: "Serge E . Hallyn " Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Nobuhiro Iwamatsu (CIP) Signed-off-by: Greg Kroah-Hartman --- security/apparmor/apparmorfs.c | 3 --- 1 file changed, 3 deletions(-) --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -1960,9 +1960,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)