Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1624249ybv; Fri, 21 Feb 2020 00:30:25 -0800 (PST) X-Google-Smtp-Source: APXvYqx7Q9mo8CkBaeVkYuH3f/KgsTgcZK5bKWPYmhVUHLBZao7wJK1RFBBwCXQxbIKSRBjLCakG X-Received: by 2002:a9d:62d8:: with SMTP id z24mr26239781otk.362.1582273825120; Fri, 21 Feb 2020 00:30:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273825; cv=none; d=google.com; s=arc-20160816; b=LEwGUS43dK3upMuq4n9yKdL5i0/YhpeMn0N5t+FQ8U+lXNVobN7GaRzGlmJse3SUlg yukDuhUJaiZYyQPHqTQplh84Z7TT7Nn8jwfwsXfx4eQtmCkgRbnBE0JN5QxwSliTR1zz fX90dfBPlVJx8M3USO+nEdME8sGR0l2eMFdbuh1Ps9k2YyQniRozQ7nG6Zsa7pkNWGVW NV8A43kCKoJrznKWovIppRck9wlF0NYBcoKUK1pKuWsLC0xWbmGFOGr92Q2X6hQdvtPX 3elXhDty0st4Bqda6yk9khdQqXWCf+X6wQYo5u37+LefO2HohIEYJlaw/v9jIqt/RWtY kJ+w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8uJ8vuS4htgQQCvv6dAiWk3VnRNWtH8coGFuc5fUb8E=; b=dPUVpAx8p+Sxt3SqQ6yUoKplYfCi3A6ba9F0bDJ6D4mNgIZ2gamA4PZ+spzLyIoifA /Fu0GcddcPHDUsdMLIERA5Cyrib3ckzXZHY56crQwa+KoZw2Wmcywxa/r8aKvKt03SnK RpugGgtBq5pFx3kSGnttR4dnRytpMihpeQBinqEhVUnI1i6PevOO1E0gFDYSDPssjiw7 aZZWcicZATTBZwvMnPykzTBwA6poYY9Z8JH82CJVeCkT1+WEtP1UNY3HEBHrTxDe8993 Q0IRATP4rcsyXZKEIFfHRJAhNYaL7D8fdp6164vixGDYMDhU5Dl3O35XVowJBO5a9GH9 twRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Nh86zzYd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si1216437otk.120.2020.02.21.00.30.13; Fri, 21 Feb 2020 00:30:25 -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=Nh86zzYd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388066AbgBUITq (ORCPT + 99 others); Fri, 21 Feb 2020 03:19:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:58462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387764AbgBUITn (ORCPT ); Fri, 21 Feb 2020 03:19:43 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A068024694; Fri, 21 Feb 2020 08:19:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273183; bh=EuFzhoLZW1Xqcn9uKBwQn2yQLYSQNUgB5uOubWxz5C8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nh86zzYdfAfRbphBttweWknTVSBNr/Bk4Q98sjxYoHmf9G2ZgMdwAs+OESp4+cuSw 8nMeP28qTSdl8THlLt33EUvJpclBaHID0SjR5V6BwdGWVPE6LShZ3FM8HxJwcoQqgK JRBf5ByBKwuQ9hGzYI2jVjespCz31wxGuSvxWqbI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Larry Finger , Phong Tran , Kees Cook , Kalle Valo , Sasha Levin Subject: [PATCH 4.19 075/191] b43legacy: Fix -Wcast-function-type Date: Fri, 21 Feb 2020 08:40:48 +0100 Message-Id: <20200221072300.301492414@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 475eec112e4267232d10f4afe2f939a241692b6c ] correct usage prototype of callback in tasklet_init(). Report by https://github.com/KSPP/linux/issues/20 Tested-by: Larry Finger Signed-off-by: Phong Tran Reviewed-by: Kees Cook Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/b43legacy/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43legacy/main.c b/drivers/net/wireless/broadcom/b43legacy/main.c index 55f411925960e..770cc218ca4bd 100644 --- a/drivers/net/wireless/broadcom/b43legacy/main.c +++ b/drivers/net/wireless/broadcom/b43legacy/main.c @@ -1304,8 +1304,9 @@ static void handle_irq_ucode_debug(struct b43legacy_wldev *dev) } /* Interrupt handler bottom-half */ -static void b43legacy_interrupt_tasklet(struct b43legacy_wldev *dev) +static void b43legacy_interrupt_tasklet(unsigned long data) { + struct b43legacy_wldev *dev = (struct b43legacy_wldev *)data; u32 reason; u32 dma_reason[ARRAY_SIZE(dev->dma_reason)]; u32 merged_dma_reason = 0; @@ -3775,7 +3776,7 @@ static int b43legacy_one_core_attach(struct ssb_device *dev, b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); wldev->bad_frames_preempt = modparam_bad_frames_preempt; tasklet_init(&wldev->isr_tasklet, - (void (*)(unsigned long))b43legacy_interrupt_tasklet, + b43legacy_interrupt_tasklet, (unsigned long)wldev); if (modparam_pio) wldev->__using_pio = true; -- 2.20.1