diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-04 14:48:37 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-04 14:48:37 -0400 |
| commit | 38c60ef228596c8e331437ea9287ce035706b107 (patch) | |
| tree | e54d14229904e3abc7a6cf2176bc150bded3ad07 /include/linux | |
| parent | 82ffa51637f9239aaddd3151fb0d41c657f760db (diff) | |
[GFS2] Use const in endian conversion routines
Use const in endian conversion and printing of on-disk structures.
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/gfs2_ondisk.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index 3ebd8743ce8c..a7ae7c177cac 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
| @@ -413,30 +413,30 @@ struct gfs2_quota_change { | |||
| 413 | #ifdef __KERNEL__ | 413 | #ifdef __KERNEL__ |
| 414 | /* Translation functions */ | 414 | /* Translation functions */ |
| 415 | 415 | ||
| 416 | extern void gfs2_inum_in(struct gfs2_inum *no, char *buf); | 416 | extern void gfs2_inum_in(struct gfs2_inum *no, const void *buf); |
| 417 | extern void gfs2_inum_out(const struct gfs2_inum *no, char *buf); | 417 | extern void gfs2_inum_out(const struct gfs2_inum *no, void *buf); |
| 418 | extern void gfs2_sb_in(struct gfs2_sb *sb, char *buf); | 418 | extern void gfs2_sb_in(struct gfs2_sb *sb, const void *buf); |
| 419 | extern void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf); | 419 | extern void gfs2_rindex_in(struct gfs2_rindex *ri, const void *buf); |
| 420 | extern void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf); | 420 | extern void gfs2_rindex_out(const struct gfs2_rindex *ri, void *buf); |
| 421 | extern void gfs2_rgrp_in(struct gfs2_rgrp *rg, char *buf); | 421 | extern void gfs2_rgrp_in(struct gfs2_rgrp *rg, const void *buf); |
| 422 | extern void gfs2_rgrp_out(struct gfs2_rgrp *rg, char *buf); | 422 | extern void gfs2_rgrp_out(const struct gfs2_rgrp *rg, void *buf); |
| 423 | extern void gfs2_quota_in(struct gfs2_quota *qu, char *buf); | 423 | extern void gfs2_quota_in(struct gfs2_quota *qu, const void *buf); |
| 424 | extern void gfs2_quota_out(struct gfs2_quota *qu, char *buf); | 424 | extern void gfs2_quota_out(const struct gfs2_quota *qu, void *buf); |
| 425 | extern void gfs2_dinode_in(struct gfs2_dinode *di, char *buf); | 425 | extern void gfs2_dinode_in(struct gfs2_dinode *di, const void *buf); |
| 426 | extern void gfs2_dinode_out(struct gfs2_dinode *di, char *buf); | 426 | extern void gfs2_dinode_out(const struct gfs2_dinode *di, void *buf); |
| 427 | extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, char *buf); | 427 | extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, const void *buf); |
| 428 | extern void gfs2_ea_header_out(struct gfs2_ea_header *ea, char *buf); | 428 | extern void gfs2_ea_header_out(const struct gfs2_ea_header *ea, void *buf); |
| 429 | extern void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf); | 429 | extern void gfs2_log_header_in(struct gfs2_log_header *lh, const void *buf); |
| 430 | extern void gfs2_inum_range_in(struct gfs2_inum_range *ir, char *buf); | 430 | extern void gfs2_inum_range_in(struct gfs2_inum_range *ir, const void *buf); |
| 431 | extern void gfs2_inum_range_out(struct gfs2_inum_range *ir, char *buf); | 431 | extern void gfs2_inum_range_out(const struct gfs2_inum_range *ir, void *buf); |
| 432 | extern void gfs2_statfs_change_in(struct gfs2_statfs_change *sc, char *buf); | 432 | extern void gfs2_statfs_change_in(struct gfs2_statfs_change *sc, const void *buf); |
| 433 | extern void gfs2_statfs_change_out(struct gfs2_statfs_change *sc, char *buf); | 433 | extern void gfs2_statfs_change_out(const struct gfs2_statfs_change *sc, void *buf); |
| 434 | extern void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf); | 434 | extern void gfs2_quota_change_in(struct gfs2_quota_change *qc, const void *buf); |
| 435 | 435 | ||
| 436 | /* Printing functions */ | 436 | /* Printing functions */ |
| 437 | 437 | ||
| 438 | extern void gfs2_rindex_print(struct gfs2_rindex *ri); | 438 | extern void gfs2_rindex_print(const struct gfs2_rindex *ri); |
| 439 | extern void gfs2_dinode_print(struct gfs2_dinode *di); | 439 | extern void gfs2_dinode_print(const struct gfs2_dinode *di); |
| 440 | 440 | ||
| 441 | #endif /* __KERNEL__ */ | 441 | #endif /* __KERNEL__ */ |
| 442 | 442 | ||
