Re: [PATCH] Fix: Compiler warning on disabled PMKSA_CACHE_EXTERNAL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2016-12-14 11:06, Koen Vandeputte wrote:
> Fixes a compiler warning when CONFIG_PMKSA_CACHE_EXTERNAL and
> CONFIG_IEEE8021X_EAPOL are disabled.
> 
> All functions calling these 2 and it's own dependencies
> are embraced by one of these macro's, resulting in the warning when
> disabled.
> 
> ../src/rsn_supp/wpa.c: In function 'wpa_sm_pmksa_cache_head':
> ../src/rsn_supp/wpa.c:3036:9: warning: implicit declaration of function
> 'pmksa_cache_head' [-Wimplicit-function-declaration]
> return pmksa_cache_head(sm->pmksa);
>          ^~~~~~~~~~~~~~~~
> ../src/rsn_supp/wpa.c:3036:9: warning: return makes pointer from integer
> without a cast [-Wint-conversion]
> return pmksa_cache_head(sm->pmksa);
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/rsn_supp/wpa.c: In function 'wpa_sm_pmksa_cache_add_entry':
> ../src/rsn_supp/wpa.c:3044:9: warning: implicit declaration of function
> 'pmksa_cache_add_entry' [-Wimplicit-function-declaration]
> return pmksa_cache_add_entry(sm->pmksa, entry);
>          ^~~~~~~~~~~~~~~~~~~~~
> ../src/rsn_supp/wpa.c:3044:9: warning: return makes pointer from integer
> without a cast [-Wint-conversion]
> return pmksa_cache_add_entry(sm->pmksa, entry);
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Koen Vandeputte <koen.vandeputte@xxxxxxxxxxxx>
Just sent a slightly better fix for the same issue that simply adds the
missing inline stubs instead of throwing in more #ifdef.
See "[PATCH] Fix build error with IEEE8021X_EAPOL unset"

- Felix

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux