Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1947212ybv; Fri, 14 Feb 2020 08:41:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzdxikRVhSGnXQO/YawGwPvuvCqoeQb8q/t2Idf9CT5Sk4dOVuAuNzq3q3KQl8X9xskpgRL X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr2853742otd.372.1581698499167; Fri, 14 Feb 2020 08:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698499; cv=none; d=google.com; s=arc-20160816; b=IWRRvmEsRrCIdnsEYZUqH/YxMxhPrf0wnV9KsygM5hEtjGRa0hZFfQGzmuHxh30EWK j1x3FtPuJg8eZiWhRPLyy0HpSU0bboOD4rOpnZVe5eNTtbNAk3HS2iFE5IVKFiJ70N4m 7P37nd+WQHcJRBWwr5RrtTpleG7yKVWjPqukRB8o8kP/2BYRKmjoh+CtCC2BSVO0PFkz M2iNf3mPXGEFnJeYZV/zxJzKJ++09j3evafykuank5BElJ3OI9DdgQCGlZ33kaUPw6ii h8R8+O0xl1zmxI02KsavZYdeG7WDfs/KWjsNdx2ScHOxnutD1xD11mlUnesxgeATpuqG VdQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HWfhpsE4sgUvFs6aJsviW/ZEWvhIGfV+BJB3PWKeGCc=; b=Lyj1xd+jUytqUZSa/rzyeJ49snRrSH2OwLuvZ5P3SJbXGl6Ym4EvAE4KEY9ED8MbCc 5upJMIeiTIrQI9Qeia9wpO8Wff5to1lfIe34pwPR1WolyvCCH5aiuHW8t7FFExq4ELR4 /n2S7FB7KReadv0156AYIxRkUwkzEW2iPYgFGQt99wAoIkGMcZoZJFEqy5h4+yj+kML6 PkHEZD8dq4yxORwGWYPEyfar/6IcizHOcj/liBOKHamPwTitGvGAT5hHmnLMfe4J2VBr AennEMI0B/3pqJypMkzoC8Da+Ei3CbHLSDmG6Ki+CVP/0GWehsPehin9o9bhSvbg+h1s f+fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sU0RFBk+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7si3002135otl.133.2020.02.14.08.41.27; Fri, 14 Feb 2020 08:41:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sU0RFBk+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2393892AbgBNQkz (ORCPT + 99 others); Fri, 14 Feb 2020 11:40:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:58552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405111AbgBNQWn (ORCPT ); Fri, 14 Feb 2020 11:22:43 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2AE17246D4; Fri, 14 Feb 2020 16:22:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697363; bh=0ubQoE6C0WAvRll5HGGYLPPMP8RBxLY9TLlrh3Qox2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sU0RFBk+vwQ4cWKrY/hzG5yhlieygBmU7dpbvULVb50yERHFPqI0MRwGdUCVfPOUS k/vEyM3VlO7P9H5H5Nu8BV3YY8OXMQB0iSip9s5YXByhvkCqKgCLithCj2VsEjpYm0 35VzOAhZXQwQn4k1cC+O8PfLkp9LFcxon/pJtQxM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Phong Tran , Kees Cook , Kalle Valo , Sasha Levin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 063/141] iwlegacy: Fix -Wcast-function-type Date: Fri, 14 Feb 2020 11:20:03 -0500 Message-Id: <20200214162122.19794-63-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Phong Tran [ Upstream commit da5e57e8a6a3e69dac2937ba63fa86355628fbb2 ] correct usage prototype of callback in tasklet_init(). Report by https://github.com/KSPP/linux/issues/20 Signed-off-by: Phong Tran Reviewed-by: Kees Cook Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlegacy/3945-mac.c | 5 +++-- drivers/net/wireless/intel/iwlegacy/4965-mac.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/intel/iwlegacy/3945-mac.c b/drivers/net/wireless/intel/iwlegacy/3945-mac.c index 466912eb2d874..d853ccbf74cb2 100644 --- a/drivers/net/wireless/intel/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/3945-mac.c @@ -1399,8 +1399,9 @@ il3945_dump_nic_error_log(struct il_priv *il) } static void -il3945_irq_tasklet(struct il_priv *il) +il3945_irq_tasklet(unsigned long data) { + struct il_priv *il = (struct il_priv *)data; u32 inta, handled = 0; u32 inta_fh; unsigned long flags; @@ -3432,7 +3433,7 @@ il3945_setup_deferred_work(struct il_priv *il) setup_timer(&il->watchdog, il_bg_watchdog, (unsigned long)il); tasklet_init(&il->irq_tasklet, - (void (*)(unsigned long))il3945_irq_tasklet, + il3945_irq_tasklet, (unsigned long)il); } diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c index a91d170a614b6..6c2dcd2367136 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c @@ -4361,8 +4361,9 @@ il4965_synchronize_irq(struct il_priv *il) } static void -il4965_irq_tasklet(struct il_priv *il) +il4965_irq_tasklet(unsigned long data) { + struct il_priv *il = (struct il_priv *)data; u32 inta, handled = 0; u32 inta_fh; unsigned long flags; @@ -6260,7 +6261,7 @@ il4965_setup_deferred_work(struct il_priv *il) setup_timer(&il->watchdog, il_bg_watchdog, (unsigned long)il); tasklet_init(&il->irq_tasklet, - (void (*)(unsigned long))il4965_irq_tasklet, + il4965_irq_tasklet, (unsigned long)il); } -- 2.20.1