From: Kalle Valo Date: Thu, 2 May 2013 10:10:23 +0300 Subject: [ath9k-devel] [PATCH 2/2] ath10k: Add host statistics In-Reply-To: <1367316767-29559-2-git-send-email-sujith@msujith.org> (Sujith Manoharan's message of "Tue, 30 Apr 2013 15:42:47 +0530") References: <1367316767-29559-1-git-send-email-sujith@msujith.org> <1367316767-29559-2-git-send-email-sujith@msujith.org> Message-ID: <87d2t9hn6o.fsf@kamboji.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Sujith Manoharan writes: > From: Sujith Manoharan > > Signed-off-by: Sujith Manoharan [...] > +static ssize_t ath10k_read_host_stats(struct file *file, char __user *user_buf, > + size_t count, loff_t *ppos) > +{ [...] > + if (len > buf_len) > + len = buf_len; min()/min_t()? > +#ifdef CONFIG_ATH10K_DEBUGFS > +#define HOST_STAT_INC(c) ar->debug.host_stats.c++ > +#else > +#define HOST_STAT_INC(c) do { } while (0) > +#endif Please add ATH10K_ prefix and argument for ar. Also we already have the same ifdef for few debug functions which you can reuse, no need to add new ifdef. -- Kalle Valo