Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2014 15:24:06 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275046 - head/sys/sys
Message-ID:  <201411251524.sAPFO6ZB019110@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Nov 25 15:24:05 2014
New Revision: 275046
URL: https://svnweb.freebsd.org/changeset/base/275046

Log:
  whitespace and cosmetic changes in callout_reset family of macros
  
  - add parentheses around macro parameters for consistent style
  - remove redundant parentheses around an expression
  - use tab before a line continuation symbol
  
  Differential Revision:	https://reviews.freebsd.org/D1161 (partial)
  Reviewed by:	markj
  MFC after:	1 week

Modified:
  head/sys/sys/callout.h

Modified: head/sys/sys/callout.h
==============================================================================
--- head/sys/sys/callout.h	Tue Nov 25 15:21:21 2014	(r275045)
+++ head/sys/sys/callout.h	Tue Nov 25 15:24:05 2014	(r275046)
@@ -81,11 +81,12 @@ void	_callout_init_lock(struct callout *
 int	callout_reset_sbt_on(struct callout *, sbintime_t, sbintime_t,
 	    void (*)(void *), void *, int, int);
 #define	callout_reset_sbt(c, sbt, pr, fn, arg, flags)			\
-    callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), (c)->c_cpu, flags)
+    callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), (c)->c_cpu, (flags))
 #define	callout_reset_sbt_curcpu(c, sbt, pr, fn, arg, flags)		\
-    callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), PCPU_GET(cpuid), flags)
+    callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), PCPU_GET(cpuid),\
+        (flags))
 #define	callout_reset_on(c, to_ticks, fn, arg, cpu)			\
-    callout_reset_sbt_on((c), (tick_sbt * (to_ticks)), 0, (fn), (arg), \
+    callout_reset_sbt_on((c), tick_sbt * (to_ticks), 0, (fn), (arg),	\
         (cpu), C_HARDCLOCK)
 #define	callout_reset(c, on_tick, fn, arg)				\
     callout_reset_on((c), (on_tick), (fn), (arg), (c)->c_cpu)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411251524.sAPFO6ZB019110>