netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6][next] Avoid clashing function prototypes
@ 2022-10-17 20:32 Gustavo A. R. Silva
  2022-10-17 20:33 ` [PATCH 1/6][next] orinoco: " Gustavo A. R. Silva
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Gustavo A. R. Silva @ 2022-10-17 20:32 UTC (permalink / raw)
  To: Jouni Malinen, Stanislav Yakovlev, Johannes Berg, Kalle Valo,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: netdev, linux-wireless, linux-kernel, Kees Cook,
	Gustavo A. R. Silva, linux-hardening

When built with Control Flow Integrity, function prototypes between
caller and function declaration must match. These mismatches are visible
at compile time with the new -Wcast-function-type-strict in Clang[1].

This series fixes a total of 170 -Wcast-function-type-strict warnings.

Link: https://reviews.llvm.org/D134831 [1]

Gustavo A. R. Silva (6):
  orinoco: Avoid clashing function prototypes
  cfg80211: Avoid clashing function prototypes
  ipw2x00: Remove unnecessary cast to iw_handler in ipw_wx_handlers
  hostap: Avoid clashing function prototypes
  zd1201: Avoid clashing function prototypes
  airo: Avoid clashing function prototypes

 drivers/net/wireless/cisco/airo.c             | 203 ++++++++-------
 drivers/net/wireless/intel/ipw2x00/ipw2200.c  |   2 +-
 .../wireless/intersil/hostap/hostap_ioctl.c   | 245 ++++++++++--------
 drivers/net/wireless/intersil/orinoco/wext.c  | 131 +++++-----
 drivers/net/wireless/zydas/zd1201.c           | 173 +++++++------
 include/net/cfg80211-wext.h                   |  20 +-
 net/wireless/scan.c                           |   3 +-
 net/wireless/wext-compat.c                    | 180 ++++++-------
 net/wireless/wext-compat.h                    |   8 +-
 net/wireless/wext-sme.c                       |   5 +-
 10 files changed, 503 insertions(+), 467 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-10-19  5:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-17 20:32 [PATCH 0/6][next] Avoid clashing function prototypes Gustavo A. R. Silva
2022-10-17 20:33 ` [PATCH 1/6][next] orinoco: " Gustavo A. R. Silva
2022-10-18  2:26   ` Kees Cook
2022-10-17 20:34 ` [PATCH 2/6][next] cfg80211: " Gustavo A. R. Silva
2022-10-18  2:41   ` Kees Cook
2022-10-18 19:31     ` Gustavo A. R. Silva
2022-10-17 20:34 ` [PATCH 3/6][next] ipw2x00: Remove unnecessary cast to iw_handler in ipw_wx_handlers Gustavo A. R. Silva
2022-10-18  2:43   ` Kees Cook
2022-10-17 20:35 ` [PATCH 4/6][next] hostap: Avoid clashing function prototypes Gustavo A. R. Silva
2022-10-18  2:48   ` Kees Cook
2022-10-17 20:35 ` [PATCH 5/6][next] zd1201: " Gustavo A. R. Silva
2022-10-18  2:49   ` Kees Cook
2022-10-17 20:36 ` [PATCH 6/6][next] airo: " Gustavo A. R. Silva
2022-10-18  2:53   ` Kees Cook
2022-10-19  5:58     ` Gustavo A. R. Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).