Drop unused WEAK_REFERENCE macro
authorjca <jca@openbsd.org>
Tue, 6 Dec 2022 00:08:38 +0000 (00:08 +0000)
committerjca <jca@openbsd.org>
Tue, 6 Dec 2022 00:08:38 +0000 (00:08 +0000)
Probably coming from FreeBSD.  We already have WEAK_ALIAS a few lines
above.  ok mlarkin@ guenther@

sys/arch/riscv64/include/asm.h

index 35b211d..fa55fea 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.7 2022/12/03 15:02:30 jca Exp $     */
+/*     $OpenBSD: asm.h,v 1.8 2022/12/06 00:08:38 jca Exp $     */
 
 /*
  * Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
        .weak alias;                                                    \
        alias = sym
 
-#define        WEAK_REFERENCE(sym, alias)                              \
-       .weak alias;                                            \
-       .set alias,sym
-
 #define        SWAP_FAULT_HANDLER(handler, tmp0, tmp1)                 \
        ld      tmp0, CI_CURPCB(tp);            /* Load the pcb */      \
        ld      tmp1, PCB_ONFAULT(tmp0);        /* Save old handler */  \