Print this page
7127 remove -Wno-missing-braces from Makefile.uts
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/io/neti_mod.c
+++ new/usr/src/uts/common/io/neti_mod.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 26 #include <sys/param.h>
27 27 #include <sys/modctl.h>
28 28 #include <sys/neti.h>
29 29
30 30
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
31 31 /*
32 32 * Module linkage information for the kernel.
33 33 */
34 34 static struct modldrv modlmisc = {
35 35 &mod_miscops, /* drv_modops */
36 36 "netinfo module", /* drv_linkinfo */
37 37 };
38 38
39 39 static struct modlinkage modlinkage = {
40 40 MODREV_1, /* ml_rev */
41 - &modlmisc, /* ml_linkage */
42 - NULL
41 + { &modlmisc, NULL } /* ml_linkage */
43 42 };
44 43
45 44 /*
46 45 * Module entry points.
47 46 */
48 47 int
49 48 _init(void)
50 49 {
51 50 int error;
52 51
53 52 neti_init();
54 53 error = mod_install(&modlinkage);
55 54 if (error != 0)
56 55 neti_fini();
57 56
58 57 return (error);
59 58 }
60 59
61 60
62 61 int
63 62 _fini(void)
64 63 {
65 64 int error;
66 65
67 66 error = mod_remove(&modlinkage);
68 67 if (error == 0)
69 68 neti_fini();
70 69
71 70 return (error);
72 71 }
73 72
74 73
75 74 int
76 75 _info(struct modinfo *modinfop)
77 76 {
78 77
79 78 return (mod_info(&modlinkage, modinfop));
80 79 }
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX