summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-12-07 08:12:40 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-07 08:12:40 +0100
commit05bc268ec5c5bcf1eca52f2aaa9ebdcaf2edee25 (patch)
treea5131c0eb8e7e59c00e0c941b3830814cb23040b /common
parentb9dcb4ae01b034da77ba56b1886c8d04971f5cec (diff)
parent1ef8adb77b36153b996c09294310d1b662291ba5 (diff)
downloadbarebox-05bc268ec5c5bcf1eca52f2aaa9ebdcaf2edee25.tar.gz
Merge branch 'for-next/missing-prototypes'
Diffstat (limited to 'common')
-rw-r--r--common/imx-bbu-nand-fcb.c4
-rw-r--r--common/state/state_variables.c13
2 files changed, 2 insertions, 15 deletions
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c
index 8842ba6..8c276a4 100644
--- a/common/imx-bbu-nand-fcb.c
+++ b/common/imx-bbu-nand-fcb.c
@@ -204,7 +204,7 @@ static void encode_bch_ecc(void *buf, struct fcb_block *fcb, int eccbits)
free_bch(bch);
}
-struct fcb_block *read_fcb_bch(void *rawpage, int eccbits)
+static struct fcb_block *read_fcb_bch(void *rawpage, int eccbits)
{
int i, j, ret, errbit, m = 13;
int blocksize = 128;
@@ -308,7 +308,7 @@ static uint32_t calc_chksum(void *buf, size_t size)
return ~chksum;
}
-struct fcb_block *read_fcb_hamming_13_8(void *rawpage)
+static struct fcb_block *read_fcb_hamming_13_8(void *rawpage)
{
int i;
int bitflips = 0, bit_to_flip;
diff --git a/common/state/state_variables.c b/common/state/state_variables.c
index abd714c..269d175 100644
--- a/common/state/state_variables.c
+++ b/common/state/state_variables.c
@@ -492,19 +492,6 @@ struct variable_type *state_find_type_by_name(const char *name)
return NULL;
}
-struct variable_type *state_find_type(const enum state_variable_type type)
-{
- int i;
-
- for (i = 0; i < ARRAY_SIZE(types); i++) {
- if (type == types[i].type) {
- return &types[i];
- }
- }
-
- return NULL;
-}
-
struct state_variable *state_find_var(struct state *state, const char *name)
{
struct state_variable *sv;