Files
francis.wang 4c86c082a2 Initial commit: OpenWrt-Yocto monorepo
Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and
meta-openwrt into a single repository.

Components:
- poky/             Yocto core framework (BitBake + OE-Core)
- meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking)
- meta-openwrt/     OpenWrt customization layer
- setup-env.sh      One-click build environment setup
- README.md         Project documentation
2026-07-11 13:28:01 +08:00

30 lines
818 B
Diff

Mark extern variables with 'extern' keyword
This ensures that compilers with -fno-common does not generate multiple definitions
Upstream-Status: Pending
Signedd-off-by: Khem Raj <raj.khem@gmail.com>
--- a/lib/wfa_cs.c
+++ b/lib/wfa_cs.c
@@ -71,7 +71,7 @@ int wfaExecuteCLI(char *CLI);
/* Since the two definitions are used all over the CA function */
char gCmdStr[WFA_CMD_STR_SZ];
-dutCmdResponse_t gGenericResp;
+extern dutCmdResponse_t gGenericResp;
int wfaTGSetPrio(int sockfd, int tgClass);
void create_apts_msg(int msg, unsigned int txbuf[],int id);
--- a/lib/wfa_thr.c
+++ b/lib/wfa_thr.c
@@ -41,7 +41,7 @@
/*
* external global thread sync variables
*/
-tgWMM_t wmm_thr[WFA_THREADS_NUM];
+extern tgWMM_t wmm_thr[WFA_THREADS_NUM];
extern int resetsnd;
extern int resetrcv;
extern int newCmdOn;