Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libmpathutil: explicitly annotate {get,put}_multipath_config as weak #86

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libmpathutil/globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#include <libudev.h>
#include "globals.h"

struct config *get_multipath_config(void)
__attribute__((weak)) struct config *get_multipath_config(void)
{
return NULL;
}

void put_multipath_config(void *p __attribute__((unused)))
__attribute__((weak)) void put_multipath_config(void *p __attribute__((unused)))
{}
4 changes: 2 additions & 2 deletions libmultipath/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ struct config *libmp_get_multipath_config(void)
}

struct config *get_multipath_config(void)
__attribute__((alias("libmp_get_multipath_config")));
__attribute__((weak, alias("libmp_get_multipath_config")));

void libmp_put_multipath_config(void *conf __attribute__((unused)))
{
/* empty */
}

void put_multipath_config(void *conf)
__attribute__((alias("libmp_put_multipath_config")));
__attribute__((weak, alias("libmp_put_multipath_config")));

static int
hwe_strmatch (const struct hwentry *hwe1, const struct hwentry *hwe2)
Expand Down
Loading