Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix a bug that OSIOCSIFMEDIA can't treat. Add missin...



details:   https://anonhg.NetBSD.org/src/rev/e057ce12ead6
branches:  trunk
changeset: 450317:e057ce12ead6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Apr 10 08:22:18 2019 +0000

description:
Fix a bug that OSIOCSIFMEDIA can't treat. Add missing inclusion of
compat/sys/sockio.h.

diffstat:

 sys/net/if_media.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 1add0a09061d -r e057ce12ead6 sys/net/if_media.c
--- a/sys/net/if_media.c        Wed Apr 10 08:13:11 2019 +0000
+++ b/sys/net/if_media.c        Wed Apr 10 08:22:18 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_media.c,v 1.38 2019/02/28 05:40:58 msaitoh Exp $    */
+/*     $NetBSD: if_media.c,v 1.39 2019/04/10 08:22:18 msaitoh Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.38 2019/02/28 05:40:58 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.39 2019/04/10 08:22:18 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -89,6 +89,8 @@
 #include <net/if_media.h>
 #include <net/netisr.h>
 
+#include <compat/sys/sockio.h>
+
 static void    ifmedia_status(struct ifmedia *, struct ifnet *, struct ifmediareq *);
 static int     _ifmedia_ioctl(struct ifnet *, struct ifreq *, struct ifmedia *, u_long);
 
@@ -260,8 +262,8 @@
 #ifdef OSIOCSIFMEDIA
        case OSIOCSIFMEDIA:
                ifr->ifr_media = oifr->ifr_media;
-               /*FALLTHROUGH*/
 #endif
+               /* FALLTHROUGH */
        /*
         * Set the current media.
         */



Home | Main Index | Thread Index | Old Index