From patchwork Tue Jul 25 14:12:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiu Jianfeng X-Patchwork-Id: 125657 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2510015vqg; Tue, 25 Jul 2023 07:27:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAZ8Yv/ndlyICKWZuexSVa4fUCbwunqfTkPZ6b/9mIIV0WB1mPHwFlVrDz8clfrPaXD2iq X-Received: by 2002:a17:90a:120f:b0:267:6f80:fdeb with SMTP id f15-20020a17090a120f00b002676f80fdebmr12974972pja.1.1690295269353; Tue, 25 Jul 2023 07:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690295269; cv=none; d=google.com; s=arc-20160816; b=UjB1l9fQhz7BZSF0Mkrszwn0qXcSE/Eg8xF7LGnrUhTfMgD9G+VKozbyAztnsOln7m FL2WrrwxdqmX7Cbu7QDrADDYCjhzkMPJHtbxER6xKWFqGe4h73faKrMVMorWQpKpQgus s93bwizY6KaRZCotEodhpIkd6b0LiOZB//CwY1IS3teWxKzlWJHIry2AOJcD5CaKmaA+ Wp8TF8Ug7JJ5KZ/1EhguOckausZ3VvcDeW5MTvzX3ygY1KQPkwMMXUqDF1/lijaYrVZs ZBltz1YXCU+jStk09xtOkrA5qoQ/KUQy4UL1Auo/xJJajGmKy8nX+ARLii1+QyF1+3zD EsUA== 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 :message-id:date:subject:cc:to:from; bh=UiuBdhfiXElsEHL8HiK1uP+PFG9Vodlmn3o183/hVBI=; fh=4Lm+ZetbdDi0tHZrYTTLmV0UQ0ef7S1J05CPUPIrExg=; b=jYJMh/OXb8MyocUI4pQ6gsKHFKElFpDketAKeFuo2vKKFZ4M1sZ5oTxOA3FYk8/e+R bHqgMABxSXYYB/dQe0Qixj4IRZt9Kr8biiij85gwwHKITsTh0hpz5M1kjrEZle2ihHww MucvvplKrnfZIQ9OQJd+UXhWS0cGEg1oNAi1rYSODZmgQhY7wvaduJxkWdPp5wl3J9PW ooTKTHd1OSeZiAOAhlnyuwvdQhXdp+Yvxqf/AQX5wy2+8g4SLe7UfTeK0RRiQj4AuZj0 qq8Hbt3HR4vRTIybjYiT82eziT77jsmsTP1kGMAPIScpVxDNL3zRZ3vM5ZkPS+OsxGhY OEsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a17090a9d8c00b0026816382fdbsi4842575pjp.40.2023.07.25.07.27.36; Tue, 25 Jul 2023 07:27:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232499AbjGYOON (ORCPT + 99 others); Tue, 25 Jul 2023 10:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232527AbjGYOOI (ORCPT ); Tue, 25 Jul 2023 10:14:08 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8BDC1FC9; Tue, 25 Jul 2023 07:14:03 -0700 (PDT) Received: from dggpeml100024.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4R9JqL1f8mzLnwZ; Tue, 25 Jul 2023 22:11:26 +0800 (CST) Received: from hulk-vt.huawei.com (10.67.174.26) by dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 25 Jul 2023 22:14:00 +0800 From: Xiu Jianfeng To: , , , , CC: , , Subject: [PATCH -next] apparmor: cleanup unused declarations in policy.h Date: Tue, 25 Jul 2023 14:12:39 +0000 Message-ID: <20230725141239.233372-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.26] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml100024.china.huawei.com (7.185.36.115) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772403051871653664 X-GMAIL-MSGID: 1772403051871653664 The implementions of these declarations do not exist, remove them all. Signed-off-by: Xiu Jianfeng Acked-by: John Johansen --- security/apparmor/include/policy.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/security/apparmor/include/policy.h b/security/apparmor/include/policy.h index 545f791cabda..6e5ec9c37b48 100644 --- a/security/apparmor/include/policy.h +++ b/security/apparmor/include/policy.h @@ -227,10 +227,6 @@ extern enum profile_mode aa_g_profile_mode; #define profiles_ns(P) ((P)->ns) #define name_is_shared(A, B) ((A)->hname && (A)->hname == (B)->hname) -void aa_add_profile(struct aa_policy *common, struct aa_profile *profile); - - -void aa_free_proxy_kref(struct kref *kref); struct aa_ruleset *aa_alloc_ruleset(gfp_t gfp); struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy, gfp_t gfp); @@ -239,14 +235,12 @@ struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, const char *base, gfp_t gfp); void aa_free_profile(struct aa_profile *profile); -void aa_free_profile_kref(struct kref *kref); struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name); struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, size_t n); struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name); struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, const char *fqname, size_t n); -struct aa_profile *aa_match_profile(struct aa_ns *ns, const char *name); ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label, u32 mask, struct aa_loaddata *udata);