git: cdccd11b366d - main - forward declare struct thread

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 11 Oct 2021 19:02:08 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=cdccd11b366d3c64331176c4ffe591969c86b0e3

commit cdccd11b366d3c64331176c4ffe591969c86b0e3
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-10-11 18:59:39 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-10-11 18:59:39 +0000

    forward declare struct thread
    
    sys/sysctl.h moved struct thread forward declaration under #ifdef
    _KERNEL and so this header fails when included from userland. Add a
    forward declaration here.
    
    Fixes:                  99eefc727eba
    Sponsored by:           Netflix
---
 sys/vm/swap_pager.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h
index 20b9bc95b1b2..395fbc9957c4 100644
--- a/sys/vm/swap_pager.h
+++ b/sys/vm/swap_pager.h
@@ -44,6 +44,7 @@
 
 struct buf;
 struct swdevt;
+struct thread;
 typedef void sw_strategy_t(struct buf *, struct swdevt *);
 typedef void sw_close_t(struct thread *, struct swdevt *);