From patchwork Mon Oct 17 20:34:48 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: 3732 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1633131wrs; Mon, 17 Oct 2022 13:39:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7XKxef2vDKMbb6UOFPuN8Q8ZnzKI+PODI1RVVzzeOHO98oXBwICn8Lu/QFZtijQunHypJ4 X-Received: by 2002:a05:6402:11ce:b0:45c:a2a2:4207 with SMTP id j14-20020a05640211ce00b0045ca2a24207mr11797845edw.3.1666039167543; Mon, 17 Oct 2022 13:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666039167; cv=none; d=google.com; s=arc-20160816; b=h0/TrBv2O9Jx6hTqp1Mj6DUR/Ta7hMVJ9sYtD6I11G5PkUW/yjqg+Hlf5bdBxwt9Xg lO3PhE6Le2P9UFDbRTZHZUngC14WRgElUBqVic8I8h6Dqy0+0C/cDnxsZ/m7eL2U3cg4 D4zLfq8ALT6vPomD7AbUuXW0oWxAfMHW5Nr07LU0n8R8qLFR+zk1adKk3sfg7nkCcgLo KAOJlnau7KBUbBFkCzX2SvQPPQQ+0nuk+PIY7eDcF/vjgV+yreha9Lm2VTIqI1uVfDvh Xfal5ndkNvOyZqtnwxctcGkxsl2zryzEgpNwEskhykocKwu2zxKNHUp6dn4rgzHDTvx0 UeIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vMTfqJfaTP3IeSPiQnIBcETNv6gZCQ02MvHimwGo8Yo=; b=XAstdxHtnd65bxVkuDW04prHUuGwEAgjkbiQ+GwvhQHGHe2/ULdkDHU5boOuYLd/L5 ua5KbwGrylKqTCao9g5vYT53x0Rnqnt7MADr7MaTKywcHIag8K/FYcjvz8CtCA3dqUI6 SQdMDahvinfZREtLKuFYTbmy3+hhAmnYHLn+ttvD3ZMjP6kz7hurq5Zw/mTG+npymRdM CS0YOcFwb5gPvkk+KaWDX4lY/BgNv3M0hWF0/oKnF4kxkECNu5ctP0O3cPfM3cg6+Sl5 ay6xaEOx6J1cgYIulNAPmfhl+PNs94Mk/w3vMh2LaSoAWYRJwEgu2uHfzgoW+x4W2khg dBCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MrHVh88P; 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 hp7-20020a1709073e0700b00780ec98afafsi9684295ejc.113.2022.10.17.13.38.57; Mon, 17 Oct 2022 13:39:27 -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=MrHVh88P; 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 S231665AbiJQUhv (ORCPT + 99 others); Mon, 17 Oct 2022 16:37:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbiJQUhb (ORCPT ); Mon, 17 Oct 2022 16:37:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ADDF80BD3; Mon, 17 Oct 2022 13:35:44 -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 ams.source.kernel.org (Postfix) with ESMTPS id 855B2B81AD3; Mon, 17 Oct 2022 20:34:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA7ABC433C1; Mon, 17 Oct 2022 20:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666038898; bh=pr4++4yUHbZlDDwyrw3c+RvKoKW1WA0ngYLG9iMMutk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MrHVh88PjdMGfdAOf5Bim7C4ijNzrtPm7Ai19A9NZ+q3r08LrdzKnGZIHGSWUZ230 JsgVFUnWvvdkLZ2hgnlSu4x4Vajj1lL9ePVl4HW5uXncvlIWwrXZRsSUUn1uLoA5qo /4wfQsL6kFxU1uTRKUxiHVuYgJsH4w+6r5EQ9poI7hqrnEyIPVjjKRXt+jwH1IxgKu vYKtsG3xBrG1jbUGqEynnfgCQVzS9hCVB6PuaK5Q6u4ngJJTagu93SGDSPs++s2TQp TA99IJzxIqAStR8Wd+x+3kUb+vgRShV/+7BvZ5v5OMKIzUJDR5iFg2Ouajlhqzhx1W Bivv/zPi927Pg== Date: Mon, 17 Oct 2022 15:34:48 -0500 From: "Gustavo A. R. Silva" To: Stanislav Yakovlev , 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 3/6][next] ipw2x00: Remove unnecessary cast to iw_handler in ipw_wx_handlers Message-ID: <421a4b4673da8fb610850f674d0994ad46bc1ed6.1666038048.git.gustavoars@kernel.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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?1746968686236822725?= X-GMAIL-MSGID: =?utf-8?q?1746968686236822725?= Previous patches have removed the rest of the casts to iw_handler in ipw_wx_handlers array definition, and with that multiple -Wcast-function-type-strict warnings have been fixed. Remove the one cast to iw_handler remaining, which was not removed in previous patches because there was no -Wcast-function-type-strict warning associated with it. Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 5b483de18c81..3158f91b18d5 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -9870,7 +9870,7 @@ static int ipw_wx_sw_reset(struct net_device *dev, /* Rebase the WE IOCTLs to zero for the handler array */ static iw_handler ipw_wx_handlers[] = { - IW_HANDLER(SIOCGIWNAME, (iw_handler)cfg80211_wext_giwname), + IW_HANDLER(SIOCGIWNAME, cfg80211_wext_giwname), IW_HANDLER(SIOCSIWFREQ, ipw_wx_set_freq), IW_HANDLER(SIOCGIWFREQ, ipw_wx_get_freq), IW_HANDLER(SIOCSIWMODE, ipw_wx_set_mode),