* multipath-tool: gcc warnings
@ 2013-01-12 17:00 Xose Vazquez Perez
2013-01-12 19:22 ` Christophe Varoqui
0 siblings, 1 reply; 3+ messages in thread
From: Xose Vazquez Perez @ 2013-01-12 17:00 UTC (permalink / raw)
To: device-mapper development, christophe.varoqui
hi,
I built multipath-tool with -Wextra and gcc shows a lot
of warnings. But I believe two of them are relevant:
log_pthread.c:37:3: warning: implicit declaration of function ‘syslog’ [-Wimplicit-function-declaration]
- missing header <syslog.h>
dasd.c:233:4: warning: comparison is always false due to limited range of data type [-Wtype-limits]
- wrong type
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: multipath-tool: gcc warnings
2013-01-12 17:00 multipath-tool: gcc warnings Xose Vazquez Perez
@ 2013-01-12 19:22 ` Christophe Varoqui
2013-01-14 8:46 ` Stefan Weinhuber
0 siblings, 1 reply; 3+ messages in thread
From: Christophe Varoqui @ 2013-01-12 19:22 UTC (permalink / raw)
To: wein, Xose Vazquez Perez; +Cc: device-mapper development
On sam., 2013-01-12 at 18:00 +0100, Xose Vazquez Perez wrote:
> hi,
>
> I built multipath-tool with -Wextra and gcc shows a lot
> of warnings. But I believe two of them are relevant:
...
> dasd.c:233:4: warning: comparison is always false due to limited range of data type [-Wtype-limits]
> - wrong type
Stephan,
would you approve this patch to the kpartx dasd parser you contributed
back in 2009 ?
diff --git a/kpartx/dasd.h b/kpartx/dasd.h
index 0ed7c80..42f94db 100644
--- a/kpartx/dasd.h
+++ b/kpartx/dasd.h
@@ -68,7 +68,7 @@ typedef struct volume_label
char res2[4]; /* reserved */
char lvtoc[14]; /* owner code for LVTOC */
char res3[28]; /* reserved */
- char ldl_version; /* version number, valid for ldl format */
+ uint8_t ldl_version; /* version number, valid for ldl format */
uint64_t formatted_blocks; /* valid when ldl_version >= f2 */
} __attribute__ ((packed)) volume_label_t;
Best regards,
Christophe Varoqui
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: multipath-tool: gcc warnings
2013-01-12 19:22 ` Christophe Varoqui
@ 2013-01-14 8:46 ` Stefan Weinhuber
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Weinhuber @ 2013-01-14 8:46 UTC (permalink / raw)
To: christophe.varoqui; +Cc: device-mapper development, Xose Vazquez Perez
Christophe Varoqui <christophe.varoqui@gmail.com> wrote on 2013-01-12
20:22:02:
> On sam., 2013-01-12 at 18:00 +0100, Xose Vazquez Perez wrote:
> > hi,
> >
> > I built multipath-tool with -Wextra and gcc shows a lot
> > of warnings. But I believe two of them are relevant:
> ...
> > dasd.c:233:4: warning: comparison is always false due to limited
> range of data type [-Wtype-limits]
> > - wrong type
>
> Stephan,
>
> would you approve this patch to the kpartx dasd parser you contributed
> back in 2009 ?
>
> diff --git a/kpartx/dasd.h b/kpartx/dasd.h
> index 0ed7c80..42f94db 100644
> --- a/kpartx/dasd.h
> +++ b/kpartx/dasd.h
> @@ -68,7 +68,7 @@ typedef struct volume_label
> char res2[4]; /* reserved */
> char lvtoc[14]; /* owner code for LVTOC */
> char res3[28]; /* reserved */
> - char ldl_version; /* version number, valid for ldl
> format */
> + uint8_t ldl_version; /* version number, valid for ldl
> format */
> uint64_t formatted_blocks; /* valid when ldl_version >= f2 */
> } __attribute__ ((packed)) volume_label_t;
>
>
> Best regards,
> Christophe Varoqui
>
Hi Christophe,
yes,the change looks fine to me, thanks!
Mit freundlichen Grüßen / Kind regards
Stefan Weinhuber
--
Linux for zSeries kernel development
IBM Systems &Technology Group, Systems Software Development / SW Linux für
zSeries Entwicklung
IBM Deutschland
Schoenaicher Str. 220
71032 Boeblingen
Phone: +49-7031-16-4018
E-Mail: wein@de.ibm.com
IBM Deutschland Research & Development GmbH / Vorsitzender des
Aufsichtsrats: Martina Koederitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart,
HRB 243294
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-14 8:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-12 17:00 multipath-tool: gcc warnings Xose Vazquez Perez
2013-01-12 19:22 ` Christophe Varoqui
2013-01-14 8:46 ` Stefan Weinhuber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.