Skip to content

Commit

Permalink
[XFS] Replace __inline with inline
Browse files Browse the repository at this point in the history
Remove the remaining uses of __inline in the XFS code base.

SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30774a

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
  • Loading branch information
Harvey Harrison authored and Lachlan McIlroy committed Apr 18, 2008
1 parent 6b1d1a7 commit 0225da1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_cred.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef struct cred {
extern struct cred *sys_cred;

/* this is a hack.. (assumes sys_cred is the only cred_t in the system) */
static __inline int capable_cred(cred_t *cr, int cid)
static inline int capable_cred(cred_t *cr, int cid)
{
return (cr == sys_cred) ? 1 : capable(cid);
}
Expand Down
4 changes: 2 additions & 2 deletions fs/xfs/linux-2.6/xfs_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ extern void xfs_cleanup_procfs(void);
# define XFS_STATS_DEC(count)
# define XFS_STATS_ADD(count, inc)

static __inline void xfs_init_procfs(void) { };
static __inline void xfs_cleanup_procfs(void) { };
static inline void xfs_init_procfs(void) { };
static inline void xfs_cleanup_procfs(void) { };

#endif /* !CONFIG_PROC_FS */

Expand Down
4 changes: 2 additions & 2 deletions fs/xfs/quota/xfs_qm_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ extern void xfs_qm_cleanup_procfs(void);

# define XQM_STATS_INC(count) do { } while (0)

static __inline void xfs_qm_init_procfs(void) { };
static __inline void xfs_qm_cleanup_procfs(void) { };
static inline void xfs_qm_init_procfs(void) { };
static inline void xfs_qm_cleanup_procfs(void) { };

#endif

Expand Down

0 comments on commit 0225da1

Please sign in to comment.