diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-03 01:53:17 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-03 01:53:17 +0100 |
commit | 89abef408f02e463cfe9d462fa10be64a94b3b36 (patch) | |
tree | 74881e20527766c31b7bb6007fa4e3a26a9adf04 /libdiskfs | |
parent | bd611d2bbd2a7faa24ce8d3b1a422cebb8f71e8b (diff) |
Fix optional definitions in static binaries
* libcons/extra-version.c (cons_extra_version): Add weak attribute.
* libcons/vcons-add.c (cons_vcons_add): Likewise.
* libcons/vcons-remove.c (cons_vcons_remove): Likewise.
* libdiskfs/extra-version.c (diskfs_extra_version): Likewise.
* libdiskfs/get-source.c (diskfs_get_source): Likewise.
* libdiskfs/readonly-changed.c (diskfs_readonly_changed): Likewise.
* libdiskfs/sync-default.c (diskfs_default_sync_interval): Likewise.
* libdiskfs/validate-author.c (diskfs_validate_author_change): Likewise.
* libdiskfs/validate-flags.c (diskfs_validate_flags_change): Likewise.
* libdiskfs/validate-group.c (diskfs_validate_group_change): Likewise.
* libdiskfs/validate-mode.c (diskfs_validate_mode_change): Likewise.
* libdiskfs/validate-owner.c (diskfs_validate_owner_change): Likewise.
* libdiskfs/validate-rdev.c (diskfs_validate_rdev_change): Likewise.
* libnetfs/file-get-storage-info-default.c (netfs_file_get_storage_info):
Likewise.
* libnetfs/get-source.c (netfs_get_source): Likewise.
* libnetfs/set-get-trans.c (netfs_set_translator, netfs_get_translator):
Likewise.
* libtrivfs/get-source.c (trivfs_get_source): Likewise.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/extra-version.c | 2 | ||||
-rw-r--r-- | libdiskfs/get-source.c | 2 | ||||
-rw-r--r-- | libdiskfs/readonly-changed.c | 2 | ||||
-rw-r--r-- | libdiskfs/sync-default.c | 2 | ||||
-rw-r--r-- | libdiskfs/validate-author.c | 2 | ||||
-rw-r--r-- | libdiskfs/validate-flags.c | 2 | ||||
-rw-r--r-- | libdiskfs/validate-group.c | 2 | ||||
-rw-r--r-- | libdiskfs/validate-mode.c | 2 | ||||
-rw-r--r-- | libdiskfs/validate-owner.c | 2 | ||||
-rw-r--r-- | libdiskfs/validate-rdev.c | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/libdiskfs/extra-version.c b/libdiskfs/extra-version.c index b1d78084..51920aa7 100644 --- a/libdiskfs/extra-version.c +++ b/libdiskfs/extra-version.c @@ -21,4 +21,4 @@ #include "priv.h" -char *diskfs_extra_version = ""; +char *diskfs_extra_version __attribute__ ((weak)) = ""; diff --git a/libdiskfs/get-source.c b/libdiskfs/get-source.c index 43994464..2ef8ebcd 100644 --- a/libdiskfs/get-source.c +++ b/libdiskfs/get-source.c @@ -21,7 +21,7 @@ #include "priv.h" -error_t +error_t __attribute__ ((weak)) diskfs_get_source (struct protid *cred, char *source, size_t source_len) { if (diskfs_disk_name == NULL) diff --git a/libdiskfs/readonly-changed.c b/libdiskfs/readonly-changed.c index 44ee9225..7a1c03e8 100644 --- a/libdiskfs/readonly-changed.c +++ b/libdiskfs/readonly-changed.c @@ -24,7 +24,7 @@ changed from read-only to read-write mode or vice-versa. READONLY is the new state (which is also reflected in DISKFS_READONLY). This function is also called during initial startup if the filesystem is to be writable. */ -void +void __attribute__ ((weak)) diskfs_readonly_changed (int readonly) { /* By default do nothing at all. */ diff --git a/libdiskfs/sync-default.c b/libdiskfs/sync-default.c index 0d1fd93b..9646dd69 100644 --- a/libdiskfs/sync-default.c +++ b/libdiskfs/sync-default.c @@ -20,4 +20,4 @@ #include "priv.h" -int diskfs_default_sync_interval = DEFAULT_SYNC_INTERVAL; +int diskfs_default_sync_interval __attribute__ ((weak)) = DEFAULT_SYNC_INTERVAL; diff --git a/libdiskfs/validate-author.c b/libdiskfs/validate-author.c index d7dacabd..cacfbfa4 100644 --- a/libdiskfs/validate-author.c +++ b/libdiskfs/validate-author.c @@ -20,7 +20,7 @@ #include "priv.h" -error_t +error_t __attribute__ ((weak)) diskfs_validate_author_change (struct node *np, uid_t author) { return 0; diff --git a/libdiskfs/validate-flags.c b/libdiskfs/validate-flags.c index bb54dadd..0673ad8a 100644 --- a/libdiskfs/validate-flags.c +++ b/libdiskfs/validate-flags.c @@ -20,7 +20,7 @@ #include "priv.h" -error_t +error_t __attribute__ ((weak)) diskfs_validate_flags_change (struct node *np, int flags) { return 0; diff --git a/libdiskfs/validate-group.c b/libdiskfs/validate-group.c index 556c5aaa..ef296ce1 100644 --- a/libdiskfs/validate-group.c +++ b/libdiskfs/validate-group.c @@ -20,7 +20,7 @@ #include "priv.h" -error_t +error_t __attribute__ ((weak)) diskfs_validate_group_change (struct node *np, gid_t group) { return 0; diff --git a/libdiskfs/validate-mode.c b/libdiskfs/validate-mode.c index 1cf150e6..bfcc9420 100644 --- a/libdiskfs/validate-mode.c +++ b/libdiskfs/validate-mode.c @@ -20,7 +20,7 @@ #include "priv.h" -error_t +error_t __attribute__ ((weak)) diskfs_validate_mode_change (struct node *np, mode_t mode) { return 0; diff --git a/libdiskfs/validate-owner.c b/libdiskfs/validate-owner.c index 0cbe296c..7bb30402 100644 --- a/libdiskfs/validate-owner.c +++ b/libdiskfs/validate-owner.c @@ -20,7 +20,7 @@ #include "priv.h" -error_t +error_t __attribute__ ((weak)) diskfs_validate_owner_change (struct node *np, uid_t uid) { return 0; diff --git a/libdiskfs/validate-rdev.c b/libdiskfs/validate-rdev.c index 2d766346..0d506676 100644 --- a/libdiskfs/validate-rdev.c +++ b/libdiskfs/validate-rdev.c @@ -20,7 +20,7 @@ #include "priv.h" -error_t +error_t __attribute__ ((weak)) diskfs_validate_rdev_change (struct node *np, dev_t rdev) { return 0; |