diff options
author | Jason Gunthorpe <[email protected]> | 2019-11-12 16:22:18 -0400 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-11-12 20:18:27 -0400 |
commit | 56f434f40f059eb3769d50b9c244a850096c3d6f (patch) | |
tree | e8c65d9bae28ef8767f528bd07bbfcf0f3e0f002 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 0e64e5b38c0106c054bc9b6acc5d0e605ac6ad47 (diff) |
mm/mmu_notifier: define the header pre-processor parts even if disabled
Now that we have KERNEL_HEADER_TEST all headers are generally compile
tested, so relying on makefile tricks to avoid compiling code that depends
on CONFIG_MMU_NOTIFIER is more annoying.
Instead follow the usual pattern and provide most of the header with only
the functions stubbed out when CONFIG_MMU_NOTIFIER is disabled. This
ensures code compiles no matter what the config setting is.
While here, struct mmu_notifier_mm is private to mmu_notifier.c, move it.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jérôme Glisse <[email protected]>
Tested-by: Ralph Campbell <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions