Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2133203pxa; Mon, 17 Aug 2020 01:28:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqR1JxfhVdUlHiwExvoSjegpZ1EN+UnMlj6hvR4xoj8Zo3jfuCWLMrCTlGBnhkJ0DsRh6I X-Received: by 2002:a05:6402:1bc1:: with SMTP id ch1mr14032715edb.142.1597652899777; Mon, 17 Aug 2020 01:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652899; cv=none; d=google.com; s=arc-20160816; b=R43NBsUyUmzjfct19/C2gYlO43H46jd00z1KyflBfM2QGih+JtRyP8HhV7x32g1ooZ ZjKNQGj8LMountAVY92N1fxp9NfegHCffRf8houagh3Gt+8vJz6sb2tvw4Zb6sH/vITi Js3zyryRgHOz+a6ewuj7AJ+wGqZSXa+PbndUc/tR4QcTxLaD1n3uYfdoeHhbao06bpwv f95YqOADezo85ebtKXbjCswbPPy+gB06uVghTiQVqlsCljaMRcBj6pkFFpBgeT0cDUaq O7GPnKd0C/1S3q0m3k8d1ISBJkwMpeoxBxFCSDPBDAE/qXu2Eep1GEngn+Gy5+ieA5DF i1Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=39RvJQz8ipypvoPM9UBQxK34sqwXBw2fpRHeH1750N4=; b=MnC8Q9Kzm/KEd4MkThZ2fURp54E/VxnIuPwzuYIzAzADXq55k36DZjZImvr85H+dhF hB6jGRWXQ3zrft/R039cWG8T2/lV9H9cu6BNK0nVPfWsACmCzTmBVdHE7PLvxkKhm4G4 HZPPPObrrVTBnSPk9JYxUuRHb9Zl6rPZvD8gAVDPZVkxaF5uU3SZcSa6G+AC4iw/k5BD ZvmwCOtrzAlWZ/PATvJjStXF9bFevTUjn5gDl/qvehRTSCo7pj1Ucdabu2+jKv9z2XSy Us0KO+mDXIG8HuKusx+LypEUAv4vNNEcTH1Yb/wLuQmTY/gmUNLnFuVrQmfYa/BpOmHU 2D/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=InxMEUwY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qu9si10636714ejb.688.2020.08.17.01.27.57; Mon, 17 Aug 2020 01:28:19 -0700 (PDT) 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=InxMEUwY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728334AbgHQIZu (ORCPT + 99 others); Mon, 17 Aug 2020 04:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728285AbgHQIZm (ORCPT ); Mon, 17 Aug 2020 04:25:42 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD99C061388; Mon, 17 Aug 2020 01:25:42 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id kr4so7457565pjb.2; Mon, 17 Aug 2020 01:25:42 -0700 (PDT) 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; bh=39RvJQz8ipypvoPM9UBQxK34sqwXBw2fpRHeH1750N4=; b=InxMEUwYzhx+GnG4B1eM3y4duNRfyx1CZB/Ws7HUtFocxH7jTVin6brUpn0347NKxY G2vDtc6Jn/U+dIZO/rs8meMl8+D5kFk0pTu+Kq8iKPzEQX6z2YVKdlxtJGEdNAEfX4gs HzG5sxEy9yHpH9i/XYP/zjlfTFVttJpEeuCBLjoMmzrtbLpjW8/3H8wGNJLZJLWaX2ZL GRS+u1RdIHn/f/qA2wjdhyEjO3m2RbZX3lxe9fGOEVpBO6OpU5T6MjohvX+6vnKmyZwA CV1bKneiCat0Wl7RPi6Q7NLdBUFgwZJupvGI6vmFPrpDARH658prdsAMmX5pzSXVradm FHVw== 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; bh=39RvJQz8ipypvoPM9UBQxK34sqwXBw2fpRHeH1750N4=; b=E5GF4UyazdeOOrb7ieQs1EVpUwZWmr2wtaZxOgt+kb3DThwQ/AaihHHppIxx2JDm6E PX0ZRgX/kA2b/GXwK1t1DF+wj53e07QQpTe0MAu5dh9noPWjOcFM5NIXCwWBYfCDjdzy DN3Z9c4OXXMkhh7i0hsUMzWCpfm4kWRCBCsMaTgEVNKLB+dWp+wLfVMr9fqC/ob7N46f 1DqnkE/Wioz+YXh5fLwSTxfnPzPbTUDSgV74S9bnsd//bBL6FVRcfBX8UrK0L0UkDW1B /AjUnhnw0jmn0e2i5LJH/ovNKX1T6g5vQ7bjzRCJ351fpUIT9NznXeBfsD4oqsF0G3L7 cicQ== X-Gm-Message-State: AOAM532XJorQoueLY+cFaBfIQVvg3NWtLrdK1VpGbOY5S+t64kbLOVY5 BRnTbvzMtJTxKBV5jQVm4N4= X-Received: by 2002:a17:90b:100e:: with SMTP id gm14mr11408110pjb.39.1597652741860; Mon, 17 Aug 2020 01:25:41 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id r186sm19928482pfr.162.2020.08.17.01.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:25:41 -0700 (PDT) From: Allen Pais To: jes@trained-monkey.org, davem@davemloft.net, kuba@kernel.org, kda@linux-powerpc.org, dougmill@linux.ibm.com, cooldavid@cooldavid.org, mlindner@marvell.com, borisp@mellanox.com Cc: keescook@chromium.org, linux-acenic@sunsite.dk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-rdma@vger.kernel.org, oss-drivers@netronome.com, Allen Pais , Romain Perier Subject: [PATCH 08/20] ethernet: hinic: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:54:22 +0530 Message-Id: <20200817082434.21176-10-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817082434.21176-1-allen.lkml@gmail.com> References: <20200817082434.21176-1-allen.lkml@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier Signed-off-by: Allen Pais --- drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c b/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c index ca8cb68a8d20..f304a5b16d75 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c @@ -370,9 +370,9 @@ static void eq_irq_work(struct work_struct *work) * ceq_tasklet - the tasklet of the EQ that received the event * @ceq_data: the eq **/ -static void ceq_tasklet(unsigned long ceq_data) +static void ceq_tasklet(struct tasklet_struct *t) { - struct hinic_eq *ceq = (struct hinic_eq *)ceq_data; + struct hinic_eq *ceq = from_tasklet(ceq, t, ceq_tasklet); eq_irq_handler(ceq); } @@ -782,8 +782,7 @@ static int init_eq(struct hinic_eq *eq, struct hinic_hwif *hwif, INIT_WORK(&aeq_work->work, eq_irq_work); } else if (type == HINIC_CEQ) { - tasklet_init(&eq->ceq_tasklet, ceq_tasklet, - (unsigned long)eq); + tasklet_setup(&eq->ceq_tasklet, ceq_tasklet); } /* set the attributes of the msix entry */ -- 2.17.1