Skip to content

Commit

Permalink
drivers: android: rekernel_include: Add extern where needs
Browse files Browse the repository at this point in the history
  • Loading branch information
uwu-gl authored Apr 20, 2024
1 parent 09a3f4e commit ecf67fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/android/rekernel_include.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define USER_PORT 100
#define PACKET_SIZE 128

struct sock *rekernel_netlink = NULL;
extern struct sock *rekernel_netlink = NULL;
extern struct net init_net;
int netlink_unit = NETLINK_REKERNEL_MIN;

Expand All @@ -35,7 +35,7 @@ static int send_netlink_message(char *msg, uint16_t len) {
return netlink_unicast(rekernel_netlink, skbuffer, USER_PORT, MSG_DONTWAIT);
}

static void netlink_rcv_msg(struct sk_buff *skbuffer) { // Ignore recv msg.
extern static void netlink_rcv_msg(struct sk_buff *skbuffer) { // Ignore recv msg.
}

struct netlink_kernel_cfg rekernel_cfg = {
Expand Down

0 comments on commit ecf67fc

Please sign in to comment.