Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Use sys/cdefs.h __CONCAT3



details:   https://anonhg.NetBSD.org/src/rev/569e1313d791
branches:  trunk
changeset: 378689:569e1313d791
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Apr 23 06:13:05 2021 +0000

description:
Use sys/cdefs.h __CONCAT3

diffstat:

 sys/arch/arc/include/bus_funcs.h |  11 +----------
 sys/arch/mipsco/include/bus.h    |  11 +----------
 2 files changed, 2 insertions(+), 20 deletions(-)

diffs (50 lines):

diff -r a19ecb5ed8a6 -r 569e1313d791 sys/arch/arc/include/bus_funcs.h
--- a/sys/arch/arc/include/bus_funcs.h  Fri Apr 23 06:02:48 2021 +0000
+++ b/sys/arch/arc/include/bus_funcs.h  Fri Apr 23 06:13:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_funcs.h,v 1.1 2011/07/01 17:09:58 dyoung Exp $     */
+/*     $NetBSD: bus_funcs.h,v 1.2 2021/04/23 06:13:05 skrll Exp $      */
 /*     NetBSD: bus.h,v 1.27 2000/03/15 16:44:50 drochner Exp   */
 /*     $OpenBSD: bus.h,v 1.15 1999/08/11 23:15:21 niklas Exp $ */
 
@@ -67,15 +67,6 @@
 #define _ARC_BUS_FUNCS_H_
 #ifdef _KERNEL
 
-/*
- * Utility macro; do not use outside this file.
- */
-#ifdef __STDC__
-#define __CONCAT3(a,b,c)       a##b##c
-#else
-#define __CONCAT3(a,b,c)       a/**/b/**/c
-#endif
-
 /* machine dependent utility function for bus_space users */
 void   arc_bus_space_malloc_set_safe(void);
 void   arc_bus_space_init(bus_space_tag_t, const char *,
diff -r a19ecb5ed8a6 -r 569e1313d791 sys/arch/mipsco/include/bus.h
--- a/sys/arch/mipsco/include/bus.h     Fri Apr 23 06:02:48 2021 +0000
+++ b/sys/arch/mipsco/include/bus.h     Fri Apr 23 06:13:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.22 2019/09/23 16:17:56 skrll Exp $   */
+/*     $NetBSD: bus.h,v 1.23 2021/04/23 06:15:16 skrll Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -95,15 +95,6 @@
 #endif /* BUS_SPACE_DEBUG */
 
 /*
- * Utility macro; do not use outside this file.
- */
-#ifdef __STDC__
-#define __CONCAT3(a,b,c)       a##b##c
-#else
-#define __CONCAT3(a,b,c)       a/**/b/**/c
-#endif
-
-/*
  * Bus address and size types
  */
 typedef u_long bus_addr_t;



Home | Main Index | Thread Index | Old Index