Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Generate definitions needed by the preprocessor.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * This code generates raw asm output which is post-processed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * to extract and format the required data.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define __GENERATING_BOUNDS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) /* Include headers that define the enum constants of interest */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/page-flags.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/mmzone.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/kbuild.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/log2.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/spinlock_types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) int main(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	/* The enum constants to put into include/generated/bounds.h */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #ifdef CONFIG_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	/* End of constants */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) }