From patchwork Mon Oct 17 20:32:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 13009579 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 03CA1C43217 for ; Mon, 17 Oct 2022 20:36:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230338AbiJQUg1 (ORCPT ); Mon, 17 Oct 2022 16:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232441AbiJQUfj (ORCPT ); Mon, 17 Oct 2022 16:35:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BC8D7D781; Mon, 17 Oct 2022 13:33:57 -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 D95FE61272; Mon, 17 Oct 2022 20:32:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 842E2C433D6; Mon, 17 Oct 2022 20:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666038754; bh=O51h1IkbGHXc8GoS+R+788LmBhDQsi4CZfclbd5koes=; h=Date:From:To:Cc:Subject:From; b=Y3tuAH0laMBhDZUpROhTGF3IH1W1zh6ILuZV8ddO26YvkbfnMWI+V62qNOj9BcNta iyPqAIGBQk62p6t4HT4tmyaRC2rhnMXSpv8HcTI3XJi0eSpLIgIAT1OcxE+xbVBicP 3dg1EUGG4jsi5IJ58crRv7JkFBawGsC6cW2Gs4lVCZTAKkoDlObIh5WmxMuuCRl/mh ssZtwvC2N9tAnBGaj/8QlHYcxxkxs+dwBCbZmEkTCVqsZYDgJZuM0itSbK6zTfilyM HnrmWucoBaJ9UyrCxmnUFkuFpBGl8HKi80T3tt3ukp90yz8p7sGDtkTxDbtXeEv50q /GiAK8ymVzcZA== Date: Mon, 17 Oct 2022 15:32:25 -0500 From: "Gustavo A. R. Silva" To: Jouni Malinen , Stanislav Yakovlev , Johannes Berg , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: 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 0/6][next] Avoid clashing function prototypes Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: netdev@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 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(-)