Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii add __diagused



details:   https://anonhg.NetBSD.org/src/rev/1db516d2a0f8
branches:  trunk
changeset: 332197:1db516d2a0f8
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed Sep 10 22:46:34 2014 +0000

description:
add __diagused

diffstat:

 sys/dev/mii/micphy.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bbcf081a86e3 -r 1db516d2a0f8 sys/dev/mii/micphy.c
--- a/sys/dev/mii/micphy.c      Wed Sep 10 22:43:36 2014 +0000
+++ b/sys/dev/mii/micphy.c      Wed Sep 10 22:46:34 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: micphy.c,v 1.1 2014/02/26 04:13:44 ozaki-r Exp $       */
+/*     $NetBSD: micphy.c,v 1.2 2014/09/10 22:46:34 ryo Exp $   */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: micphy.c,v 1.1 2014/02/26 04:13:44 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: micphy.c,v 1.2 2014/09/10 22:46:34 ryo Exp $");
 
 #include "opt_mii.h"
 
@@ -219,7 +219,7 @@
 
 static void micphy_writexreg(struct mii_softc *sc, uint32_t reg, uint32_t wval)
 {
-       int rval;
+       int rval __diagused;
 
        PHY_WRITE(sc, XREG_CONTROL, XREG_CTL_SEL_WRITE | reg);
        PHY_WRITE(sc, XREG_WRITE, wval);



Home | Main Index | Thread Index | Old Index