1708a5702SJean-Sébastien Pédron /*- 2708a5702SJean-Sébastien Pédron * SPDX-License-Identifier: BSD-2-Clause 3708a5702SJean-Sébastien Pédron * 4708a5702SJean-Sébastien Pédron * Copyright (c) 2022 Jean-Sébastien Pédron <dumbbell@FreeBSD.org> 5708a5702SJean-Sébastien Pédron * 6708a5702SJean-Sébastien Pédron * Redistribution and use in source and binary forms, with or without 7708a5702SJean-Sébastien Pédron * modification, are permitted provided that the following conditions are 8708a5702SJean-Sébastien Pédron * met: 9708a5702SJean-Sébastien Pédron * 1. Redistributions of source code must retain the above copyright 10708a5702SJean-Sébastien Pédron * notice, this list of conditions and the following disclaimer. 11708a5702SJean-Sébastien Pédron * 2. Redistributions in binary form must reproduce the above copyright 12708a5702SJean-Sébastien Pédron * notice, this list of conditions and the following disclaimer in 13708a5702SJean-Sébastien Pédron * the documentation and/or other materials provided with the 14708a5702SJean-Sébastien Pédron * distribution. 15708a5702SJean-Sébastien Pédron * 16708a5702SJean-Sébastien Pédron * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17708a5702SJean-Sébastien Pédron * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18708a5702SJean-Sébastien Pédron * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19708a5702SJean-Sébastien Pédron * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20708a5702SJean-Sébastien Pédron * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21708a5702SJean-Sébastien Pédron * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22708a5702SJean-Sébastien Pédron * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23708a5702SJean-Sébastien Pédron * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24708a5702SJean-Sébastien Pédron * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25708a5702SJean-Sébastien Pédron * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26708a5702SJean-Sébastien Pédron * SUCH DAMAGE. 27708a5702SJean-Sébastien Pédron */ 28708a5702SJean-Sébastien Pédron 29708a5702SJean-Sébastien Pédron #ifndef _LINUXKPI_LINUX_PAGEFLAGS_H_ 30708a5702SJean-Sébastien Pédron #define _LINUXKPI_LINUX_PAGEFLAGS_H_ 31708a5702SJean-Sébastien Pédron 32*e3b16f53SJean-Sébastien Pédron #include <linux/mm_types.h> 33*e3b16f53SJean-Sébastien Pédron 34708a5702SJean-Sébastien Pédron #define PageHighMem(p) (0) 35708a5702SJean-Sébastien Pédron 36*e3b16f53SJean-Sébastien Pédron #define page_folio(p) \ 37*e3b16f53SJean-Sébastien Pédron (_Generic((p), \ 38*e3b16f53SJean-Sébastien Pédron const struct page *: (const struct folio *)(p), \ 39*e3b16f53SJean-Sébastien Pédron struct page *: (struct folio *)(p))) 40*e3b16f53SJean-Sébastien Pédron 41708a5702SJean-Sébastien Pédron #endif /* _LINUXKPI_LINUX_PAGEFLAGS_H_ */ 42