Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2816208pxb; Sat, 30 Jan 2021 16:06:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlBTY+K5RKk3XpMiIKdwquuYYzHWsfbBaQgoL5Vl4V90SIZSebwag5Qg/67PvAFWBG6tss X-Received: by 2002:a17:906:803:: with SMTP id e3mr10768809ejd.346.1612051607734; Sat, 30 Jan 2021 16:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612051607; cv=none; d=google.com; s=arc-20160816; b=YNWvOtXtJDijTMHQFgP+KtOGX3Wnn5G4rQtmsp/MiqP7So71ohpIgVYH2UfwQqElBq H+oT4Hr7PjKbqLSfaRUFThLcexL4YtTz+wL3wcNUzZ7FZQS0DgwC+X1eAHwrmNmvsNMT 8RaBve5culJhltkBxlvFlB3Z70Vm3pzI3zb4ZgdbLMtS1UcqslFjVqh8biugxzqcGgvq pG9tv23tkf3bzaPxZkqbJf1BXAo9VMFRlvru2WSIAfwlZmRM/HEVE69q/5E3q2ItoFiS 88kIXWduvahZtSdirfwQV7FUFUq0Wxr5fyIbPcFoZZ0VDlPt5JkWpjdN7Qrip9ClODlc egWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=ZUHZvq9Ynb7GHrViRpXoA7KwnYEZy9HTSBIIQWPzb7w=; b=x7wvsNMMhwIFsskwo4csMMY4PFTLimZoW7R7+w6MrgBx9gh0dbqqMJGC981NWseJbI +6rEjdLy8AWLJulg9L6tqCxqpbEuyqhO0rlb8F2RfLug1HBEm6ZTkpDgb1m3sKgNUnUg 5Gh9WA4qDy5AfTw8PDEruifHONjrXESAdCORCu9hDPBo/hu18/A5u7xAP2rhmdBsIBKG WMGYEnXJnvekmYra3fhS+9hikrNwAgBCOLllF6wKB9Q7zbWVfT00ggi++/YArv1sC5xY 400ZTdKYa/XEp9D+G6cCYv4/5NV2Dzssr32eIDjXE3XklpsP9u10jzdfGcp0wQMlUFrH rwOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V+2iyN96; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si7273231edc.537.2021.01.30.16.06.23; Sat, 30 Jan 2021 16:06:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V+2iyN96; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232463AbhA3XtE (ORCPT + 99 others); Sat, 30 Jan 2021 18:49:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbhA3Xsc (ORCPT ); Sat, 30 Jan 2021 18:48:32 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C65EC061573; Sat, 30 Jan 2021 15:47:52 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id rv9so18534573ejb.13; Sat, 30 Jan 2021 15:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZUHZvq9Ynb7GHrViRpXoA7KwnYEZy9HTSBIIQWPzb7w=; b=V+2iyN966+5XCIkHlDCAXztkdHMSl6foNUeYMYbUBi808e6bcNNz6Hbeo8uSokQ2Bl zQjEBolLQoG9CpV1b4TDCMQg8GvOgiXaeqbAM+l4slTMunFZidnl18oSab5biVLn/9wV 8hwJMmsLa7HxrXCIWrb3bXDzTbRwjeVrRL1mUKLMECVAAUE5X1LHr2jOyyExaNZR6pcv g7NtChUG0shlKAIfwlZX+dfZsSHXc7hs4ahgjGaz2xt4AIfkpZXyoNpNIWwV3lCxAKfA tazrdUraPp7IDcC9qay24avUPuFhnUPDwVIdqjFmhhAYN4Bpi8fXU0VVvODxaVWY7LEA ZTkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=ZUHZvq9Ynb7GHrViRpXoA7KwnYEZy9HTSBIIQWPzb7w=; b=bcVP76tQPky+/Lp0H9SLWSBEIwESGj3zy9/HWt45saM+UDxHUUDw1s2bgX0YklawdS YdfdjFcd9FXtcYDDfo4DSCDyoaoaw0Adi07moh5W14ty+3BWgvXi7+XMJq8qqIjzNEr2 c1lExqPctnvMZqXA437A4NO/RrW9fDbADk54XQH/5Qis3qsSwNjo8YhFVid5Nc6O1eTi 9u1cbR9fLX3vV6B39H7GZagnISShSK/EIKh7QAOq/mbrGdVPx8ZMxhxJ8Vpvx28GEf5b 1ptkBkqGEwzPfcGfi9eie8aYdtZHVQ8ktJ7gXN+xnP348AAftiH9j+Uxa+7YHDCQLubP pi/A== X-Gm-Message-State: AOAM532L7wbj8M2Eu/Tuxf/AZKU80ZIGOSqashlJ2kjmkyxcA/wxEjzR Qd4CxkxeGGYFP/yTNddwTgJfRlvD60/3cM4y X-Received: by 2002:a17:906:958f:: with SMTP id r15mr10772898ejx.360.1612050471142; Sat, 30 Jan 2021 15:47:51 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id u17sm6628009edr.0.2021.01.30.15.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 15:47:50 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-ppp@vger.kernel.org Cc: Emil Renner Berthing , Michael Grzeschik , "David S. Miller" , Jakub Kicinski , Paul Mackerras , Woojung Huh , UNGLinuxDriver@microchip.com, Petko Manolov , Luc Van Oostenryck , Jing Xiangfeng , Oliver Neukum , linux-kernel@vger.kernel.org Subject: [PATCH 0/9] drivers: net: update tasklet_init callers Date: Sun, 31 Jan 2021 00:47:21 +0100 Message-Id: <20210130234730.26565-1-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This updates the remaining callers of tasklet_init() in drivers/net to the new API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") All changes are done by coccinelle using the following semantic patch. Coccinelle needs a little help parsing drivers/net/arcnet/arcnet.c @ match @ type T; T *container; identifier tasklet; identifier callback; @@ tasklet_init(&container->tasklet, callback, (unsigned long)container); @ patch1 depends on match @ type match.T; identifier match.tasklet; identifier match.callback; identifier data; identifier container; @@ -void callback(unsigned long data) +void callback(struct tasklet_struct *t) { ... - T *container = (T *)data; + T *container = from_tasklet(container, t, tasklet); ... } @ patch2 depends on match @ type match.T; identifier match.tasklet; identifier match.callback; identifier data; identifier container; @@ -void callback(unsigned long data) +void callback(struct tasklet_struct *t) { ... - T *container; + T *container = from_tasklet(container, t, tasklet); ... - container = (T *)data; ... } @ depends on (patch1 || patch2) @ match.T *container; identifier match.tasklet; identifier match.callback; @@ - tasklet_init(&container->tasklet, callback, (unsigned long)container); + tasklet_setup(&container->tasklet, callback); Emil Renner Berthing (9): arcnet: use new tasklet API caif_virtio: use new tasklet API ifb: use new tasklet API ppp: use new tasklet API net: usb: hso: use new tasklet API net: usb: lan78xx: use new tasklet API net: usb: pegasus: use new tasklet API net: usb: r8152: use new tasklet API net: usb: rtl8150: use new tasklet API drivers/net/arcnet/arcnet.c | 7 +++---- drivers/net/caif/caif_virtio.c | 8 +++----- drivers/net/ifb.c | 7 +++---- drivers/net/ppp/ppp_async.c | 8 ++++---- drivers/net/ppp/ppp_synctty.c | 8 ++++---- drivers/net/usb/hso.c | 10 +++++----- drivers/net/usb/lan78xx.c | 6 +++--- drivers/net/usb/pegasus.c | 7 +++---- drivers/net/usb/r8152.c | 8 +++----- drivers/net/usb/rtl8150.c | 6 +++--- 10 files changed, 34 insertions(+), 41 deletions(-) -- 2.30.0