summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2015-06-26 20:59:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-02 09:39:57 +0200
commite9ed1120821e2f79c5687663a2f3f1873a155f01 (patch)
tree1540bc6662fbdd311a263d4faf13c5d164ef0953 /lib
parent566cac17c3b5cfd85eb5bb1764c6cd29347b390d (diff)
downloadbarebox-e9ed1120821e2f79c5687663a2f3f1873a155f01.tar.gz
barebox-e9ed1120821e2f79c5687663a2f3f1873a155f01.tar.xz
parameter: always build MAC dev param functions
The MAC dev parameter functions would only be built when CONFIG_NET is set. This was okay as long as only network devices were using MAC dev params. This has changed with the merge of the state framework, so always compile them in if CONFIG_PARAMETER is set. Fixes: common/built-in.o: In function `state_mac_create': common/state.c:387: undefined reference to `dev_add_param_mac' Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/parameter.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/parameter.c b/lib/parameter.c
index 4c261b1e30..60642f001b 100644
--- a/lib/parameter.c
+++ b/lib/parameter.c
@@ -583,7 +583,6 @@ struct param_d *dev_add_param_llint_ro(struct device_d *dev, const char *name,
return &piro->param;
}
-#ifdef CONFIG_NET
struct param_ip {
struct param_d param;
IPaddr_t *ip;
@@ -747,7 +746,6 @@ struct param_d *dev_add_param_mac(struct device_d *dev, const char *name,
return &pm->param;
}
-#endif
/**
* dev_remove_param - remove a parameter from a device and free its