Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1579225ybc; Sun, 24 Nov 2019 01:45:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyaoBy3FlZibYQtiCdv6zt/kbocub+TySPyH3zjZ/eD3YwOmff/4LjmfnLgu/A79eFuzjCc X-Received: by 2002:a17:906:5211:: with SMTP id g17mr31554943ejm.60.1574588704105; Sun, 24 Nov 2019 01:45:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574588704; cv=none; d=google.com; s=arc-20160816; b=b376J5vbAIzDc1NNCD+e1PQzRTId1nXFMLern12L3wwk677Qkqqr+Oq3bxSFmc37+i kVfH82rHKUP9kwih0rD0d7q9i8yCO+AmjflxKUBvxuTCL01Vp4p9mr610/OBBIGG8cgh D3xZsG8G9HmlfIUneAuGFGJ6ZdoTmEbab8ymCkTG5H1c6lmDV+/m/jqwKb6gWDPJGyGN agxE85VBSxoh0qEfI086L3eqYj/nKkCRYkOS/iBYF5ZgYUv+rVNDK92db2hfszXXjLoI rooKn4sPHXOVOI7WCwvTBQvABbIc6gnANGm+0Ev6vtZTcW8X0gCXREN1PGbNKipTda2/ AS/A== 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=kKcTzJuC8PJNnzJIm6q83P/GLVLCiZGhOohm6Nds3hc=; b=uBpiQ/+uYiTGMesB7XMSeKYf1mDuZxpB/fHbeHuyK5ykwjWTwh9QSdsegkJlPOarra 3yLmny0ll685iC3zGQk2NaeRpJqAeGNPGf9oS8GA2kBkgJKFJDoj+uJslxOpsct/5iMw QiUnuR/KkD82a3gSM2gjx7J0hEx2fw80rxQVGTCKqApqmw1ooqKNLM8P3odHWNTe1R56 B7106TcllDH+GzmTRj4gfD4rwMq8HkYrBSO0Zv5nfzXfPMOrChftpPDU0OEkVzH42JLk d1vW8qov5rJtSY8ynbcOLbZX7zxzShZviWTWwOG2PPEqiZUjkTR7sIRd2T2ls7SrUkoE 6CUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X8dZyNbi; 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 k3si2458699edq.409.2019.11.24.01.44.41; Sun, 24 Nov 2019 01:45:04 -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=X8dZyNbi; 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 S1727088AbfKXJnb (ORCPT + 99 others); Sun, 24 Nov 2019 04:43:31 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42035 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbfKXJna (ORCPT ); Sun, 24 Nov 2019 04:43:30 -0500 Received: by mail-pl1-f196.google.com with SMTP id j12so5120484plt.9; Sun, 24 Nov 2019 01:43:29 -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=kKcTzJuC8PJNnzJIm6q83P/GLVLCiZGhOohm6Nds3hc=; b=X8dZyNbi3pl+sJ8jfd2OCmlabAVhWAZlCWuunPrsoKiHbMoH55cymADTddbO3fJ/OC FjLO6PNcC2YgAA3vy4g7maWL+gPrWUJWX8mlwhKRDuoVIw+LafdRH30SolvbZdat0r2S XZd96YHHet9+YyzSCOfxydogbOHD6k9rWOEE50LgsbNlO2QKIA4ZFL+FZyf/aNnu7ndk bFsaGs2UHtadrPeu2cxRcwVAss2vBkPd7m4W4NMWqlRexLQImRlRmcEnmgBdVyO5nFGT QqF6iTNnHtMHN5H8k7weBSsmc21axWhI1TxDBNg20skeR77b19fUvNqP9RdrMrEk2vRl ECzg== 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=kKcTzJuC8PJNnzJIm6q83P/GLVLCiZGhOohm6Nds3hc=; b=dJ3vGUkTeYwlyp2Jytjq3VbneTMbbYo1+raC+sqG0Or54Xe5R0kq8jrtSaBV/mWOzG FTgzbqKjj378QZ5j9rIw+9qECEVP1iWGXor7+uSHZsbtRgE1gcMkzuVCDHPjStjmfEbJ NV3O5n2nZVozLr5ABFFKUKF3Z+aB4tLima3Fkeka2GDhY2mIPiJX+y0stVbQy5tIQ5rC 1gwge0D6+zlUMwfkg4y+8R11tmV8rMHN0THC2bBQlfIriGZpr7/gL9TJEmBuIvr4VJTJ Ojy985Pwjieek0aKJEdK1ojeGvegD3Su0zPRcPaYMVs+M722oH4ZvCdULHTXJK8fa0oz k7CQ== X-Gm-Message-State: APjAAAXsIebTBMs19cGHDdm/go7nYhbYPUzKe9RnrMsUFvXaqYSn5/6x XftC4Sbwgw5EVBa+AVmdPd0= X-Received: by 2002:a17:90a:be05:: with SMTP id a5mr78858pjs.73.1574588609123; Sun, 24 Nov 2019 01:43:29 -0800 (PST) Received: from debian.net.fpt ([2405:4800:58f7:550c:6dad:1b5f:afc6:7758]) by smtp.gmail.com with ESMTPSA id c3sm4091213pfi.91.2019.11.24.01.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2019 01:43:28 -0800 (PST) From: Phong Tran To: davem@davemloft.net, keescook@chromium.org Cc: kvalo@codeaurora.org, saeedm@mellanox.com, jeffrey.t.kirsher@intel.com, luciano.coelho@intel.com, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Phong Tran Subject: [PATCH 3/5] drivers: net: b43legacy: Fix -Wcast-function-type Date: Sun, 24 Nov 2019 16:43:04 +0700 Message-Id: <20191124094306.21297-4-tranmanphong@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191124094306.21297-1-tranmanphong@gmail.com> References: <20191124094306.21297-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 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