From: "Diego 'Flameeyes' Pettenò" <flameeyes@gmail.com>
To: linux-wireless@vger.kernel.org
Subject: [crda PATCH 1/3] Mark functions static when not used outside their translation unit.
Date: Mon, 01 Dec 2008 12:11:15 +0100 [thread overview]
Message-ID: <20081201111115.20833.78807.stgit@localhost> (raw)
In-Reply-To: <20081201111021.20833.42515.stgit@localhost>
---
intersect.c | 2 +-
reglib.c | 4 ++--
reglib.h | 3 ---
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/intersect.c b/intersect.c
index 279d807..d6d857d 100644
--- a/intersect.c
+++ b/intersect.c
@@ -75,7 +75,7 @@ static int reg_rules_intersect(
* resulting intersection of rules between rd1 and rd2. We will
* malloc() this structure for you.
*/
-struct ieee80211_regdomain *regdom_intersect(
+static struct ieee80211_regdomain *regdom_intersect(
struct ieee80211_regdomain *rd1,
struct ieee80211_regdomain *rd2)
{
diff --git a/reglib.c b/reglib.c
index e6b9b3f..c173818 100644
--- a/reglib.c
+++ b/reglib.c
@@ -133,7 +133,7 @@ out:
#endif
}
-void reg_rule2rd(__u8 *db, int dblen,
+static void reg_rule2rd(__u8 *db, int dblen,
__be32 ruleptr, struct ieee80211_reg_rule *rd_reg_rule)
{
struct regdb_file_reg_rule *rule;
@@ -214,7 +214,7 @@ int is_valid_reg_rule(const struct ieee80211_reg_rule *rule)
return 1;
}
-void print_reg_rule(struct ieee80211_reg_rule *rule)
+static void print_reg_rule(struct ieee80211_reg_rule *rule)
{
struct ieee80211_freq_range *freq;
struct ieee80211_power_rule *power;
diff --git a/reglib.h b/reglib.h
index 65e0ad6..095090b 100644
--- a/reglib.h
+++ b/reglib.h
@@ -88,14 +88,11 @@ void *crda_get_file_ptr(__u8 *db, int dblen, int structlen, __be32 ptr);
int crda_verify_db_signature(__u8 *db, int dblen, int siglen);
/* File reg db entry -> rd converstion utilities */
-void reg_rule2rd(__u8 *db, int dblen,
- __be32 ruleptr, struct ieee80211_reg_rule *rd_reg_rule);
struct ieee80211_regdomain *country2rd(__u8 *db, int dblen,
struct regdb_file_reg_country *country);
/* reg helpers */
int is_valid_reg_rule(const struct ieee80211_reg_rule *rule);
-void print_reg_rule(struct ieee80211_reg_rule *rule);
void print_regdom(struct ieee80211_regdomain *rd);
#endif
next prev parent reply other threads:[~2008-12-01 11:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 11:11 [crda PATCH 0/3] Code fixups and optimisation Diego 'Flameeyes' Pettenò
2008-12-01 11:11 ` Diego 'Flameeyes' Pettenò [this message]
2008-12-01 11:11 ` [crda PATCH 2/3] Mark constant the generated key tables for libgcrypt Diego 'Flameeyes' Pettenò
2008-12-01 11:11 ` [crda PATCH 3/3] Avoid implicit declaration of memset() with OpenSSL Diego 'Flameeyes' Pettenò
2008-12-01 22:35 ` [crda PATCH 0/3] Code fixups and optimisation Luis R. Rodriguez
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=20081201111115.20833.78807.stgit@localhost \
--to=flameeyes@gmail.com \
--cc=linux-wireless@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.