From owner-svn-src-projects@FreeBSD.ORG Thu Jul 29 02:16:16 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98A8F1065686; Thu, 29 Jul 2010 02:16:16 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 884E18FC17; Thu, 29 Jul 2010 02:16:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6T2GGhE000457; Thu, 29 Jul 2010 02:16:16 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6T2GGjS000455; Thu, 29 Jul 2010 02:16:16 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201007290216.o6T2GGjS000455@svn.freebsd.org> From: Jeff Roberson Date: Thu, 29 Jul 2010 02:16:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210589 - projects/ofed/head/sys/ofed/include/linux X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 02:16:16 -0000 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)