[S390] Get rid of a bunch of sparse warnings again.
Also removes a bunch of ^L in drivers/s390/cio/cmf.c Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
f536010642
commit
364c85584e
@ -2,6 +2,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/audit.h>
|
||||
#include <asm/unistd.h>
|
||||
#include "audit.h"
|
||||
|
||||
static unsigned dir_class[] = {
|
||||
#include <asm-generic/audit_dir_write.h>
|
||||
@ -40,7 +41,6 @@ int audit_classify_arch(int arch)
|
||||
int audit_classify_syscall(int abi, unsigned syscall)
|
||||
{
|
||||
#ifdef CONFIG_COMPAT
|
||||
extern int s390_classify_syscall(unsigned);
|
||||
if (abi == AUDIT_ARCH_S390)
|
||||
return s390_classify_syscall(syscall);
|
||||
#endif
|
||||
@ -61,11 +61,6 @@ int audit_classify_syscall(int abi, unsigned syscall)
|
||||
static int __init audit_classes_init(void)
|
||||
{
|
||||
#ifdef CONFIG_COMPAT
|
||||
extern __u32 s390_dir_class[];
|
||||
extern __u32 s390_write_class[];
|
||||
extern __u32 s390_read_class[];
|
||||
extern __u32 s390_chattr_class[];
|
||||
extern __u32 s390_signal_class[];
|
||||
audit_register_class(AUDIT_CLASS_WRITE_32, s390_write_class);
|
||||
audit_register_class(AUDIT_CLASS_READ_32, s390_read_class);
|
||||
audit_register_class(AUDIT_CLASS_DIR_WRITE_32, s390_dir_class);
|
||||
|
15
arch/s390/kernel/audit.h
Normal file
15
arch/s390/kernel/audit.h
Normal file
@ -0,0 +1,15 @@
|
||||
#ifndef __ARCH_S390_KERNEL_AUDIT_H
|
||||
#define __ARCH_S390_KERNEL_AUDIT_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
extern int s390_classify_syscall(unsigned);
|
||||
extern __u32 s390_dir_class[];
|
||||
extern __u32 s390_write_class[];
|
||||
extern __u32 s390_read_class[];
|
||||
extern __u32 s390_chattr_class[];
|
||||
extern __u32 s390_signal_class[];
|
||||
#endif /* CONFIG_COMPAT */
|
||||
|
||||
#endif /* __ARCH_S390_KERNEL_AUDIT_H */
|
@ -1,5 +1,6 @@
|
||||
#undef __s390x__
|
||||
#include <asm/unistd.h>
|
||||
#include "audit.h"
|
||||
|
||||
unsigned s390_dir_class[] = {
|
||||
#include <asm-generic/audit_dir_write.h>
|
||||
|
Reference in New Issue
Block a user