powerpc/spufs: Use llseek in all file operations

The default for llseek is changing, so we need
explicit operations everywhere.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jeremy Kerr <jk@ozlabs.org>
Cc: linuxppc-dev@ozlabs.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by Arnd Bergmann and committed by Benjamin Herrenschmidt fc15351d f56029b5

+18
+18
arch/powerpc/platforms/cell/spufs/file.c
··· 154 .release = spufs_attr_release, \ 155 .read = spufs_attr_read, \ 156 .write = spufs_attr_write, \ 157 }; 158 159 ··· 522 .release = spufs_cntl_release, 523 .read = simple_attr_read, 524 .write = simple_attr_write, 525 .mmap = spufs_cntl_mmap, 526 }; 527 ··· 716 static const struct file_operations spufs_mbox_fops = { 717 .open = spufs_pipe_open, 718 .read = spufs_mbox_read, 719 }; 720 721 static ssize_t spufs_mbox_stat_read(struct file *file, char __user *buf, ··· 746 static const struct file_operations spufs_mbox_stat_fops = { 747 .open = spufs_pipe_open, 748 .read = spufs_mbox_stat_read, 749 }; 750 751 /* low-level ibox access function */ ··· 867 .read = spufs_ibox_read, 868 .poll = spufs_ibox_poll, 869 .fasync = spufs_ibox_fasync, 870 }; 871 872 static ssize_t spufs_ibox_stat_read(struct file *file, char __user *buf, ··· 895 static const struct file_operations spufs_ibox_stat_fops = { 896 .open = spufs_pipe_open, 897 .read = spufs_ibox_stat_read, 898 }; 899 900 /* low-level mailbox write */ ··· 1017 .write = spufs_wbox_write, 1018 .poll = spufs_wbox_poll, 1019 .fasync = spufs_wbox_fasync, 1020 }; 1021 1022 static ssize_t spufs_wbox_stat_read(struct file *file, char __user *buf, ··· 1045 static const struct file_operations spufs_wbox_stat_fops = { 1046 .open = spufs_pipe_open, 1047 .read = spufs_wbox_stat_read, 1048 }; 1049 1050 static int spufs_signal1_open(struct inode *inode, struct file *file) ··· 1174 .read = spufs_signal1_read, 1175 .write = spufs_signal1_write, 1176 .mmap = spufs_signal1_mmap, 1177 }; 1178 1179 static const struct file_operations spufs_signal1_nosched_fops = { ··· 1182 .release = spufs_signal1_release, 1183 .write = spufs_signal1_write, 1184 .mmap = spufs_signal1_mmap, 1185 }; 1186 1187 static int spufs_signal2_open(struct inode *inode, struct file *file) ··· 1315 .read = spufs_signal2_read, 1316 .write = spufs_signal2_write, 1317 .mmap = spufs_signal2_mmap, 1318 }; 1319 1320 static const struct file_operations spufs_signal2_nosched_fops = { ··· 1323 .release = spufs_signal2_release, 1324 .write = spufs_signal2_write, 1325 .mmap = spufs_signal2_mmap, 1326 }; 1327 1328 /* ··· 1463 .open = spufs_mss_open, 1464 .release = spufs_mss_release, 1465 .mmap = spufs_mss_mmap, 1466 }; 1467 1468 static int ··· 1521 .open = spufs_psmap_open, 1522 .release = spufs_psmap_release, 1523 .mmap = spufs_psmap_mmap, 1524 }; 1525 1526 ··· 1885 .fsync = spufs_mfc_fsync, 1886 .fasync = spufs_mfc_fasync, 1887 .mmap = spufs_mfc_mmap, 1888 }; 1889 1890 static int spufs_npc_set(void *data, u64 val) ··· 2261 static const struct file_operations spufs_dma_info_fops = { 2262 .open = spufs_info_open, 2263 .read = spufs_dma_info_read, 2264 }; 2265 2266 static ssize_t __spufs_proxydma_info_read(struct spu_context *ctx, ··· 2315 static const struct file_operations spufs_proxydma_info_fops = { 2316 .open = spufs_info_open, 2317 .read = spufs_proxydma_info_read, 2318 }; 2319 2320 static int spufs_show_tid(struct seq_file *s, void *private) ··· 2602 .read = spufs_switch_log_read, 2603 .poll = spufs_switch_log_poll, 2604 .release = spufs_switch_log_release, 2605 }; 2606 2607 /**
··· 154 .release = spufs_attr_release, \ 155 .read = spufs_attr_read, \ 156 .write = spufs_attr_write, \ 157 + .llseek = generic_file_llseek, \ 158 }; 159 160 ··· 521 .release = spufs_cntl_release, 522 .read = simple_attr_read, 523 .write = simple_attr_write, 524 + .llseek = generic_file_llseek, 525 .mmap = spufs_cntl_mmap, 526 }; 527 ··· 714 static const struct file_operations spufs_mbox_fops = { 715 .open = spufs_pipe_open, 716 .read = spufs_mbox_read, 717 + .llseek = no_llseek, 718 }; 719 720 static ssize_t spufs_mbox_stat_read(struct file *file, char __user *buf, ··· 743 static const struct file_operations spufs_mbox_stat_fops = { 744 .open = spufs_pipe_open, 745 .read = spufs_mbox_stat_read, 746 + .llseek = no_llseek, 747 }; 748 749 /* low-level ibox access function */ ··· 863 .read = spufs_ibox_read, 864 .poll = spufs_ibox_poll, 865 .fasync = spufs_ibox_fasync, 866 + .llseek = no_llseek, 867 }; 868 869 static ssize_t spufs_ibox_stat_read(struct file *file, char __user *buf, ··· 890 static const struct file_operations spufs_ibox_stat_fops = { 891 .open = spufs_pipe_open, 892 .read = spufs_ibox_stat_read, 893 + .llseek = no_llseek, 894 }; 895 896 /* low-level mailbox write */ ··· 1011 .write = spufs_wbox_write, 1012 .poll = spufs_wbox_poll, 1013 .fasync = spufs_wbox_fasync, 1014 + .llseek = no_llseek, 1015 }; 1016 1017 static ssize_t spufs_wbox_stat_read(struct file *file, char __user *buf, ··· 1038 static const struct file_operations spufs_wbox_stat_fops = { 1039 .open = spufs_pipe_open, 1040 .read = spufs_wbox_stat_read, 1041 + .llseek = no_llseek, 1042 }; 1043 1044 static int spufs_signal1_open(struct inode *inode, struct file *file) ··· 1166 .read = spufs_signal1_read, 1167 .write = spufs_signal1_write, 1168 .mmap = spufs_signal1_mmap, 1169 + .llseek = no_llseek, 1170 }; 1171 1172 static const struct file_operations spufs_signal1_nosched_fops = { ··· 1173 .release = spufs_signal1_release, 1174 .write = spufs_signal1_write, 1175 .mmap = spufs_signal1_mmap, 1176 + .llseek = no_llseek, 1177 }; 1178 1179 static int spufs_signal2_open(struct inode *inode, struct file *file) ··· 1305 .read = spufs_signal2_read, 1306 .write = spufs_signal2_write, 1307 .mmap = spufs_signal2_mmap, 1308 + .llseek = no_llseek, 1309 }; 1310 1311 static const struct file_operations spufs_signal2_nosched_fops = { ··· 1312 .release = spufs_signal2_release, 1313 .write = spufs_signal2_write, 1314 .mmap = spufs_signal2_mmap, 1315 + .llseek = no_llseek, 1316 }; 1317 1318 /* ··· 1451 .open = spufs_mss_open, 1452 .release = spufs_mss_release, 1453 .mmap = spufs_mss_mmap, 1454 + .llseek = no_llseek, 1455 }; 1456 1457 static int ··· 1508 .open = spufs_psmap_open, 1509 .release = spufs_psmap_release, 1510 .mmap = spufs_psmap_mmap, 1511 + .llseek = no_llseek, 1512 }; 1513 1514 ··· 1871 .fsync = spufs_mfc_fsync, 1872 .fasync = spufs_mfc_fasync, 1873 .mmap = spufs_mfc_mmap, 1874 + .llseek = no_llseek, 1875 }; 1876 1877 static int spufs_npc_set(void *data, u64 val) ··· 2246 static const struct file_operations spufs_dma_info_fops = { 2247 .open = spufs_info_open, 2248 .read = spufs_dma_info_read, 2249 + .llseek = no_llseek, 2250 }; 2251 2252 static ssize_t __spufs_proxydma_info_read(struct spu_context *ctx, ··· 2299 static const struct file_operations spufs_proxydma_info_fops = { 2300 .open = spufs_info_open, 2301 .read = spufs_proxydma_info_read, 2302 + .llseek = no_llseek, 2303 }; 2304 2305 static int spufs_show_tid(struct seq_file *s, void *private) ··· 2585 .read = spufs_switch_log_read, 2586 .poll = spufs_switch_log_poll, 2587 .release = spufs_switch_log_release, 2588 + .llseek = no_llseek, 2589 }; 2590 2591 /**