Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4505960ybc; Tue, 26 Nov 2019 09:58:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwccID9c8kUhRWlVqzZSkJ6+nuipX4wb2zXZ7lh/4febutOM/ER4CCb5qwfoZsHvlQDswO+ X-Received: by 2002:a50:9fc1:: with SMTP id c59mr27200883edf.305.1574791130386; Tue, 26 Nov 2019 09:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574791130; cv=none; d=google.com; s=arc-20160816; b=Fx8FwSatyaye84x7vAWOEySsGqmxgXlQR4R+XSu8NXKrWDzenuOMWUcuwGv1Ebsprf GN4TK7sghzqSVFIJROEW3MT+w9QER9pPvqqE1IjLu0GDik9+/5nmGrn5yanXu86XoAD1 mWEVgCO34YllduioJpaU/fT1BCNSuci6L0l8xNMNo6WQsOI8tj5uajdEIZFiEvzdb3Me TaOKpRJ9/3EF+FoTQfBUlsvBb0FmM7jfEysqZJA6kAwykZ4lhXmsjm02N76gWq5wo3nc UG9DNti5aND1+W/3RIQssB/86ppRFZzkSKvxqM7FJPaz3xjgAJ4uYwsK3KItn/u0YScW 9a3Q== 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=psR0lc9V3Wlfquc+Ru02h/4BIxYapesjG8uBLemW7hI=; b=trljzdWNGW2Lr/cUppZj5YuhQ6avsAz7Tnb+Oaf8hRJ+SEg0yfpoobzm1msacboIfq gm1YDYMLWVMnrO76TBlrSwwheqj0sjhv3tG23KwHitbw0RD4hFMORSd0O1w5bAoL/Iyx ITc3AspA+hZyjEmpoykTs7bDRZhB3Rj/ib9XfMDp0jmYwJH7pXDRPINxlDeiMB81EQde SfO4F0Nv9Jqmb6JQoJg3mCvIYlWMdkxak+B+hVAPDuliswdPo4S2At6uVzBDJgd9uH2Y 5KRaX2WKYkCMjle/kalstERCSNcff+9sR3CI688PW7rm/z93FHa+nD729E1hFobg9WLd Jsgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sN8rMBdF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ns21si7849062ejb.272.2019.11.26.09.58.26; Tue, 26 Nov 2019 09:58:50 -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=@gmail.com header.s=20161025 header.b=sN8rMBdF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727209AbfKZRz6 (ORCPT + 99 others); Tue, 26 Nov 2019 12:55:58 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:44855 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfKZRz4 (ORCPT ); Tue, 26 Nov 2019 12:55:56 -0500 Received: by mail-pj1-f66.google.com with SMTP id w8so8619363pjh.11; Tue, 26 Nov 2019 09:55:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=psR0lc9V3Wlfquc+Ru02h/4BIxYapesjG8uBLemW7hI=; b=sN8rMBdFIP6ykaiXexQPhfCmYQ/9qTmtAD0VRlwvbxiR9+ISfJB2y2m3KHsDyRcf0a v7ZSbymfjpsXpyUfbKs5Y6UTicbUi59Yx7JLWLQ+L3cbvLqZDUnrCt+YLsi8MKnARYRP af6osaeEiVghatzOx/ISWnohIoknKNOQXyUvncBuEVpZavn6OSwMQVoQZzqHCYGHnxEU nOB0o0b/J5mMUK22msy5yjj8bYe5Yfhmj8alowlAjuMfUv3dYQXqZb+3kaRdUn8yD2aa k0dIKkQS6kyFzd2o/qylEk4cyqa+KggJ5DfpFOndJqT8DIQJoWGNiFDp73aJZS6zvbMR TSog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=psR0lc9V3Wlfquc+Ru02h/4BIxYapesjG8uBLemW7hI=; b=RumvShnB9kzadkZs8AvzfWEe0qbUmnH+DGPw/jAsZREtyMBJ3zrrSsbI22FWY9yQ1W 4bVZ3iM0yA+j/mXrJMSZDQLXYI+cMXluFDhLJs+ut91XNRS6H58J7GWdLaVaScWR47aH SFhcarc4//NR4GxWNGtFVG9jwHhJKTWgrl394pv1mzYX2Y2ILhc/KlLpZoIND7GGLTLL tJLXqYWhzG34kzwN4fl+RktSLog5pHFF2dfBYNb770Ku/KriPuSeKsNcndSEs4F1qvRU WGuZL7nl2M1Qg+RZcYaYaUTJiRfvOiIE/ZvQBxYuDdPXngGjhHsbL6P0gcfkIrtpstLU gY9g== X-Gm-Message-State: APjAAAWYD/2w8x8HsKsERYFq5de8HEbtFJ/sTBEbyl14SzOLeMkx4CS7 6BeWRIWd/bVS19HO/P5br5Q= X-Received: by 2002:a17:902:b60d:: with SMTP id b13mr36433120pls.145.1574790955800; Tue, 26 Nov 2019 09:55:55 -0800 (PST) Received: from debian.net.fpt ([2405:4800:58f7:2f79:ce3b:4b9:a68f:959f]) by smtp.gmail.com with ESMTPSA id q6sm781577pfl.140.2019.11.26.09.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 09:55:55 -0800 (PST) From: Phong Tran To: Larry.Finger@lwfinger.net, jakub.kicinski@netronome.com, kvalo@codeaurora.org Cc: tranmanphong@gmail.com, Wright.Feng@cypress.com, arend.vanspriel@broadcom.com, davem@davemloft.net, emmanuel.grumbach@intel.com, franky.lin@broadcom.com, johannes.berg@intel.com, keescook@chromium.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, luciano.coelho@intel.com, netdev@vger.kernel.org, p.figiel@camlintechnologies.com, pieter-paul.giesberts@broadcom.com, pkshih@realtek.com, rafal@milecki.pl, sara.sharon@intel.com, shahar.s.matityahu@intel.com, yhchuang@realtek.com, yuehaibing@huawei.com Subject: [Patch v2 1/4] b43legacy: Fix -Wcast-function-type Date: Wed, 27 Nov 2019 00:55:26 +0700 Message-Id: <20191126175529.10909-2-tranmanphong@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191126175529.10909-1-tranmanphong@gmail.com> References: <20191125150215.29263-1-tranmanphong@gmail.com> <20191126175529.10909-1-tranmanphong@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 4325e91736eb..8b6b657c4b85 100644 --- a/drivers/net/wireless/broadcom/b43legacy/main.c +++ b/drivers/net/wireless/broadcom/b43legacy/main.c @@ -1275,8 +1275,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; @@ -3741,7 +3742,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