Skip to content

Commit 78273df

Browse files
committed
Merge tag 'header_cleanup-2024-01-10' of https://evilpiepirate.org/git/bcachefs
Pull header cleanups from Kent Overstreet: "The goal is to get sched.h down to a type only header, so the main thing happening in this patchset is splitting out various _types.h headers and dependency fixups, as well as moving some things out of sched.h to better locations. This is prep work for the memory allocation profiling patchset which adds new sched.h interdepencencies" * tag 'header_cleanup-2024-01-10' of https://evilpiepirate.org/git/bcachefs: (51 commits) Kill sched.h dependency on rcupdate.h kill unnecessary thread_info.h include Kill unnecessary kernel.h include preempt.h: Kill dependency on list.h rseq: Split out rseq.h from sched.h LoongArch: signal.c: add header file to fix build error restart_block: Trim includes lockdep: move held_lock to lockdep_types.h sem: Split out sem_types.h uidgid: Split out uidgid_types.h seccomp: Split out seccomp_types.h refcount: Split out refcount_types.h uapi/linux/resource.h: fix include x86/signal: kill dependency on time.h syscall_user_dispatch.h: split out *_types.h mm_types_task.h: Trim dependencies Split out irqflags_types.h ipc: Kill bogus dependency on spinlock.h shm: Slim down dependencies workqueue: Split out workqueue_types.h ...
2 parents 999a36b + 1e2f2d3 commit 78273df

119 files changed

Lines changed: 1062 additions & 775 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arch/arm64/include/asm/spectre.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#define __BP_HARDEN_HYP_VECS_SZ ((BP_HARDEN_EL2_SLOTS - 1) * SZ_2K)
1414

1515
#ifndef __ASSEMBLY__
16-
17-
#include <linux/percpu.h>
16+
#include <linux/smp.h>
17+
#include <asm/percpu.h>
1818

1919
#include <asm/cpufeature.h>
2020
#include <asm/virt.h>

arch/arm64/kernel/ptrace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/hw_breakpoint.h>
2929
#include <linux/regset.h>
3030
#include <linux/elf.h>
31+
#include <linux/rseq.h>
3132

3233
#include <asm/compat.h>
3334
#include <asm/cpufeature.h>

arch/loongarch/kernel/signal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/context_tracking.h>
1616
#include <linux/entry-common.h>
1717
#include <linux/irqflags.h>
18+
#include <linux/rseq.h>
1819
#include <linux/sched.h>
1920
#include <linux/mm.h>
2021
#include <linux/personality.h>

arch/m68k/include/asm/processor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#ifndef __ASM_M68K_PROCESSOR_H
99
#define __ASM_M68K_PROCESSOR_H
1010

11+
#include <linux/preempt.h>
1112
#include <linux/thread_info.h>
1213
#include <asm/fpu.h>
1314
#include <asm/ptrace.h>

arch/microblaze/include/asm/pgtable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ static inline void set_pte(pte_t *ptep, pte_t pte)
336336
}
337337

338338
#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG
339+
struct vm_area_struct;
339340
static inline int ptep_test_and_clear_young(struct vm_area_struct *vma,
340341
unsigned long address, pte_t *ptep)
341342
{

arch/parisc/mm/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <asm/msgbuf.h>
3434
#include <asm/sparsemem.h>
3535
#include <asm/asm-offsets.h>
36+
#include <asm/shmbuf.h>
3637

3738
extern int data_start;
3839
extern void parisc_kernel_start(void); /* Kernel entry point in head.S */

arch/powerpc/kernel/interrupt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <linux/context_tracking.h>
44
#include <linux/err.h>
55
#include <linux/compat.h>
6+
#include <linux/rseq.h>
67
#include <linux/sched/debug.h> /* for show_regs */
78

89
#include <asm/kup.h>

arch/powerpc/kvm/book3s_64_vio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/iommu.h>
2121
#include <linux/file.h>
2222
#include <linux/mm.h>
23+
#include <linux/rcupdate_wait.h>
2324

2425
#include <asm/kvm_ppc.h>
2526
#include <asm/kvm_book3s.h>

arch/s390/kernel/signal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <linux/sched.h>
1414
#include <linux/sched/task_stack.h>
15+
#include <linux/rseq.h>
1516
#include <linux/mm.h>
1617
#include <linux/smp.h>
1718
#include <linux/kernel.h>

arch/x86/include/asm/current.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#ifndef _ASM_X86_CURRENT_H
33
#define _ASM_X86_CURRENT_H
44

5+
#include <linux/build_bug.h>
56
#include <linux/compiler.h>
67

78
#ifndef __ASSEMBLY__

0 commit comments

Comments
 (0)