Module Name: src Committed By: rin Date: Wed Jun 19 15:24:37 UTC 2024
Modified Files: src/sys/arch/sun2/sun2: enable.h Log Message: sun2/enable.h: Fix -Wold-style-definition for WARNS=5 build as modules Finally fix sun2 build for PR kern/58346 To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sun2/sun2/enable.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sun2/sun2/enable.h diff -u src/sys/arch/sun2/sun2/enable.h:1.4 src/sys/arch/sun2/sun2/enable.h:1.5 --- src/sys/arch/sun2/sun2/enable.h:1.4 Mon Apr 28 20:23:37 2008 +++ src/sys/arch/sun2/sun2/enable.h Wed Jun 19 15:24:37 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: enable.h,v 1.4 2008/04/28 20:23:37 martin Exp $ */ +/* $NetBSD: enable.h,v 1.5 2024/06/19 15:24:37 rin Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -51,7 +51,7 @@ */ #ifdef _KERNEL #define ENABLE_REG_SOFT_UNDEF (0) -volatile extern u_short enable_reg_soft; +extern volatile u_short enable_reg_soft; u_short enable_reg_and(u_short); u_short enable_reg_or(u_short); #endif /* _KERNEL */