Skip to content

Commit 444dfa7

Browse files
jukkarAnas Nashif
authored andcommitted
net: l2: Remove l2_data section start and end pointers
As the l2_data section might contain different size context elements like "struct ethernet_context" for Ethernet and "void *" for Dummy L2, remove the __net_l2_start and __net_l2_end variables so that user does not accidentally try to use them as that would not work. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 9abc31e commit 444dfa7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/net/net_l2.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ struct net_l2 {
6060
extern const struct net_l2 NET_L2_GET_NAME(_name)
6161
#define NET_L2_GET_CTX_TYPE(_name) _name##_CTX_TYPE
6262

63-
extern struct net_l2 __net_l2_start[];
64-
6563
#ifdef CONFIG_NET_L2_DUMMY
6664
#define DUMMY_L2 DUMMY
6765
#define DUMMY_L2_CTX_TYPE void*
@@ -95,8 +93,6 @@ NET_L2_DECLARE_PUBLIC(OFFLOAD_IP);
9593
NET_L2_DECLARE_PUBLIC(OPENTHREAD_L2);
9694
#endif /* CONFIG_NET_L2_OPENTHREAD */
9795

98-
extern struct net_l2 __net_l2_end[];
99-
10096
#define NET_L2_INIT(_name, _recv_fn, _send_fn, _reserve_fn, _enable_fn) \
10197
const struct net_l2 (NET_L2_GET_NAME(_name)) __used \
10298
__attribute__((__section__(".net_l2.init"))) = { \

0 commit comments

Comments
 (0)