Received: by 10.192.165.148 with SMTP id m20csp1576628imm; Thu, 3 May 2018 01:38:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZquTTWHqrAi/tOF5C3hN50zyBMUdNzBDFINautk86FjzR1aa28tvp5zNeCBYpCU9Wspxozh X-Received: by 2002:a17:902:7109:: with SMTP id a9-v6mr23368579pll.271.1525336683119; Thu, 03 May 2018 01:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525336683; cv=none; d=google.com; s=arc-20160816; b=Rbt+kveq0b3KNFbhWnV5+7d0+oPdY2DSj9/sQzm1sGHVl/Yys43VaCrwEaE0QfPpb4 ikPq/lynwrOv40xDrZh0CAnvJatydQcwooG5RVA7+Ytb91xi+eU3nwsterRiNVX3eGPp ZQ+tjbt0f1mu2rpJiIcFRvtWSBZgE87aVFovt0Lv7w66qOcEZQASUNgM+RDzFdGnT3UV SscLiV5+88KIEgxZb+L6jKDp+lXyM0z6e/SyL16r9CCNDucnPGIWbiW1rp6+xKpTo3YZ BGjw3IPpc+A9KtFnTJz+bC8Q0htTrVwDsYfLE2eSfkJqrO2kr8l7Giu8q+MOWbzvy+rU /NgQ== 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 :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=bXYz3JEY43WBhrWNFHJK2NK0Ii0qhOBPOF8UxJ3Bj1s=; b=c/08Iu4oEHy0F/XHuJoybVVH/Rm7+i7WIZAnIeXMqCp3dE3oD1/+uRTn9WYfgpsf5q bknpwqN3ZZbw9TsUPcmyb00wGMU1FpsQR8jn/9h2u0DMHMLPLWQtIyGg7h163ID7VfH2 Qihsl2ePyO2rE9Cs2awYkAEfrGuEAKy6gO18UUNXruzXM7oOdYhRGMc1nW5H/GUs8sfd vu0KgQ4neBa/PPvab2GyLYNk3MsIvN2+MIMemmjb5uaRvGWwV7R4J4wJ1/24fwLbIBBg wqAEnhuW9qzEpWB8DnR6rcgOT/xX6B0VpQ/crJRi4RhUk20q/X6STHFYJMbAZ715TJL5 3eGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si11002741pgt.175.2018.05.03.01.37.48; Thu, 03 May 2018 01:38:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbeECIh0 (ORCPT + 99 others); Thu, 3 May 2018 04:37:26 -0400 Received: from mga09.intel.com ([134.134.136.24]:61294 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbeECIhX (ORCPT ); Thu, 3 May 2018 04:37:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 01:37:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,357,1520924400"; d="scan'208";a="51163086" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga004.fm.intel.com with ESMTP; 03 May 2018 01:37:20 -0700 Message-ID: <1525336639.21176.634.camel@linux.intel.com> Subject: Re: [PATCH v2] NFC: fdp: Remove __func__ from dev_dbg() From: Andy Shevchenko To: Amit Pundir , lkml , linux-wireless@vger.kernel.org Cc: Samuel Ortiz , Christophe Ricard , Greg KH , John Stultz Date: Thu, 03 May 2018 11:37:19 +0300 In-Reply-To: <1525326979-16897-1-git-send-email-amit.pundir@linaro.org> References: <1525326979-16897-1-git-send-email-amit.pundir@linaro.org> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.5-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-05-03 at 11:26 +0530, Amit Pundir wrote: > Remove redundant __func__ parameter from dev_dgb() calls. > > v2: > Deleted empty dev_dbg() trace calls, which are redundant if > function tracer is enabled. Actually this would be indeed part of commit message. FWIW, Reviewed-by: Andy Shevchenko > > Signed-off-by: Amit Pundir > --- > drivers/nfc/fdp/fdp.c | 18 +++--------------- > drivers/nfc/fdp/i2c.c | 17 ++++------------- > 2 files changed, 7 insertions(+), 28 deletions(-) > > diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c > index d5784a4..f64a6fd 100644 > --- a/drivers/nfc/fdp/fdp.c > +++ b/drivers/nfc/fdp/fdp.c > @@ -249,8 +249,6 @@ static int fdp_nci_open(struct nci_dev *ndev) > struct fdp_nci_info *info = nci_get_drvdata(ndev); > struct device *dev = &info->phy->i2c_dev->dev; > > - dev_dbg(dev, "%s\n", __func__); > - > r = info->phy_ops->enable(info->phy); > > return r; > @@ -261,7 +259,6 @@ static int fdp_nci_close(struct nci_dev *ndev) > struct fdp_nci_info *info = nci_get_drvdata(ndev); > struct device *dev = &info->phy->i2c_dev->dev; > > - dev_dbg(dev, "%s\n", __func__); > return 0; > } > > @@ -270,8 +267,6 @@ static int fdp_nci_send(struct nci_dev *ndev, > struct sk_buff *skb) > struct fdp_nci_info *info = nci_get_drvdata(ndev); > struct device *dev = &info->phy->i2c_dev->dev; > > - dev_dbg(dev, "%s\n", __func__); > - > if (atomic_dec_and_test(&info->data_pkt_counter)) > info->data_pkt_counter_cb(ndev); > > @@ -283,7 +278,6 @@ int fdp_nci_recv_frame(struct nci_dev *ndev, > struct sk_buff *skb) > struct fdp_nci_info *info = nci_get_drvdata(ndev); > struct device *dev = &info->phy->i2c_dev->dev; > > - dev_dbg(dev, "%s\n", __func__); > return nci_recv_frame(ndev, skb); > } > EXPORT_SYMBOL(fdp_nci_recv_frame); > @@ -498,8 +492,6 @@ static int fdp_nci_setup(struct nci_dev *ndev) > int r; > u8 patched = 0; > > - dev_dbg(dev, "%s\n", __func__); > - > r = nci_core_init(ndev); > if (r) > goto error; > @@ -609,7 +601,6 @@ static int fdp_nci_core_reset_ntf_packet(struct > nci_dev *ndev, > struct fdp_nci_info *info = nci_get_drvdata(ndev); > struct device *dev = &info->phy->i2c_dev->dev; > > - dev_dbg(dev, "%s\n", __func__); > info->setup_reset_ntf = 1; > wake_up(&info->setup_wq); > > @@ -622,7 +613,6 @@ static int fdp_nci_prop_patch_ntf_packet(struct > nci_dev *ndev, > struct fdp_nci_info *info = nci_get_drvdata(ndev); > struct device *dev = &info->phy->i2c_dev->dev; > > - dev_dbg(dev, "%s\n", __func__); > info->setup_patch_ntf = 1; > info->setup_patch_status = skb->data[0]; > wake_up(&info->setup_wq); > @@ -637,7 +627,7 @@ static int fdp_nci_prop_patch_rsp_packet(struct > nci_dev *ndev, > struct device *dev = &info->phy->i2c_dev->dev; > u8 status = skb->data[0]; > > - dev_dbg(dev, "%s: status 0x%x\n", __func__, status); > + dev_dbg(dev, "status 0x%x\n", status); > nci_req_complete(ndev, status); > > return 0; > @@ -650,7 +640,7 @@ static int > fdp_nci_prop_set_production_data_rsp_packet(struct nci_dev *ndev, > struct device *dev = &info->phy->i2c_dev->dev; > u8 status = skb->data[0]; > > - dev_dbg(dev, "%s: status 0x%x\n", __func__, status); > + dev_dbg(dev, "status 0x%x\n", status); > nci_req_complete(ndev, status); > > return 0; > @@ -695,7 +685,7 @@ static int > fdp_nci_core_get_config_rsp_packet(struct nci_dev *ndev, > dev_dbg(dev, "OTP version %d\n", info->otp_version); > dev_dbg(dev, "RAM version %d\n", info->ram_version); > dev_dbg(dev, "key index %d\n", info->key_index); > - dev_dbg(dev, "%s: status 0x%x\n", __func__, rsp->status); > + dev_dbg(dev, "status 0x%x\n", rsp->status); > > nci_req_complete(ndev, rsp->status); > > @@ -798,8 +788,6 @@ void fdp_nci_remove(struct nci_dev *ndev) > struct fdp_nci_info *info = nci_get_drvdata(ndev); > struct device *dev = &info->phy->i2c_dev->dev; > > - dev_dbg(dev, "%s\n", __func__); > - > nci_unregister_device(ndev); > nci_free_device(ndev); > } > diff --git a/drivers/nfc/fdp/i2c.c b/drivers/nfc/fdp/i2c.c > index c4da50e..f355ab2 100644 > --- a/drivers/nfc/fdp/i2c.c > +++ b/drivers/nfc/fdp/i2c.c > @@ -57,7 +57,6 @@ static int fdp_nci_i2c_enable(void *phy_id) > { > struct fdp_i2c_phy *phy = phy_id; > > - dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); > fdp_nci_i2c_reset(phy); > > return 0; > @@ -67,7 +66,6 @@ static void fdp_nci_i2c_disable(void *phy_id) > { > struct fdp_i2c_phy *phy = phy_id; > > - dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); > fdp_nci_i2c_reset(phy); > } > > @@ -113,8 +111,8 @@ static int fdp_nci_i2c_write(void *phy_id, struct > sk_buff *skb) > } > > if (r < 0 || r != skb->len) > - dev_dbg(&client->dev, "%s: error err=%d len=%d\n", > - __func__, r, skb->len); > + dev_dbg(&client->dev, "error err=%d len=%d\n", > + r, skb->len); > > if (r >= 0) { > if (r != skb->len) { > @@ -152,8 +150,7 @@ static int fdp_nci_i2c_read(struct fdp_i2c_phy > *phy, struct sk_buff **skb) > > r = i2c_master_recv(client, tmp, len); > if (r != len) { > - dev_dbg(&client->dev, "%s: i2c recv err: > %d\n", > - __func__, r); > + dev_dbg(&client->dev, "i2c recv err: %d\n", > r); > goto flush; > } > > @@ -167,8 +164,7 @@ static int fdp_nci_i2c_read(struct fdp_i2c_phy > *phy, struct sk_buff **skb) > * and force resynchronization > */ > if (lrc) { > - dev_dbg(&client->dev, "%s: corrupted > packet\n", > - __func__); > + dev_dbg(&client->dev, "corrupted packet\n"); > phy->next_read_size = 5; > goto flush; > } > @@ -215,7 +211,6 @@ static irqreturn_t fdp_nci_i2c_irq_thread_fn(int > irq, void *phy_id) > } > > client = phy->i2c_dev; > - dev_dbg(&client->dev, "%s\n", __func__); > > r = fdp_nci_i2c_read(phy, &skb); > > @@ -296,8 +291,6 @@ static int fdp_nci_i2c_probe(struct i2c_client > *client) > u32 clock_freq; > int r = 0; > > - dev_dbg(dev, "%s\n", __func__); > - > if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) > { > nfc_err(dev, "No I2C_FUNC_I2C support\n"); > return -ENODEV; > @@ -359,8 +352,6 @@ static int fdp_nci_i2c_remove(struct i2c_client > *client) > { > struct fdp_i2c_phy *phy = i2c_get_clientdata(client); > > - dev_dbg(&client->dev, "%s\n", __func__); > - > fdp_nci_remove(phy->ndev); > fdp_nci_i2c_disable(phy); > -- Andy Shevchenko Intel Finland Oy