Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6999270rdb; Fri, 15 Dec 2023 14:42:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGu76QYMheimSqrzoI31qHHQOAGkLp2C+hKqr4Zc+9eL33rX6EKyq7fHD1oZlBqe6NAeCFF X-Received: by 2002:a05:6a20:8410:b0:190:22f3:caa3 with SMTP id c16-20020a056a20841000b0019022f3caa3mr15338427pzd.29.1702680135294; Fri, 15 Dec 2023 14:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702680135; cv=none; d=google.com; s=arc-20160816; b=WJatK7gADwWmmo5CobyioszjW7Xkp/PKETr7a1K1l+E4kpPuQUik4jsVJEhWBUNBNh TvALtgGuuxFt4DSbl7Yeq2axvwbF6YkDXEdVVEnM5NCwsmycu1bJPbJQK2E3CQ7fou5k AlHVkwZo03W66RVR/wshXXud9L2NOB8tFjQvyI00IUraSJSVDSHG6r2ujmpDQsQ2Ctg6 VY2IlVumInC/tavb7qA6O0PiIVCg2OvaxUNkzUkJ3m+xhmZsZAQ5xDzRKQyWB0RcBQlX okaE54OnP9JyksSzimsZiPkKcf4xreKgRIP7IrxBYc6ts3qlL0DUl4y0wl7V+4pqjKhP bLbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=AY20ZFrU1wbcN7ypVt2+incPtgkBfYNVy9D03vUKxiE=; fh=h2bDMbVXI6PjfOxzpopfvZAv/tOu3aSdaym9FM2iu6M=; b=qmdQVtjDjLX7Eb/5/TcOkJWrDUHlCAiyuBU9nrO/cFimgyH6P3qxu1uWwvoir4Fb55 QUzg5f/sZjGabD1gDKiVUh8sa9tMxkF9+ldDCRXwyH3k3BddusXwIJmqztWX25VApLVD Qps/odP5dCHKzyzDKQL/3NpTTZnjby66KyYEmMcrbTfehtYtR1gD1SYVJd/3BdKkRrwx 7Z18ySgwxLS9JZbfdjuTURNZ7kWHWEvnjF686Nh4lwpUaOPQJRGZ1Z9/FP1ezgGy3o93 UpKuL2QEGks/dlvTN+NEealVacAuWixVbKwWxl93wX6xXaFbRsOu/DbItcDm8/Imy8fV SHNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=bysT4xYk; spf=pass (google.com: domain of linux-kernel+bounces-1773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1773-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n14-20020a63f80e000000b005ca4098bf63si6254652pgh.645.2023.12.15.14.42.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 14:42:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=bysT4xYk; spf=pass (google.com: domain of linux-kernel+bounces-1773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1773-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 85064B2447C for ; Fri, 15 Dec 2023 22:37:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B18AA18EC6; Fri, 15 Dec 2023 22:37:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="bysT4xYk" X-Original-To: linux-kernel@vger.kernel.org Received: from sonic312-30.consmr.mail.ne1.yahoo.com (sonic312-30.consmr.mail.ne1.yahoo.com [66.163.191.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88385495C9 for ; Fri, 15 Dec 2023 22:37:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=schaufler-ca.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=schaufler-ca.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702679842; bh=AY20ZFrU1wbcN7ypVt2+incPtgkBfYNVy9D03vUKxiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=bysT4xYkSawnxm4xVclXf5BSqOa/dAXgZR1opyCdJq8BeUriarGLgR2pRG4SlyanOe4icu3T5DdTolxgv9xIlaRuLOVteAsLefQiGrtJoQI/bTsPbo5+LAOzkdyCdJDYbtfK1JCdAcL7gRjZeY7KsrX6P6MNWY3gd3UQ2m0RqirAyHCjjy1PVWd4eo39VNXn/939oX31FkVyfDxBndCXBZqiXxDtMB7dFahuK8aS58Exs9NkIWZHQIeMnGNAp3M0oRpCl+hrnu5VITHqjgxvBRFBqBA3eqHcArsYTdV6+VfF4fykAReZiXUJH/XGL1z6wJGK1WveUz+MwdX2vccaSg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702679842; bh=IXnnuOyJkeRjF55SPtDjdc+TVP1mutI/FpT9qm3+Hs6=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=kevNW2Vmly6srcVMOg2DDaCLXsDyDwC6uhvSE7uFvg0V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azymYIT4DQgJmpTK9BXuuT3Jn1C sMKa39EDG53lgpPN4vkZgprLX8Oq0717QSADFgwq00RtTelgSgLKx.F7RzM8WYZO7mEJgFYnFrRo sofBcORMSeHu5tOCbyVzrUOdLqqTzxO_aU6VdX7pZ.3R7CJK8O_h2mSj9b.Es4CQzSMcBUP57WK5 LZkSsF5RBCVEPPbKAvTFMaD35uon5trQqMMev9wzNxNSIY_QSwP9NB6B2BTaxXeG1NgEnv_WV00c dpzYFJfj2tgKG5zWYsvKT1uMjGNZmcZcIXObiTsHnGALex15uoI..QV80i.5hAa9CsrEg2HYo1UD WXnwrNjlTYUe7lQIEvA5osE77kLutJV4txEtp6176142F9n9Jv9Ghuu8dB4R6gCQL0FMr3LMyiC_ 0tH5bKDrIE9UbcwKibYqXdNsmFtX14HVcBRDyDon7Gp6jsQO3 X-Sonic-MF: X-Sonic-ID: 9755b1ff-cb19-43be-bb3f-72b0628282f6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Fri, 15 Dec 2023 22:37:22 +0000 Received: by hermes--production-gq1-6949d6d8f9-7dnvp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 99c4f57f4ffceb7049a22eccaa6e59f8; Fri, 15 Dec 2023 22:37:21 +0000 (UTC) From: Casey Schaufler To: casey@schaufler-ca.com, paul@paul-moore.com, linux-security-module@vger.kernel.org Cc: jmorris@namei.org, serge@hallyn.com, keescook@chromium.org, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org, mic@digikod.net Subject: [PATCH v39 27/42] LSM: Remove unused lsmcontext_init() Date: Fri, 15 Dec 2023 14:16:21 -0800 Message-ID: <20231215221636.105680-28-casey@schaufler-ca.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231215221636.105680-1-casey@schaufler-ca.com> References: <20231215221636.105680-1-casey@schaufler-ca.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The lsmcontext init functing is no longer used. Remove it. Signed-off-by: Casey Schaufler --- include/linux/security.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/include/linux/security.h b/include/linux/security.h index 947cb3a35db4..529671a89ce0 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -160,25 +160,6 @@ struct lsmcontext { int id; /* Identifies the module */ }; -/** - * lsmcontext_init - initialize an lsmcontext structure. - * @cp: Pointer to the context to initialize - * @context: Initial context, or NULL - * @size: Size of context, or 0 - * @id: Which LSM provided the context - * - * Fill in the lsmcontext from the provided information. - * This is a scaffolding function that will be removed when - * lsmcontext integration is complete. - */ -static inline void lsmcontext_init(struct lsmcontext *cp, char *context, - u32 size, int id) -{ - cp->id = id; - cp->context = context; - cp->len = size; -} - /* * Data exported by the security modules */ -- 2.41.0