netfilter: fix function return types for 64bit
authorMark Hambleton <mahamble@broadcom.com>
Fri, 29 Nov 2013 13:44:53 +0000 (13:44 +0000)
committerMark Brown <broonie@linaro.org>
Fri, 13 Dec 2013 18:48:02 +0000 (18:48 +0000)
Fix functions to return ssize_t instead of int to match
prototypes.

Signed-off-by: Mark Hambleton <mahamble@broadcom.com>
Reviewed-by: Edwin Chan <echan@broadcom.com>
Reviewed-by: James King <jamesk@broadcom.com>
Reviewed-by: John Garry <jgarry@broadcom.com>
Reviewed-by: Mark Hambleton <mark.hambleton@broadcom.com>
Reviewed-by: Joyjit Nath <joyjit@broadcom.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
net/netfilter/xt_qtaguid.c
net/netfilter/xt_quota2.c

index 4a16829969a68b9560f0c63ff6ef175886683458..7346522cf3ae3655b64716a985c39f5e05f3b41f 100644 (file)
@@ -594,7 +594,7 @@ static void put_tag_ref_tree(tag_t full_tag, struct uid_tag_data *utd_entry)
        }
 }
 
-static int read_proc_u64(struct file *file, char __user *buf,
+static ssize_t read_proc_u64(struct file *file, char __user *buf,
                         size_t size, loff_t *ppos)
 {
        uint64_t *valuep = PDE_DATA(file_inode(file));
@@ -605,7 +605,7 @@ static int read_proc_u64(struct file *file, char __user *buf,
        return simple_read_from_buffer(buf, size, ppos, tmp, tmp_size);
 }
 
-static int read_proc_bool(struct file *file, char __user *buf,
+static ssize_t read_proc_bool(struct file *file, char __user *buf,
                          size_t size, loff_t *ppos)
 {
        bool *valuep = PDE_DATA(file_inode(file));
@@ -702,7 +702,7 @@ static void pp_iface_stat_line(struct seq_file *m,
 }
 
 struct proc_iface_stat_fmt_info {
-       int fmt;
+       long fmt;
 };
 
 static void *iface_stat_fmt_proc_start(struct seq_file *m, loff_t *pos)
@@ -1488,7 +1488,7 @@ static int proc_iface_stat_fmt_open(struct inode *inode, struct file *file)
        if (!s)
                return -ENOMEM;
 
-       s->fmt = (int)PDE_DATA(inode);
+       s->fmt = (long)PDE_DATA(inode);
        return 0;
 }
 
@@ -2479,7 +2479,7 @@ err:
 }
 
 #define MAX_QTAGUID_CTRL_INPUT_LEN 255
-static int qtaguid_ctrl_proc_write(struct file *file, const char __user *buffer,
+static ssize_t qtaguid_ctrl_proc_write(struct file *file, const char __user *buffer,
                                   size_t count, loff_t *offp)
 {
        char input_buf[MAX_QTAGUID_CTRL_INPUT_LEN];
index 44ebdcc75965c75c32efe65cce03d7897f2d06e2..4328562572f670e6c314f442feb2d0fa575eae85 100644 (file)
@@ -122,7 +122,7 @@ static void quota2_log(unsigned int hooknum,
 }
 #endif  /* if+else CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG */
 
-static int quota_proc_read(struct file *file, char __user *buf,
+static ssize_t quota_proc_read(struct file *file, char __user *buf,
                           size_t size, loff_t *ppos)
 {
        struct xt_quota_counter *e = PDE_DATA(file_inode(file));
@@ -135,7 +135,7 @@ static int quota_proc_read(struct file *file, char __user *buf,
        return simple_read_from_buffer(buf, size, ppos, tmp, tmp_size);
 }
 
-static int quota_proc_write(struct file *file, const char __user *input,
+static ssize_t quota_proc_write(struct file *file, const char __user *input,
                             size_t size, loff_t *ppos)
 {
        struct xt_quota_counter *e = PDE_DATA(file_inode(file));