add __diagused
This commit is contained in:
parent
a5887d4e99
commit
4c91708145
@ -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 @@ micphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user