[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 09/20: libdiskfs: declare all inline functions as `extern inline'
From: |
Samuel Thibault |
Subject: |
[hurd] 09/20: libdiskfs: declare all inline functions as `extern inline' |
Date: |
Sat, 23 May 2015 05:09:41 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit e00a105ff35ee53bfd6caeb6f29c47d8ed7cf3ab
Author: Justus Winter <address@hidden>
Date: Fri Apr 17 17:44:07 2015 +0200
libdiskfs: declare all inline functions as `extern inline'
* libdiskfs/diskfs.h (diskfs_node_disknode, diskfs_disknode_node):
Declare functions as `extern inline' so that we can use them in other
functions declared as `extern inline'.
---
libdiskfs/diskfs.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 7a21dff..8ab6142 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -697,9 +697,11 @@ struct node *diskfs_make_node_alloc (size_t size);
this value for offset calculations. */
extern const size_t _diskfs_sizeof_struct_node;
+#if defined(__USE_EXTERN_INLINES) || defined(DISKFS_DEFINE_EXTERN_INLINE)
+
/* Return the address of the disknode for NODE. NODE must have been
allocated using diskfs_make_node_alloc. */
-static inline struct disknode *
+DISKFS_EXTERN_INLINE struct disknode *
diskfs_node_disknode (struct node *node)
{
return (struct disknode *) ((char *) node + _diskfs_sizeof_struct_node);
@@ -707,12 +709,14 @@ diskfs_node_disknode (struct node *node)
/* Return the address of the node for DISKNODE. DISKNODE must have
been allocated using diskfs_make_node_alloc. */
-static inline struct node *
+DISKFS_EXTERN_INLINE struct node *
diskfs_disknode_node (struct disknode *disknode)
{
return (struct node *) ((char *) disknode - _diskfs_sizeof_struct_node);
}
+#endif /* Use extern inlines. */
+
/* The library also exports the following functions; they are not generally
useful unless you are redefining other functions the library provides. */
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (b69862c -> eef94c4), Samuel Thibault, 2015/05/23
- [hurd] 06/20: libdiskfs: make struct node more compact, Samuel Thibault, 2015/05/23
- [hurd] 07/20: libdiskfs: drop unused fields from struct node, Samuel Thibault, 2015/05/23
- [hurd] 08/20: libdiskfs: fix node initialization, Samuel Thibault, 2015/05/23
- [hurd] 14/20: Fix creating named sockets inside fakeroot-hurd, Samuel Thibault, 2015/05/23
- [hurd] 09/20: libdiskfs: declare all inline functions as `extern inline',
Samuel Thibault <=
- [hurd] 20/20: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2015/05/23
- [hurd] 18/20: Make comment clearer, Samuel Thibault, 2015/05/23
- [hurd] 19/20: fakeroot: Fix reopening files after a chmod, Samuel Thibault, 2015/05/23
- [hurd] 16/20: fatfs: fix error handling, Samuel Thibault, 2015/05/23
- [hurd] 15/20: libdiskfs: fix renaming of directories, Samuel Thibault, 2015/05/23
- [hurd] 17/20: Make sure to record only RWX open modes, Samuel Thibault, 2015/05/23
- [hurd] 01/20: ext2fs: use a seperate lock to protect nodehash, Samuel Thibault, 2015/05/23
- [hurd] 04/20: tmpfs: use a seperate lock to protect all_nodes, Samuel Thibault, 2015/05/23
- [hurd] 03/20: isofs: use a seperate lock to protect node_cache, Samuel Thibault, 2015/05/23
- [hurd] 13/20: fatfs: port to libdiskfs' node cache, Samuel Thibault, 2015/05/23