mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-15 09:03:59 +08:00
04aaca197f
include/uapi/linux/raw.h leaks CONFIG_MAX_RAW_DEVS to userspace. Userspace programs cannot use MAX_RAW_MINORS since CONFIG_MAX_RAW_DEVS is not available anyway. Remove the MAX_RAW_MINORS definition from the exported header, and use CONFIG_MAX_RAW_DEVS in drivers/char/raw.c While I was here, I converted printk(KERN_WARNING ...) to pr_warn(...) and stretched the warning message. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Link: https://lore.kernel.org/r/20200617083313.183184-1-masahiroy@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 lines
321 B
C
18 lines
321 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef __LINUX_RAW_H
|
|
#define __LINUX_RAW_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define RAW_SETBIND _IO( 0xac, 0 )
|
|
#define RAW_GETBIND _IO( 0xac, 1 )
|
|
|
|
struct raw_config_request
|
|
{
|
|
int raw_minor;
|
|
__u64 block_major;
|
|
__u64 block_minor;
|
|
};
|
|
|
|
#endif /* __LINUX_RAW_H */
|