Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp594297pxb; Wed, 27 Jan 2021 16:09:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZu+vMhSO3hAWUZ/tWHEhtBdjrk0FCL96mZLzVHcZs6wkV5KXleLV5dxRqt50GguQoKEnC X-Received: by 2002:a17:906:cedd:: with SMTP id si29mr9054072ejb.426.1611792584577; Wed, 27 Jan 2021 16:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792584; cv=none; d=google.com; s=arc-20160816; b=FZ8ui2zusDiYA93gLukr2qnmkLmrsyhlmV9ohi57lzmYShL2oVBRzXs+82xz7zSIAK RrqfUfd/H8/PGrv3F7ewG6owxlA3I8RxAK7/xDQ+NrvYIfEzaPgNlUO7Sq+ryk3RzpU5 dMICbcggGa3yTmi00EXhXCL6dk+MIf5ROpL0I9X5KFKE7U5mRUHBgMFuy5+nyMSK6FLZ +PQu0Vhc3VL4EEwhEiqgQguiXg2488ILn1/NBQ4nS1+4NMJnOtu/4b+xEwIEtj0zOfRV jd4NsEsuLOKcys244/PPEddA081SBfUeLPV01DEOrWFSfuFWsrRE4fTU8TDtIz6EH3ka pmVA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=JX/8GTplWaX87X7dc46w0AUNuF+gLdIS0hovfiOe7V4=; b=GaeFXqEVMtMPjp0QBajq+jJnYR2ry/Rm+uthJncc4I79qZ7JAuTdfICHjbrTSHcR0a +DneQTOe7qJflNOInF8uTQwTV5T1W7O4mupg3yKTxfW7ol1Ngr1xJ2oKYpkaf6x1gSHE miXeCqj0gEw11YNoqDhNvdi5JGBX6GBHbKasKDcEN/sv7r8ZuCIkI/L4No8HceJ3fZiV pv2He2YjoDekVyelJMwWNW0TiyXF6GywRJBfSSnm4KsWBgWLfUfxqQ0eiejUIuYmlvlR tokqOK4lNcRb2Xphmye2y4K8DLaAAhX138kd9P5Zy0kdUzQ/RlhCrnacLNI+d6gQxT2h PU4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NVC4G0g8; 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 br22si1518039ejb.431.2021.01.27.16.09.20; Wed, 27 Jan 2021 16:09:44 -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=NVC4G0g8; 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 S235961AbhA0Rfz (ORCPT + 99 others); Wed, 27 Jan 2021 12:35:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343971AbhA0Rdv (ORCPT ); Wed, 27 Jan 2021 12:33:51 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FB4EC061574; Wed, 27 Jan 2021 09:33:11 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id e15so2395024wme.0; Wed, 27 Jan 2021 09:33:11 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=JX/8GTplWaX87X7dc46w0AUNuF+gLdIS0hovfiOe7V4=; b=NVC4G0g8320myIaVop1R6qvXSC7iaeFuH5Vi+k8uwTU7yA84d30FADqZA2jRTXn/HO s4y9wzRP3q74zSx/yAzuZoM9+r0+6sS6vfuELFtp7V5+Zc03BX4fpqtsGZT44q3gO519 HRuodDTpJjJLaWPfNYhXjP/7d0NS6NQKttZNXvUTOZn0f6f3i5Zsut9kn8h1pxcUb1Ea mPo5lhHDZpKPeTdGtvRL1Lig/5+KWROxphsIFRt/ML5pgFN2zvSwMiLAPFJXvS2DxEXG pDUv09yeW3J2NWgSxDG9rqSVJAhUI9YnW7EYwsdfq18mEh8Uzgynqw6RxYSMQgFQgStV hwqA== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=JX/8GTplWaX87X7dc46w0AUNuF+gLdIS0hovfiOe7V4=; b=V2QUZXBg7xP+9mEbwdSXG0/qfEjIEGCodskU7DQW8MHyvufM7J1xXLONUaPIYwfdlT 8S1eHqOEwXil0FU4y22w0DAZGYSw5zwYZAfooYY4SbxyJLTaINjRiceNdbwbYI2GEpVl eZj0SqhoheSONh96BLwVVu9et6S+fG9YgqcurR7s6AKJjQJ91/FKmgR7iCgzgykrzn0V lS9gbv9FziAeuVGKR7e+km1jPWnHGRPhVG3lj8ZTzAsql786RLk6Ek/phLb5iIxqqfa/ arVT4TIWJSeYAs1iaZs+pK0N0xiHrJswBWsohIBuwcocIr+zu9D4NRANQZuYuZLhRIo6 6xDg== X-Gm-Message-State: AOAM533b03LDxxxnewFoEWCUnx9F++bYPSxKsHIRdFQ89KTfyV/mwp7F /UHkpH5KrcrJIeENeNiBltu3j0awgOu5Eg== X-Received: by 2002:a1c:f415:: with SMTP id z21mr5226267wma.114.1611768790015; Wed, 27 Jan 2021 09:33:10 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id m8sm3768636wrv.37.2021.01.27.09.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 09:33:09 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: netdev@vger.kernel.org Cc: Emil Renner Berthing , Mitchell Blank Jr , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] net: atm: pppoatm: use new API for wakeup tasklet Date: Wed, 27 Jan 2021 18:32:56 +0100 Message-Id: <20210127173256.13954-2-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210127173256.13954-1-kernel@esmil.dk> References: <20210127173256.13954-1-kernel@esmil.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- net/atm/pppoatm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/atm/pppoatm.c b/net/atm/pppoatm.c index 5f06af098390..3e4f17d335fe 100644 --- a/net/atm/pppoatm.c +++ b/net/atm/pppoatm.c @@ -101,9 +101,11 @@ static inline struct pppoatm_vcc *chan_to_pvcc(const struct ppp_channel *chan) * doesn't want to be called in interrupt context, so we do it from * a tasklet */ -static void pppoatm_wakeup_sender(unsigned long arg) +static void pppoatm_wakeup_sender(struct tasklet_struct *t) { - ppp_output_wakeup((struct ppp_channel *) arg); + struct pppoatm_vcc *pvcc = from_tasklet(pvcc, t, wakeup_tasklet); + + ppp_output_wakeup(&pvcc->chan); } static void pppoatm_release_cb(struct atm_vcc *atmvcc) @@ -411,8 +413,7 @@ static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg) pvcc->chan.ops = &pppoatm_ops; pvcc->chan.mtu = atmvcc->qos.txtp.max_sdu - PPP_HDRLEN - (be.encaps == e_vc ? 0 : LLC_LEN); - tasklet_init(&pvcc->wakeup_tasklet, pppoatm_wakeup_sender, - (unsigned long)&pvcc->chan); + tasklet_setup(&pvcc->wakeup_tasklet, pppoatm_wakeup_sender); err = ppp_register_channel(&pvcc->chan); if (err != 0) { kfree(pvcc); -- 2.30.0