Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4531648rwo; Tue, 25 Jul 2023 07:26:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLO8VTMdDAi3gyRG3dY0rQBKU4rbfSsPuH+o71O4hP5KMS2eKfi/V7NuK0ES6Ka0fRbqEM X-Received: by 2002:a05:6a00:14c4:b0:675:8f71:28ee with SMTP id w4-20020a056a0014c400b006758f7128eemr16095739pfu.34.1690295179476; Tue, 25 Jul 2023 07:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690295179; cv=none; d=google.com; s=arc-20160816; b=qmoY2I11fEavDFCA4Zkls2auyLp96yEStgs1HxNc5LCyC6XYqFhbZxPk6JwpJvttV1 Q/CthnqGvscoS5P5rGksqoZ7G2HWmhN0/TBMzfForh1BFLNfK4CwBCItrn72k6uUb5jy ATTpZfsHWoruzsZYy0WpLOkiBac82ZycZQTqwmk1xN1MtNvUdI05lTx0TjcJKadEBDsq Qhf6FI7ZOteNBk8/gUbBh+cKU+50EDX1BL6FxTJeVEJoS5FeYhzv4VtGI3/mnVB9ohzn zLfKcvvkUyBUc3d1dPMwL+6IpBEBMcdQwfKGCAZphnP8B8p3X6GhggHwJHufIArq9eIP VbdQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64-20020a638543000000b00543c8ad57f7si22079pgd.83.2023.07.25.07.26.07; Tue, 25 Jul 2023 07:26:19 -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 S232493AbjGYOON (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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 The implementions of these declarations do not exist, remove them all. Signed-off-by: Xiu Jianfeng --- 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); -- 2.34.1