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