Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9277889ybi; Wed, 24 Jul 2019 01:14:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqynM+AtuFsd5fPO1ZRJb67zYxEgrXhFXGLjC0TymNniMS4e908/vT1bQPtuDjWULZVISeDY X-Received: by 2002:a62:3347:: with SMTP id z68mr10323552pfz.174.1563956078477; Wed, 24 Jul 2019 01:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563956078; cv=none; d=google.com; s=arc-20160816; b=m0RF8lIUYy5kKj9jwtYxoRgLP0UXuablsXSLo1lZdeEv8MyLoIB3oczwVwlJU8sx3G s7rRPPARiKveVcOfrrnMXB5tn5Vo+PEteL9iZ35sQQ9R64L4ysfc/3iLOsj76R579ti9 kzHV4vok9c6Nbm8YWXG4husqlifwSq0PKfIp9vCxc11ZQjcMwLeZQ7O3WBqaIqQTc8WA p3AE4MndAxCmiTcyM7RjAmHvBF8qvsgwYDFWTEY3mbgw35p0cM+bNeSKppB5DexeL7Gq JAafjf8KTJKi91ceG5z2QjGEKAuS2rYpYWXePQboVIl1xx/pr+0GkWr31f2T0KAdL/Vh 8Rgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:cc:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+rNRJY68IIsD9nh+g9TvsIleBslPfLPXnzcgzuZEN48=; b=Y8Nwp0cyCw5wYvRLXCiCHnOhoY7UHO0u8Ukjb6/JUTBPEneUtQ5XQhit0hfGXno7DS dxHHcQA/TJAj+nbLPK7bva6Cn3eBHvj6EnLX3wpHG2h2Ik4MYiKPnI4GYOgceINCPUMe 9ZcQau/jIN2Unca//YhyEPf/umW1GpGvZdf4nglvHrzeDdhrUtK/9LxTjcBFWEKYL3Qd 4YoxhGvYPb8NjNz54tbx3ijPFIhszhwzZ25nDX2ADcx1gakath2azMUfUxXYjt49YrjE HtZt75HnS6RMARcUvhpG01tyJ7cI9tRv6icgjqGVoEo9yiUw0+GKSvU4sVz9AdVy2a6i cXaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I3P1lO6M; 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 z2si12949217pgv.417.2019.07.24.01.14.23; Wed, 24 Jul 2019 01:14:38 -0700 (PDT) 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=I3P1lO6M; 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 S1726267AbfGXINS (ORCPT + 99 others); Wed, 24 Jul 2019 04:13:18 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:38085 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbfGXINP (ORCPT ); Wed, 24 Jul 2019 04:13:15 -0400 Received: by mail-ed1-f66.google.com with SMTP id r12so11512750edo.5 for ; Wed, 24 Jul 2019 01:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:cc; bh=+rNRJY68IIsD9nh+g9TvsIleBslPfLPXnzcgzuZEN48=; b=I3P1lO6M7mukJ8KziuxO4lwxZaCAEl58oUX+PO1XCwcZyQwz3JtUDGwgufNide1IPU Q7YNLXYcjqeHdQKGY8/cvpw/sv2h35skgV1k8YlZlW62GNfBPPbi2nnAOeqYJbShHm3v 2F0rU4+6x5NgLoN7doN5wb9j0sy1IHdQNCfp9aGSubZjGl9sAGRLy9lZnO6NzIlopx6V RUIjlm5lSh9geksn3AT3RAcweH/lhkcgrj0rPndv/4XXANjOlLSnFo2VDcab+7jus4fg +zCdTioMfVUew0SNjSjaVkFZh4eQItDnlcrwolp7ZBtE4vMSr3/VpMqgYcWfJkk1GGDg bsmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:cc; bh=+rNRJY68IIsD9nh+g9TvsIleBslPfLPXnzcgzuZEN48=; b=tYEJByjbHoaCWu14VLGYPu7DZgt/OI4ZfOcPGYMnIwdZMXH0st4946WHig19H3v31S YEZS89GRnvUPNpeADw12uLzu3Qgj6NvlIqWIN9BJj3zWQBrTHdWs0maJ20CWxiViTD3W T+NP2gIit8g42Hy8uv/iwSXwc8NIlAPQEdL/Yg1ln3pfnNf/cwC4FMmVc4q9RJcGCtTC hU9fMBB6hz1cKtG1nyyUmK38WB6U4ATUNNNewf74PKqXzbsijyMnEfJXnYaCamagzRQ7 ViTo1g+0UfeiCDVmrOQHGeWRerwUu+gBrkHpQd+KIYpi1sGJEeqM64MiJRn7zltUzkoB uSAw== X-Gm-Message-State: APjAAAUx9p/lI/Nh84BgwO0nSCXvsl/hE9uN4g+yPWVK+qjsrMTJzFu0 pPD2p3WH4GSz9z+hxhcF64PWAFhRZCkWI5tmeGc= X-Received: by 2002:a05:6402:896:: with SMTP id e22mt65279499edy.202.1563955993753; Wed, 24 Jul 2019 01:13:13 -0700 (PDT) MIME-Version: 1.0 References: <20190724060512.23899-1-hslester96@gmail.com> In-Reply-To: <20190724060512.23899-1-hslester96@gmail.com> From: Chuhong Yuan Date: Wed, 24 Jul 2019 16:13:03 +0800 Message-ID: Subject: Re: [PATCH net-next v2 0/8] Use dev_get_drvdata where possible Cc: Steffen Klassert , "David S . Miller" , Jay Cliburn , Chris Snook , Rasesh Mody , Michael Chan , Siva Reddy Kallam , Prashant Sreedharan , GR-Linux-NIC-Dev@marvell.com, Jeff Kirsher , Guo-Fu Tseng , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 24, 2019 at 2:05 PM Chuhong Yuan wrote: > > These patches use dev_get_drvdata instead of > using to_pci_dev + pci_get_drvdata to make > code simpler where possible. > > Changelog: > > v1 -> v2: > - Change pci_set_drvdata to dev_set_drvdata > to keep consistency. > Hi all, I checked the cases which mentioned the consistency of get/set_drvdata usages. The cases' commit IDs are 488d040e3a3452a0dceef5d3ec4f61942262f57f b77c98780e682fe780d899b91543769d4cf94585 After checking, I think that the consistency problem refers to inconsistency between probe and remove. But the changes of these patches are not related to probe and remove. So I think the previously sent and applied v1 patches which do not change pci_set_drvdata to dev_set_drvdata are okay. Therefore there may be no need to use these v2 patches. Regards, Chuhong > Chuhong Yuan (8): > net: 3com: 3c59x: Use dev_get_drvdata > net: atheros: Use dev_get_drvdata > net: broadcom: Use dev_get_drvdata > e1000e: Use dev_get_drvdata where possible > fm10k: Use dev_get_drvdata > i40e: Use dev_get_drvdata > igb: Use dev_get_drvdata where possible > net: jme: Use dev_get_drvdata > > drivers/net/ethernet/3com/3c59x.c | 8 +++----- > drivers/net/ethernet/atheros/alx/main.c | 8 +++----- > drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 10 ++++------ > drivers/net/ethernet/atheros/atlx/atl1.c | 8 +++----- > drivers/net/ethernet/broadcom/bnx2.c | 8 +++----- > drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 +++----- > drivers/net/ethernet/broadcom/tg3.c | 8 +++----- > drivers/net/ethernet/intel/e1000e/netdev.c | 9 ++++----- > drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 6 +++--- > drivers/net/ethernet/intel/i40e/i40e_main.c | 10 ++++------ > drivers/net/ethernet/intel/igb/igb_main.c | 5 ++--- > drivers/net/ethernet/jme.c | 8 +++----- > 12 files changed, 38 insertions(+), 58 deletions(-) > > -- > 2.20.1 >