Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2010 02:16:16 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r210589 - projects/ofed/head/sys/ofed/include/linux
Message-ID:  <201007290216.o6T2GGjS000455@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Thu Jul 29 02:16:16 2010
New Revision: 210589
URL: http://svn.freebsd.org/changeset/base/210589

Log:
   - Implement a little more of moduleparam just to avoid compiler warnings.
  
  Sponsored by:	Isilon Systems, iX Systems, and Panasas.

Modified:
  projects/ofed/head/sys/ofed/include/linux/moduleparam.h

Modified: projects/ofed/head/sys/ofed/include/linux/moduleparam.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/moduleparam.h	Thu Jul 29 02:15:02 2010	(r210588)
+++ projects/ofed/head/sys/ofed/include/linux/moduleparam.h	Thu Jul 29 02:16:16 2010	(r210589)
@@ -70,9 +70,16 @@ struct kparam_array
 	void 		*elem;
 };
 
+static inline void
+param_sysinit(struct kernel_param *param)
+{
+}
+
 #define	module_param_call(name, set, get, arg, perm)			\
-	struct kernel_param __param_##name =				\
-	    { #name, perm, 0, set, get, { arg } }
+	static struct kernel_param __param_##name =			\
+	    { #name, perm, 0, set, get, { arg } };			\
+	SYSINIT(name##_param_sysinit, SI_SUB_DRIVERS, SI_ORDER_FIRST,	\
+	    param_sysinit, &__param_##name);
 
 #define	module_param_named(name, var, type, mode)			\
 	module_param_call(name, param_set_##type, param_get_##type, &var, mode)



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