// SPDX-License-Identifier: GPL-2.0 /* * Generate definitions needed by the preprocessor. * This code generates raw asm output which is post-processed * to extract and format the required data. */ #define __GENERATING_BOUNDS_H /* Include headers that define the enum constants of interest */ #include <linux/page-flags.h> #include <linux/mmzone.h> #include <linux/kbuild.h> #include <linux/log2.h> #include <linux/spinlock_types.h>
void foo(void) { /* The enum constants to put into include/generated/bounds.h */ DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES); #ifdef CONFIG_SMP DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); #endif DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t)); /* End of constants */ }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 24 | 50.00% | 2 | 28.57% |
Christoph Lameter | 22 | 45.83% | 3 | 42.86% |
Sam Ravnborg | 1 | 2.08% | 1 | 14.29% |
Kirill A. Shutemov | 1 | 2.08% | 1 | 14.29% |
Total | 48 | 100.00% | 7 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Christoph Lameter | 36 | 52.17% | 4 | 36.36% |
Peter Zijlstra | 27 | 39.13% | 2 | 18.18% |
Johannes Weiner | 2 | 2.90% | 1 | 9.09% |
Kirill A. Shutemov | 2 | 2.90% | 2 | 18.18% |
Sam Ravnborg | 1 | 1.45% | 1 | 9.09% |
Greg Kroah-Hartman | 1 | 1.45% | 1 | 9.09% |
Total | 69 | 100.00% | 11 | 100.00% |