@@ -215,7 +215,7 @@ secno hpfs_bplus_lookup(struct super_block *, struct inode *, struct bplus_heade
215215secno hpfs_add_sector_to_btree (struct super_block * , secno , int , unsigned );
216216void hpfs_remove_btree (struct super_block * , struct bplus_header * );
217217int hpfs_ea_read (struct super_block * , secno , int , unsigned , unsigned , char * );
218- int hpfs_ea_write (struct super_block * , secno , int , unsigned , unsigned , char * );
218+ int hpfs_ea_write (struct super_block * , secno , int , unsigned , unsigned , const char * );
219219void hpfs_ea_remove (struct super_block * , secno , int , unsigned );
220220void hpfs_truncate_btree (struct super_block * , secno , int , unsigned );
221221void hpfs_remove_fnode (struct super_block * , fnode_secno fno );
@@ -244,13 +244,17 @@ extern const struct file_operations hpfs_dir_ops;
244244
245245void hpfs_add_pos (struct inode * , loff_t * );
246246void hpfs_del_pos (struct inode * , loff_t * );
247- struct hpfs_dirent * hpfs_add_de (struct super_block * , struct dnode * , unsigned char * , unsigned , secno );
248- int hpfs_add_dirent (struct inode * , unsigned char * , unsigned , struct hpfs_dirent * , int );
247+ struct hpfs_dirent * hpfs_add_de (struct super_block * , struct dnode * ,
248+ const unsigned char * , unsigned , secno );
249+ int hpfs_add_dirent (struct inode * , const unsigned char * , unsigned ,
250+ struct hpfs_dirent * , int );
249251int hpfs_remove_dirent (struct inode * , dnode_secno , struct hpfs_dirent * , struct quad_buffer_head * , int );
250252void hpfs_count_dnodes (struct super_block * , dnode_secno , int * , int * , int * );
251253dnode_secno hpfs_de_as_down_as_possible (struct super_block * , dnode_secno dno );
252254struct hpfs_dirent * map_pos_dirent (struct inode * , loff_t * , struct quad_buffer_head * );
253- struct hpfs_dirent * map_dirent (struct inode * , dnode_secno , char * , unsigned , dnode_secno * , struct quad_buffer_head * );
255+ struct hpfs_dirent * map_dirent (struct inode * , dnode_secno ,
256+ const unsigned char * , unsigned , dnode_secno * ,
257+ struct quad_buffer_head * );
254258void hpfs_remove_dtree (struct super_block * , dnode_secno );
255259struct hpfs_dirent * map_fnode_dirent (struct super_block * , fnode_secno , struct fnode * , struct quad_buffer_head * );
256260
@@ -259,7 +263,8 @@ struct hpfs_dirent *map_fnode_dirent(struct super_block *, fnode_secno, struct f
259263void hpfs_ea_ext_remove (struct super_block * , secno , int , unsigned );
260264int hpfs_read_ea (struct super_block * , struct fnode * , char * , char * , int );
261265char * hpfs_get_ea (struct super_block * , struct fnode * , char * , int * );
262- void hpfs_set_ea (struct inode * , struct fnode * , char * , char * , int );
266+ void hpfs_set_ea (struct inode * , struct fnode * , const char * ,
267+ const char * , int );
263268
264269/* file.c */
265270
@@ -282,7 +287,7 @@ void hpfs_delete_inode(struct inode *);
282287
283288unsigned * hpfs_map_dnode_bitmap (struct super_block * , struct quad_buffer_head * );
284289unsigned * hpfs_map_bitmap (struct super_block * , unsigned , struct quad_buffer_head * , char * );
285- char * hpfs_load_code_page (struct super_block * , secno );
290+ unsigned char * hpfs_load_code_page (struct super_block * , secno );
286291secno * hpfs_load_bitmap_directory (struct super_block * , secno bmp );
287292struct fnode * hpfs_map_fnode (struct super_block * s , ino_t , struct buffer_head * * );
288293struct anode * hpfs_map_anode (struct super_block * s , anode_secno , struct buffer_head * * );
@@ -292,12 +297,13 @@ dnode_secno hpfs_fnode_dno(struct super_block *s, ino_t ino);
292297/* name.c */
293298
294299unsigned char hpfs_upcase (unsigned char * , unsigned char );
295- int hpfs_chk_name (unsigned char * , unsigned * );
296- char * hpfs_translate_name (struct super_block * , unsigned char * , unsigned , int , int );
297- int hpfs_compare_names (struct super_block * , unsigned char * , unsigned , unsigned char * , unsigned , int );
298- int hpfs_is_name_long (unsigned char * , unsigned );
299- void hpfs_adjust_length (unsigned char * , unsigned * );
300- void hpfs_decide_conv (struct inode * , unsigned char * , unsigned );
300+ int hpfs_chk_name (const unsigned char * , unsigned * );
301+ unsigned char * hpfs_translate_name (struct super_block * , unsigned char * , unsigned , int , int );
302+ int hpfs_compare_names (struct super_block * , const unsigned char * , unsigned ,
303+ const unsigned char * , unsigned , int );
304+ int hpfs_is_name_long (const unsigned char * , unsigned );
305+ void hpfs_adjust_length (const unsigned char * , unsigned * );
306+ void hpfs_decide_conv (struct inode * , const unsigned char * , unsigned );
301307
302308/* namei.c */
303309
0 commit comments