summaryrefslogtreecommitdiffstats
path: root/security/smack/smack.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2018-05-29 19:58:39 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 20:40:34 +1000
commit044003b52a78bcbda7103633c351da16505096cf (patch)
tree56d80fbb6e79226e0617251f06d982524b750ae1 /security/smack/smack.h
parentf069ff396d657ac7bdb5de866c3ec28b8d08d953 (diff)
downloadlinux-044003b52a78bcbda7103633c351da16505096cf.tar.gz
linux-044003b52a78bcbda7103633c351da16505096cf.tar.bz2
linux-044003b52a78bcbda7103633c351da16505096cf.zip
powerpc/mm/radix: Move function from radix.h to pgtable-radix.c
In later patch we will update them which require them to be moved to pgtable-radix.c. Keeping the function in radix.h results in compile warning as below. ./arch/powerpc/include/asm/book3s/64/radix.h: In function ‘radix__ptep_set_access_flags’: ./arch/powerpc/include/asm/book3s/64/radix.h:196:28: error: dereferencing pointer to incomplete type ‘struct vm_area_struct’ struct mm_struct *mm = vma->vm_mm; ^~ ./arch/powerpc/include/asm/book3s/64/radix.h:204:6: error: implicit declaration of function ‘atomic_read’; did you mean ‘__atomic_load’? [-Werror=implicit-function-declaration] atomic_read(&mm->context.copros) > 0) { ^~~~~~~~~~~ __atomic_load ./arch/powerpc/include/asm/book3s/64/radix.h:204:21: error: dereferencing pointer to incomplete type ‘struct mm_struct’ atomic_read(&mm->context.copros) > 0) { Instead of fixing header dependencies, we move the function to pgtable-radix.c Also the function is now large to be a static inline . Doing the move in separate patch helps in review. No functional change in this patch. Only code movement. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'security/smack/smack.h')
0 files changed, 0 insertions, 0 deletions