Commit 1c95bb40 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: acpi __user annotation

parent 79f21235
......@@ -582,7 +582,7 @@ acpi_battery_read_alarm (
static int
acpi_battery_write_alarm (
struct file *file,
const char *buffer,
const char __user *buffer,
unsigned long count,
void *data)
{
......
......@@ -55,7 +55,7 @@ acpi_system_read_debug (
static int
acpi_system_write_debug (
struct file *file,
const char *buffer,
const char __user *buffer,
unsigned long count,
void *data)
{
......
......@@ -42,7 +42,7 @@ acpi_system_open_event(struct inode *inode, struct file *file)
static ssize_t
acpi_system_read_event (
struct file *file,
char *buffer,
char __user *buffer,
size_t count,
loff_t *ppos)
{
......
......@@ -114,7 +114,7 @@ acpi_fan_read_state (
static int
acpi_fan_write_state (
struct file *file,
const char *buffer,
const char __user *buffer,
unsigned long count,
void *data)
{
......
......@@ -1948,7 +1948,7 @@ static int acpi_processor_throttling_open_fs(struct inode *inode, struct file *f
static ssize_t
acpi_processor_write_throttling (
struct file *file,
const char *buffer,
const char __user *buffer,
size_t count,
loff_t *data)
{
......@@ -2009,7 +2009,7 @@ static int acpi_processor_limit_open_fs(struct inode *inode, struct file *file)
static ssize_t
acpi_processor_write_limit (
struct file *file,
const char *buffer,
const char __user *buffer,
size_t count,
loff_t *data)
{
......
......@@ -77,7 +77,7 @@ acpi_system_read_info (
return_VALUE(size);
}
static ssize_t acpi_system_read_dsdt (struct file*, char*, size_t, loff_t*);
static ssize_t acpi_system_read_dsdt (struct file*, char __user *, size_t, loff_t*);
static struct file_operations acpi_system_dsdt_ops = {
.read = acpi_system_read_dsdt,
......@@ -86,7 +86,7 @@ static struct file_operations acpi_system_dsdt_ops = {
static ssize_t
acpi_system_read_dsdt (
struct file *file,
char *buffer,
char __user *buffer,
size_t count,
loff_t *ppos)
{
......@@ -120,7 +120,7 @@ acpi_system_read_dsdt (
}
static ssize_t acpi_system_read_fadt (struct file*, char*, size_t, loff_t*);
static ssize_t acpi_system_read_fadt (struct file*, char __user *, size_t, loff_t*);
static struct file_operations acpi_system_fadt_ops = {
.read = acpi_system_read_fadt,
......@@ -129,7 +129,7 @@ static struct file_operations acpi_system_fadt_ops = {
static ssize_t
acpi_system_read_fadt (
struct file *file,
char *buffer,
char __user *buffer,
size_t count,
loff_t *ppos)
{
......
......@@ -84,11 +84,11 @@ static int acpi_thermal_remove (struct acpi_device *device, int type);
static int acpi_thermal_state_open_fs(struct inode *inode, struct file *file);
static int acpi_thermal_temp_open_fs(struct inode *inode, struct file *file);
static int acpi_thermal_trip_open_fs(struct inode *inode, struct file *file);
static ssize_t acpi_thermal_write_trip_points (struct file*,const char *,size_t,loff_t *);
static ssize_t acpi_thermal_write_trip_points (struct file*,const char __user *,size_t,loff_t *);
static int acpi_thermal_cooling_open_fs(struct inode *inode, struct file *file);
static ssize_t acpi_thermal_write_cooling_mode (struct file*,const char *,size_t,loff_t *);
static ssize_t acpi_thermal_write_cooling_mode (struct file*,const char __user *,size_t,loff_t *);
static int acpi_thermal_polling_open_fs(struct inode *inode, struct file *file);
static ssize_t acpi_thermal_write_polling(struct file*,const char *,size_t,loff_t *);
static ssize_t acpi_thermal_write_polling(struct file*,const char __user *,size_t,loff_t *);
static struct acpi_driver acpi_thermal_driver = {
.name = ACPI_THERMAL_DRIVER_NAME,
......@@ -885,7 +885,7 @@ static int acpi_thermal_trip_open_fs(struct inode *inode, struct file *file)
static ssize_t
acpi_thermal_write_trip_points (
struct file *file,
const char *buffer,
const char __user *buffer,
size_t count,
loff_t *ppos)
{
......@@ -954,7 +954,7 @@ static int acpi_thermal_cooling_open_fs(struct inode *inode, struct file *file)
static ssize_t
acpi_thermal_write_cooling_mode (
struct file *file,
const char *buffer,
const char __user *buffer,
size_t count,
loff_t *ppos)
{
......@@ -1015,7 +1015,7 @@ static int acpi_thermal_polling_open_fs(struct inode *inode, struct file *file)
static ssize_t
acpi_thermal_write_polling (
struct file *file,
const char *buffer,
const char __user *buffer,
size_t count,
loff_t *ppos)
{
......
......@@ -252,7 +252,7 @@ dispatch_read(char* page, char** start, off_t off, int count, int* eof,
}
static int
dispatch_write(struct file* file, __user const char* buffer,
dispatch_write(struct file* file, const char __user * buffer,
unsigned long count, ProcItem* item)
{
int result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment