Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp518427pxb; Tue, 14 Sep 2021 02:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbCXPLR0s16XiFUlhppAsE47ODtVwySbweiowHyb4o0ARljlNp+3S309zikc/ygFzD7rJE X-Received: by 2002:a17:906:4a0b:: with SMTP id w11mr18304344eju.265.1631613363852; Tue, 14 Sep 2021 02:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631613363; cv=none; d=google.com; s=arc-20160816; b=subPkSaFE1njXvcw+VhuTBqEBUD7qgMfbMMNY/591/VZt26tK8m4w9E1si77CqoL70 8uMqLv/1eZqYm5wwIQB+hebD6W1GmgHhK0+zUL1jLrXuLFoKG3WbmJshgR+mjAeJy/so Bs4rMUQJREG5bVHm7w2j0BFN54T4GjqcOg/Pv7a687nhE85dVdSmBmTMc/Eo27twkoGh 9437kbmonVqIOCx4EcGUw4GmXBaaw7dQD1Y8MWKyWhved0objkLJ2dM/5/Lsb8se3Dnu BwrMLUmIxVisJEs8WiP4g7OeFfmpKwRVkD9yBHzXAbJeRwSx/kVgvo87Kwjfksmn6wR3 Nqug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Aeg4Dqnm0O/tjfCox6J7UBJ2i5zkeGU0nLOGN+qyPxI=; b=NcJgtWayQI+pPzcgLWSMyOwIQRf3A2tQobFGbtuWFZf4t3kYUDlIgCtO3NXaiqBi3B tAGvHkRCwntfyn0KbpJ1PmoVNydXmrDBOx0hv6ALWs0/7/dA6a+3wH8he2J6Cc8BNcWr p3s3X466Z5wuXxkObCV7zEdau0YaqFCTHeLAFeyLer4g61clozp4bNkiGVes014K3RnX N0dy/yYplZ7o5e87DhuofTg3dWGD6QCLvtvxtkz1GionfGJtqAtIffpWMKxbza2udbAz zfCj6WgGYXZYPCN4m/CkAGifaww0+qaLHE4iOkqGZRiOUcha4plkbNkHdG/raSJvfmB1 AByw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id go17si9771514ejc.354.2021.09.14.02.55.37; Tue, 14 Sep 2021 02:56:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbhINJyn (ORCPT + 99 others); Tue, 14 Sep 2021 05:54:43 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:9040 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbhINJyd (ORCPT ); Tue, 14 Sep 2021 05:54:33 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4H7zCg1fbPzVwhs; Tue, 14 Sep 2021 17:52:15 +0800 (CST) Received: from dggema769-chm.china.huawei.com (10.1.198.211) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.8; Tue, 14 Sep 2021 17:53:14 +0800 Received: from localhost (10.174.179.215) by dggema769-chm.china.huawei.com (10.1.198.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Tue, 14 Sep 2021 17:53:13 +0800 From: YueHaibing To: , , , , CC: , Subject: [PATCH -next] apparmor: Remove unused inline function label_is_visible() Date: Tue, 14 Sep 2021 17:53:12 +0800 Message-ID: <20210914095313.11496-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggema769-chm.china.huawei.com (10.1.198.211) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no caller in tree, so can remove it. Signed-off-by: YueHaibing --- security/apparmor/label.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/security/apparmor/label.c b/security/apparmor/label.c index 6222fdfebe4e..a86ac938ca88 100644 --- a/security/apparmor/label.c +++ b/security/apparmor/label.c @@ -1255,12 +1255,6 @@ struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b, return label; } -static inline bool label_is_visible(struct aa_profile *profile, - struct aa_label *label) -{ - return aa_ns_visible(profile->ns, labels_ns(label), true); -} - /* match a profile and its associated ns component if needed * Assumes visibility test has already been done. * If a subns profile is not to be matched should be prescreened with -- 2.17.1