From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Nishad Kamdar <nishadkamdar@gmail.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
NeilBrown <neil@brown.name>, "Joe Perches" <joe@perches.com>,
"Christian Lütke-Stetzkamp" <christian@lkamp.de>,
"Dan Carpenter" <dan.carpenter@oracle.com>,
"John Crispin" <blogic@openwrt.org>
Subject: Re: [PATCH v6 3/3] staging: mt7621-mmc: Fix debug macro IRQ_MSG and its usages
Date: Mon, 10 Sep 2018 17:05:13 +0200 [thread overview]
Message-ID: <20180910150513.GA25530@kroah.com> (raw)
In-Reply-To: <8f8cff3f1042e3fd303350baa261876cf4e3d7e7.1535752537.git.nishadkamdar@gmail.com>
On Sat, Sep 01, 2018 at 03:51:10AM +0530, Nishad Kamdar wrote:
> Replace all usages of IRQ_MSG with with dev_<level> without __func__
> or __LINE__ or current->comm and current->pid. Remove the do {}
> while(0) loop for the single statement macro. Drop IRQ_MSG from dbg.h.
> Issue found by checkpatch.
>
> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com>
> ---
> Changes in v6:
> - No change
> Changes in v5:
> - No change
> ---
> drivers/staging/mt7621-mmc/dbg.h | 12 -----------
> drivers/staging/mt7621-mmc/sd.c | 36 ++++++++++++++++++++++++--------
> 2 files changed, 27 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/staging/mt7621-mmc/dbg.h b/drivers/staging/mt7621-mmc/dbg.h
> index 79914d98c573..4ab9f10dccc2 100644
> --- a/drivers/staging/mt7621-mmc/dbg.h
> +++ b/drivers/staging/mt7621-mmc/dbg.h
> @@ -102,18 +102,6 @@ do { \
> } while (0)
> #endif /* end of +++ */
>
> -#if 1
> -//defined CONFIG_MTK_MMC_CD_POLL
> -#define IRQ_MSG(fmt, args...)
So right now this define does nothing, yet:
> -#else
> -/* PID in ISR in not corrent */
> -#define IRQ_MSG(fmt, args...) \
> -do { \
> - printk(KERN_ERR TAG"%d -> "fmt" <- %s() : L<%d>\n", \
> - host->id, ##args, __FUNCTION__, __LINE__); \
> -} while (0);
> -#endif
> -
> void msdc_debug_proc_init(void);
>
> #if 0 /* --- chhung */
> diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c
> index 7474f9ed7b5b..f3ae19fe0f76 100644
> --- a/drivers/staging/mt7621-mmc/sd.c
> +++ b/drivers/staging/mt7621-mmc/sd.c
> @@ -279,7 +279,9 @@ static void msdc_tasklet_card(struct work_struct *work)
> mmc_detect_change(host->mmc, msecs_to_jiffies(20));
> }
>
> - IRQ_MSG("card found<%s>", inserted ? "inserted" : "removed");
> + dev_err(mmc_dev(host->mmc),
> + "%d -> card found<%s>\n",
> + host->id, inserted ? "inserted" : "removed");
You are now printing out lots of "errors" that really are not errors.
As these messages are not being printed at all right now, why not just
delete these as well?
Your first 2 patches do look good, I've queued them up now.
thanks,
greg k-h
next prev parent reply other threads:[~2018-09-10 15:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-31 22:12 [PATCH v6 0/3] staging: mt7621-mmc: Fix debug macros and their usages Nishad Kamdar
2018-08-31 22:17 ` [PATCH v6 1/3] staging: mt7621-mmc: Delete N_MSG() and all its users Nishad Kamdar
2018-08-31 22:19 ` [PATCH v6 2/3] staging: mt7621-mmc: Fix debug macro ERR_MSG and its usages Nishad Kamdar
2018-08-31 22:21 ` [PATCH v6 3/3] staging: mt7621-mmc: Fix debug macro IRQ_MSG " Nishad Kamdar
2018-09-10 15:05 ` Greg Kroah-Hartman [this message]
2018-09-15 2:29 ` Nishad Kamdar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180910150513.GA25530@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=blogic@openwrt.org \
--cc=christian@lkamp.de \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=neil@brown.name \
--cc=nishadkamdar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox