Skip to content

Commit

Permalink
dlm: match signedness between dlm_config_info and cluster_set
Browse files Browse the repository at this point in the history
cluster_set is only called from the macro CLUSTER_ATTR which defines read/write
access functions.  Make the signedness match to avoid sparse warnings every time
CLUSTER_ATTR is used (lines 149-159) all of the form:

fs/dlm/config.c:149:1: warning: incorrect type in argument 3 (different signedness)
fs/dlm/config.c:149:1:    expected unsigned int *info_field
fs/dlm/config.c:149:1:    got int extern [toplevel] *<noident>

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Harvey Harrison authored and David Teigland committed Apr 21, 2008
1 parent 3925e6f commit 5416b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/dlm/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct cluster_attribute {
};

static ssize_t cluster_set(struct cluster *cl, unsigned int *cl_field,
unsigned int *info_field, int check_zero,
int *info_field, int check_zero,
const char *buf, size_t len)
{
unsigned int x;
Expand Down

0 comments on commit 5416b70

Please sign in to comment.