From nobody Mon Dec 29 23:45:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDD23C61D97 for ; Wed, 22 Nov 2023 11:56:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344029AbjKVL4h (ORCPT ); Wed, 22 Nov 2023 06:56:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234988AbjKVL4X (ORCPT ); Wed, 22 Nov 2023 06:56:23 -0500 Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCACD67 for ; Wed, 22 Nov 2023 03:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codethink.co.uk; s=imap4-20230908; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yhCcK0wRZ/D1OEdibIwHIFgo6z7azJAhavEvkkBIAX8=; b=Ub25VtVYY2/ZmqxVJ3EemcELNr yWZmXZIMc0mkevEphpYIHS1bV6IOAPbAPw40MSNI5WaovJ9lcA5y9rX3LOo/YVbisecrrUANRvfuA HOU4x2caPyL4hbrGuOxSqxZs9R9u6fxTTLYZHCYeNFQxiAm6ChFeQDrom4Kp5k4CtmtuK8JURbkne zQuRy+sZptW8RhECUv5Gdml0hF+ko7prQjlt690IZOnhsjZz+XhU19f+xvj7zfht6hsJ0rNjWsMDD iT+J52SW0/trn1EoaeZSbpJu6X67UmDxoFcmYlBIWg28+SIo+863gatbV3eUIOVLF9SnGj1vGy+L4 g4YkPKuA==; Received: from [167.98.27.226] (helo=rainbowdash) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1r5lq0-003nX6-8U; Wed, 22 Nov 2023 11:56:13 +0000 Received: from ben by rainbowdash with local (Exim 4.97) (envelope-from ) id 1r5lq0-00000001CJ4-36MO; Wed, 22 Nov 2023 11:56:12 +0000 From: Ben Dooks To: apparmor@lists.ubuntu.com Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Dooks Subject: [PATCH] apparmor: make stack_msg static Date: Wed, 22 Nov 2023 11:56:11 +0000 Message-Id: <20231122115611.285625-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.37.2.352.g3c44437643 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: srv_ts003@codethink.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The stack_msg is not exported out of security/apparmor/domain.c so make it static to avoid the following sparse warning: security/apparmor/domain.c:1314:12: warning: symbol 'stack_msg' was not dec= lared. Should it be static? Signed-off-by: Ben Dooks --- security/apparmor/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index 89fbeab4b33b..571158ec6188 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c @@ -1311,7 +1311,7 @@ static int change_profile_perms_wrapper(const char *o= p, const char *name, return error; } =20 -const char *stack_msg =3D "change_profile unprivileged unconfined converte= d to stacking"; +static const char *stack_msg =3D "change_profile unprivileged unconfined c= onverted to stacking"; =20 /** * aa_change_profile - perform a one-way profile transition --=20 2.37.2.352.g3c44437643