summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-09 00:07:44 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-08-01 16:15:23 +0700
commitc2712384f6d61e08105a083ff1383a16fb2effed (patch)
treec29f0f6b2b259bdbf848030c5bbdd6f1030e8adc
parent620fe497efa492feff4550e336cc3f8167715936 (diff)
firmware: fix compilation with arm-none-eabi-gcc 10.1.0
These symbols are defined, but never used: - struct last_rach - seems to be copy-pasted from prim_rach.c, - tall_msgb_ctx - already defined in libosmocore. Change-Id: I6077c8e9b441f7848d1a4c25a8b5e1aed82f4b7d
-rw-r--r--src/target/firmware/comm/msgb.c2
-rw-r--r--src/target/firmware/layer1/prim_freq.c5
2 files changed, 0 insertions, 7 deletions
diff --git a/src/target/firmware/comm/msgb.c b/src/target/firmware/comm/msgb.c
index 3524ba58..08f5acbd 100644
--- a/src/target/firmware/comm/msgb.c
+++ b/src/target/firmware/comm/msgb.c
@@ -32,8 +32,6 @@
#define NO_TALLOC
-void *tall_msgb_ctx;
-
#ifdef NO_TALLOC
/* This is a poor mans static allocator for msgb objects */
#define MSGB_DATA_SIZE 256+4
diff --git a/src/target/firmware/layer1/prim_freq.c b/src/target/firmware/layer1/prim_freq.c
index ca6dc9e4..68e63e9b 100644
--- a/src/target/firmware/layer1/prim_freq.c
+++ b/src/target/firmware/layer1/prim_freq.c
@@ -49,11 +49,6 @@
#include <l1ctl_proto.h>
-struct {
- uint32_t fn;
- uint16_t band_arfcn;
-} last_rach;
-
/* if the "starting time" is reached, use frequencies "after time" */
static int l1s_freq_cmd(__unused uint8_t p1, __unused uint8_t p2, __unused uint16_t p3)
{