Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1579091ybc; Sun, 24 Nov 2019 01:44:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyLnpmiA7BKTiStuKvD6RI1m/uupkqn+JMJnBvkjqTUGzJNI9BBkViZo+KlhKLhNzNHnSQX X-Received: by 2002:aa7:c145:: with SMTP id r5mr11897809edp.102.1574588690012; Sun, 24 Nov 2019 01:44:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574588690; cv=none; d=google.com; s=arc-20160816; b=I5QQjPQk5Jbh1HXq0joQrPSsruaylGoOmpO/4dc/Lc3wTnLpw6kAsWAg7zR+fUs31g hdkYOBEs+8+TS87/Ui8aUU7hMds2QD9VzPt1IQv3wYt+W04UhQrLd9/Vb1Dq2EbQppSt kdAgwq0e+5E58rV00p7XFPQRfThcOENprW1fFjbBwU1Bi96dRcXxXUKZiAg7SdUYmcUg CgsTu+fNH08q9l9Wgt9VvAZxkRRcwHNTzCM4LIKFuvZyNIn1fJ8B8B0K81UTpEICZlpp GAVSUZR9bpZKa8hk4XbTxBDFVxbYOeF0E1V/uTzPMzJ0w/Lh97ZFgZn9Xz50y0icV9SN 9Opg== 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=VbURqT/hIwISYpnd7Ewfv41kiT2pdXc627ZF5Jq5I3E=; b=ICTY0dvy86TFiW1amHG4ftRBZ8B4a8xpEzq6qTsDNLufGNR594kLgqQaN/6EpnTLzC 25FKKmbwkC8ssvE+dYxFUrFra8rDsNLrMXcluTZVH/BbZupXaTOboAYoDFCXePtCptB7 fLE3xqQo2QDbq03Zzj7bHpCp15VNHjwQlKptdVZCeq8pGbSKPvVgzhsFrs4H7y/S7v/v FEcETWpJmo7cnNsYl25RprUwohm6g2X970USwENhT5d39NSURRHsamHIDaJ2cTexSMBa ICktij8B0vL3O+89gqVGEQA4cdizz9hbGleqJrUMTeDGa2mVbnxQFF9h1j0LTc966QeB BWFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kaajpFwk; 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 g26si2386183edv.109.2019.11.24.01.44.27; Sun, 24 Nov 2019 01:44:49 -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=kaajpFwk; 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 S1726940AbfKXJnY (ORCPT + 99 others); Sun, 24 Nov 2019 04:43:24 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38466 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbfKXJnX (ORCPT ); Sun, 24 Nov 2019 04:43:23 -0500 Received: by mail-pl1-f196.google.com with SMTP id o8so769340pls.5; Sun, 24 Nov 2019 01:43:23 -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=VbURqT/hIwISYpnd7Ewfv41kiT2pdXc627ZF5Jq5I3E=; b=kaajpFwknkI67k2TzOc7jKFjJ8P7mC+73sOvyDGVqRHnvtgpYOk73BRc9gBsuZvPnI kS9cvvXU6hYyx6irmwTXohLutr5JbXQZTkf+kblZIqJ8As3E2ZbHHGJwaPvgWv8n4IKW eOvTuwc9XPu8bPx3y3goeaKPJJ6x45He20aH1bBfXprV7vPAB7wts3tDerb89EPma7RR FH0o9mVGnji1fGmgivLVyEc8feTzOW9jsncXw4TAYtleYySXjNARB9iitQo+kgNwls55 D0abs1d4kX7nbO87Ivk+ARbF6SQAJZV8N7i4u9vGuvkY6G7U3dViS5qx7h4waCgqcIzR Ib9Q== 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=VbURqT/hIwISYpnd7Ewfv41kiT2pdXc627ZF5Jq5I3E=; b=QOg0go0phSpqKkrPN+BAKsuuZLkyJb2llfX2zVWV6XN/rp0RU+sDiOiye+XDf9h83z WKW2fFd32AsOm7LVz29jqjVRNLiXBRW32KAAZ8lP2E8NfV0AHhxQg4LxS83jzRKaZIw9 kfAJSS4p8tdQwUdwacuR3FU/II3xRXAlYR5b0DEVUqCufLtol+NAIx/1LZyVKBWxeV9W ETIDtg8CmhrIi4snMekkLREQXKsK+/IOkchrvtpLGc+oiWGLkOg9/N/KBVELGcl5ZrjM IOJ2AP8SOm3CSG1E/d2yJO3hlM0/C+b9FshnZn+wbZiwPz42sLLmtjc771HWPTeIWdSO TYRA== X-Gm-Message-State: APjAAAXfgyIGJr4AyJJJzNrTP9WrXLKPUoRLW4ef/zvD54BwI91MKsW7 VRPbKQKCoJ0d+hQLVjcmjfP9DNM9 X-Received: by 2002:a17:902:8201:: with SMTP id x1mr23185856pln.193.1574588602407; Sun, 24 Nov 2019 01:43:22 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2019 01:43:21 -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 1/5] drivers: net: hso: Fix -Wcast-function-type Date: Sun, 24 Nov 2019 16:43:02 +0700 Message-Id: <20191124094306.21297-2-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/usb/hso.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 74849da031fa..ca827802f291 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -1214,8 +1214,9 @@ static void hso_std_serial_read_bulk_callback(struct urb *urb) * This needs to be a tasklet otherwise we will * end up recursively calling this function. */ -static void hso_unthrottle_tasklet(struct hso_serial *serial) +static void hso_unthrottle_tasklet(unsigned long data) { + struct hso_serial *serial = (struct hso_serial *)data; unsigned long flags; spin_lock_irqsave(&serial->serial_lock, flags); @@ -1265,7 +1266,7 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp) /* Force default termio settings */ _hso_serial_set_termios(tty, NULL); tasklet_init(&serial->unthrottle_tasklet, - (void (*)(unsigned long))hso_unthrottle_tasklet, + hso_unthrottle_tasklet, (unsigned long)serial); result = hso_start_serial_device(serial->parent, GFP_KERNEL); if (result) { -- 2.20.1