* [PATCH 1/2] state: fix pointer signess mismach warning @ 2015-04-30 14:06 Marc Kleine-Budde 2015-04-30 14:06 ` [PATCH 2/2] RFC: state: work around pointer signess mismach warnings Marc Kleine-Budde 0 siblings, 1 reply; 3+ messages in thread From: Marc Kleine-Budde @ 2015-04-30 14:06 UTC (permalink / raw) To: barebox Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> --- common/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/state.c b/common/state.c index b677a9f01d25..637a15c66ad0 100644 --- a/common/state.c +++ b/common/state.c @@ -47,7 +47,7 @@ struct state { struct list_head list; struct state_backend *backend; uint32_t magic; - unsigned int dirty; + int dirty; }; struct state_backend { -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] RFC: state: work around pointer signess mismach warnings 2015-04-30 14:06 [PATCH 1/2] state: fix pointer signess mismach warning Marc Kleine-Budde @ 2015-04-30 14:06 ` Marc Kleine-Budde 0 siblings, 0 replies; 3+ messages in thread From: Marc Kleine-Budde @ 2015-04-30 14:06 UTC (permalink / raw) To: barebox Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> --- common/state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/state.c b/common/state.c index 637a15c66ad0..1b4a43be585c 100644 --- a/common/state.c +++ b/common/state.c @@ -162,7 +162,7 @@ static struct state_variable *state_uint32_create(struct state *state, su32 = xzalloc(sizeof(*su32)); param = dev_add_param_int(&state->dev, name, state_set_dirty, - NULL, &su32->value, "%d", state); + NULL, (int *)&su32->value, "%d", state); if (IS_ERR(param)) { free(su32); return ERR_CAST(param); @@ -278,7 +278,7 @@ static struct state_variable *state_enum32_create(struct state *state, } enum32->param = dev_add_param_enum(&state->dev, name, state_set_dirty, - NULL, &enum32->value, enum32->names, num_names, state); + NULL, (int *)&enum32->value, enum32->names, num_names, state); if (IS_ERR(enum32->param)) { ret = PTR_ERR(enum32->param); goto out; -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] state: fix pointer signess mismach warning @ 2015-04-22 7:35 Marc Kleine-Budde 0 siblings, 0 replies; 3+ messages in thread From: Marc Kleine-Budde @ 2015-04-22 7:35 UTC (permalink / raw) To: barebox Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> --- common/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/state.c b/common/state.c index b677a9f01d25..637a15c66ad0 100644 --- a/common/state.c +++ b/common/state.c @@ -47,7 +47,7 @@ struct state { struct list_head list; struct state_backend *backend; uint32_t magic; - unsigned int dirty; + int dirty; }; struct state_backend { -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-30 14:06 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-04-30 14:06 [PATCH 1/2] state: fix pointer signess mismach warning Marc Kleine-Budde 2015-04-30 14:06 ` [PATCH 2/2] RFC: state: work around pointer signess mismach warnings Marc Kleine-Budde -- strict thread matches above, loose matches on Subject: below -- 2015-04-22 7:35 [PATCH 1/2] state: fix pointer signess mismach warning Marc Kleine-Budde
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox