All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian Göttsche" <cgzones@googlemail.com>
To: selinux@vger.kernel.org
Subject: [PATCH v2 4/6] libsepol/cil: comment out unused function __cil_verify_rule
Date: Tue,  5 Apr 2022 15:35:46 +0200	[thread overview]
Message-ID: <20220405133548.51598-4-cgzones@googlemail.com> (raw)
In-Reply-To: <20220405133548.51598-1-cgzones@googlemail.com>

The function __cil_verify_rule() is currently not used as all call sites
are commented out.  Keep the function for future references.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libsepol/cil/src/cil_verify.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libsepol/cil/src/cil_verify.c b/libsepol/cil/src/cil_verify.c
index aecbdc19..4640dc59 100644
--- a/libsepol/cil/src/cil_verify.c
+++ b/libsepol/cil/src/cil_verify.c
@@ -970,7 +970,8 @@ exit:
 	return rc;
 }
 
-int __cil_verify_rule(struct cil_tree_node *node, struct cil_complex_symtab *symtab)
+/*
+static int __cil_verify_rule(struct cil_tree_node *node, struct cil_complex_symtab *symtab)
 {
 
 	int rc = SEPOL_ERR;
@@ -1016,6 +1017,7 @@ exit:
 	cil_tree_log(node, CIL_ERR, "Invalid rule");
 	return rc;
 }
+*/
 
 static int __cil_verify_booleanif_helper(struct cil_tree_node *node, __attribute__((unused)) uint32_t *finished, __attribute__((unused)) void *extra_args)
 {
-- 
2.35.1


  parent reply	other threads:[~2022-04-05 21:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 14:47 [RFC PATCH 1/4] libsepol/cil: declare file local functions static Christian Göttsche
2022-03-31 14:47 ` [RFC PATCH 2/4] libsepol/cil: drop unused function cil_tree_error Christian Göttsche
2022-04-01 20:51   ` James Carter
2022-03-31 14:47 ` [RFC PATCH 3/4] libsepol/cil: post process pirqcon rules Christian Göttsche
2022-04-01 20:51   ` James Carter
2022-03-31 14:47 ` [RFC PATCH 4/4] Enable missing prototypes Christian Göttsche
2022-04-01 20:58   ` James Carter
2022-04-01 20:50 ` [RFC PATCH 1/4] libsepol/cil: declare file local functions static James Carter
2022-04-05 13:35 ` [PATCH v2 1/6] " Christian Göttsche
2022-04-05 13:35   ` [PATCH v2 2/6] libsepol/cil: drop unused function cil_tree_error Christian Göttsche
2022-04-06 14:33     ` Petr Lautrbach
2022-04-05 13:35   ` [PATCH v2 3/6] libsepol/cil: post process pirqcon rules Christian Göttsche
2022-04-06 14:35     ` Petr Lautrbach
2022-04-05 13:35   ` Christian Göttsche [this message]
2022-04-06 16:15     ` [PATCH v2 4/6] libsepol/cil: comment out unused function __cil_verify_rule James Carter
2022-04-20 19:04       ` James Carter
2022-04-05 13:35   ` [PATCH v2 5/6] libsemanage: ignore missing prototypes in swig generated code Christian Göttsche
2022-04-05 13:35   ` [PATCH v2 6/6] Enable missing prototypes Christian Göttsche
2022-04-12 18:14     ` James Carter
2022-04-06 14:29   ` [PATCH v2 1/6] libsepol/cil: declare file local functions static Petr Lautrbach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220405133548.51598-4-cgzones@googlemail.com \
    --to=cgzones@googlemail.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.