From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F523FA3740 for ; Thu, 27 Oct 2022 20:17:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236635AbiJ0URA (ORCPT ); Thu, 27 Oct 2022 16:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234943AbiJ0UQ5 (ORCPT ); Thu, 27 Oct 2022 16:16:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67F5E645D2; Thu, 27 Oct 2022 13:16:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 03AAC624DE; Thu, 27 Oct 2022 20:16:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B85D3C433C1; Thu, 27 Oct 2022 20:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666901815; bh=8HAK4m6E3POACA1m3I3Cl8FtXlz0B1YchOPXq9lU5BU=; h=Date:From:To:Cc:Subject:From; b=k+5h+9HliD+/DKxTYK+Ll9WsQoU4+6L/tUCabezbJnN9zjPXXrxFq0CUllRzMWU6l eXja6U6i6FMLBPBLVR9R3Pxb01oQjTKdx4JMRI0p3v+0W2KYOwatXdmOc+Z9QLPNbr wFIDqWSiWcoyWXGXVEUZDDHm7MwlpZH6Ye7DW5s4cXaQ4XhuIJMfqwun9M7yq9eURT KM/19EZqjB4sMLsqEiP8KZxFeNSzWqoklEbPaNDD/8ldutTBm9vN0l1z3sygu6fOIZ FwUkcYVlAZfSGtRAfvOklVs+9YilA+rg4CjepT47G6qzGueP3K+L18s3or3oKTGMvP S9GYaIAy6PhsQ== Date: Thu, 27 Oct 2022 15:16:51 -0500 From: "Gustavo A. R. Silva" To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Greg Kroah-Hartman , Jouni Malinen , Stanislav Yakovlev , Johannes Berg Cc: linux-staging@lists.linux.dev, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook , "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH v2 0/6] Avoid clashing function prototypes Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 424 -Wcast-function-type-strict warnings. Link: https://reviews.llvm.org/D134831 [1] Changes in v2: - Squash previous patches 1, 2 and 3 into a single patch cfg80211. - Add a couple more patches: bna and staging. - Fix 254 (227 in bna and 27 in staging) more -Wcast-function-type-strict warnings. v1: - Link: https://lore.kernel.org/linux-hardening/cover.1666038048.git.gustavoars@kernel.org/ Gustavo A. R. Silva (6): cfg80211: Avoid clashing function prototypes hostap: Avoid clashing function prototypes zd1201: Avoid clashing function prototypes airo: Avoid clashing function prototypes bna: Avoid clashing function prototypes staging: ks7010: Avoid clashing function prototypes drivers/net/ethernet/brocade/bna/bfa_cs.h | 60 +++-- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 10 +- drivers/net/ethernet/brocade/bna/bfa_ioc.h | 8 +- drivers/net/ethernet/brocade/bna/bfa_msgq.h | 8 +- drivers/net/ethernet/brocade/bna/bna_enet.c | 6 +- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 6 +- drivers/net/ethernet/brocade/bna/bna_types.h | 27 +- drivers/net/wireless/cisco/airo.c | 204 ++++++++------- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- .../wireless/intersil/hostap/hostap_ioctl.c | 234 ++++++++++-------- drivers/net/wireless/intersil/orinoco/wext.c | 113 +++++---- drivers/net/wireless/zydas/zd1201.c | 162 ++++++------ drivers/staging/ks7010/ks_wlan_net.c | 184 +++++++------- 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 +- 18 files changed, 661 insertions(+), 579 deletions(-) -- 2.34.1