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: 236 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1632614wrs; Mon, 17 Oct 2022 13:38:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jpMi6W8nZg5o8aGHiKeFPYCgxNwCwED/RIDWipHwL/36jOKoUpQTKg6vfmJET+kkt2r8c X-Received: by 2002:a17:907:2c4b:b0:78d:bb0c:4a42 with SMTP id hf11-20020a1709072c4b00b0078dbb0c4a42mr10410533ejc.546.1666039086918; Mon, 17 Oct 2022 13:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666039086; cv=none; d=google.com; s=arc-20160816; b=pEGQVUa3x0QyJ9RwioHCwYqjjuWER9l2D0Ordpw2CjdaMc6aWE4dBc3SVQLgswIWkB eSFV6ru1fDKBOQK6Z6/275/6ijl/HPUQV6lAVF7hBCNF3b0AlvLQfYLGZ3GaEutqrO56 DcdDsc73mHN9bB2pp81kiHuo5z7DsUPUkI3oAbPCv35hP/8H3Zld97lt0mk4d/D/ezwq kiOj+t61Q6W3/rpr8lbaHIRovQMs9ObUGu/cFwIcdh6Yy/KmO+Byr/ZxQ40gV0C6KQ3B x4N0eHVDwsB9hc1dCgJZOUy7ehFSuAzD/OyR6D+l6HZuIRr2CIU5kjfA96wEbeSc85M0 F2YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=0wBvTpx7n9fR6qGLOaPOt498CYOSFdZ9HfIkN/2Fep4=; b=rAEDxWR5PYkG+Pscqvz8r28teYBV79YOT7bxxeIZcwpeBYd9M/XP5tE/EXXIP4FX09 TnXvoiFUIaXhmQW4XONwvWJSHSbPWYtL30buL24Atf2S9vXQ42yGBfSQT5PL0L/+DFYq Yd11mXZN3hLw/qmWG+dtE/35Lw1axQTns0FNFLrJYOPcbI3SH/2GyAenYyAcBtSmiAMB CrOcHNQ2EdW4zEmE01EoscE53L49ceq4BQbgj0NSj/INOWi28WcH4xrNhHtKhjrUBJa8 gxnKqz/cNPg7Emc8mi8D8/IUZ8KEatex6iVJbfNYRcheZgQ6BWbuNielAwRZj3vhLtUQ IE0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y3tuAH0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170906794f00b0078db137967dsi10223614ejo.566.2022.10.17.13.37.41; Mon, 17 Oct 2022 13:38:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y3tuAH0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbiJQUgc (ORCPT + 99 others); Mon, 17 Oct 2022 16:36:32 -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 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746968601409033141?= X-GMAIL-MSGID: =?utf-8?q?1746968601409033141?= 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(-)