Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/vchiq/dist/interface/compat Don't redefine ...



details:   https://anonhg.NetBSD.org/src/rev/e7e9447af32e
branches:  trunk
changeset: 1028606:e7e9447af32e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:26:04 2021 +0000

description:
Don't redefine stuff that common now has

Preferring common to avoid licensing mish-mash


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h |  42 -----------------
 1 files changed, 0 insertions(+), 42 deletions(-)

diffs (59 lines):

diff -r 0c936034a64a -r e7e9447af32e sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h
--- a/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h   Sun Dec 19 11:25:57 2021 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h   Sun Dec 19 11:26:04 2021 +0000
@@ -173,47 +173,6 @@
 device_rlprintf(int pps, device_t dev, const char *fmt, ...)
        __printflike(3, 4);
 
-#define might_sleep()
-
-#define WARN(condition, msg)                           \
-({                                                     \
-       int __ret_warn_on = !!(condition);              \
-       if (unlikely(__ret_warn_on))                    \
-               printf((msg));                          \
-       unlikely(__ret_warn_on);                        \
-})
-
-
-
-#define WARN_ON(condition)                             \
-({                                                     \
-       int __ret_warn_on = !!(condition);              \
-       if (unlikely(__ret_warn_on))                    \
-               printf("WARN_ON: " #condition "\n");    \
-       unlikely(__ret_warn_on);                        \
-})
-
-#define WARN_ON_ONCE(condition) ({                     \
-       static int __warned;                            \
-       int __ret_warn_once = !!(condition);            \
-                                                       \
-       if (unlikely(__ret_warn_once))                  \
-               if (WARN_ON(!__warned))                 \
-                       __warned = 1;                   \
-       unlikely(__ret_warn_once);                      \
-})
-
-#define BUG_ON(cond)                                   \
-       do {                                            \
-               if (cond)                               \
-                       panic("BUG_ON: " #cond);        \
-       } while (0)
-
-#define BUG()                                          \
-       do {                                            \
-               panic("BUG: %s:%d", __FILE__, __LINE__);        \
-       } while (0)
-
 #define vchiq_static_assert(cond) CTASSERT(cond)
 
 /*
@@ -293,7 +252,6 @@
 #define __user
 
 #define        current                 curlwp
-#define EXPORT_SYMBOL(x)
 #define PAGE_ALIGN(addr)       round_page(addr)
 
 typedef        void    irqreturn_t;



Home | Main Index | Thread Index | Old Index