HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
src/superio: Add missing '#include <stddef.h>'
size_t needs <stddef.h>.
Change-Id: Ic6ffeb3881ee581c5e5b5d614dfd6efda2e5b2c2 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/superio/aspeed/ast2400/superio.c M src/superio/smsc/sch5545/sch5545_emi.c M src/superio/smsc/sch5545/sch5545_emi.h 3 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/43942/1
diff --git a/src/superio/aspeed/ast2400/superio.c b/src/superio/aspeed/ast2400/superio.c index 4510c21..1c6e436 100644 --- a/src/superio/aspeed/ast2400/superio.c +++ b/src/superio/aspeed/ast2400/superio.c @@ -6,6 +6,8 @@ #include <pc80/keyboard.h> #include <superio/common/ssdt.h> #include <acpi/acpi.h> +#include <stddef.h> + #include "ast2400.h" #include "chip.h"
diff --git a/src/superio/smsc/sch5545/sch5545_emi.c b/src/superio/smsc/sch5545/sch5545_emi.c index 2bb150c..8031129 100644 --- a/src/superio/smsc/sch5545/sch5545_emi.c +++ b/src/superio/smsc/sch5545/sch5545_emi.c @@ -5,6 +5,7 @@ #include <device/pnp.h> #include <device/pnp_def.h> #include <device/pnp_ops.h> +#include <stddef.h> #include <superio/conf_mode.h>
#include "sch5545.h" diff --git a/src/superio/smsc/sch5545/sch5545_emi.h b/src/superio/smsc/sch5545/sch5545_emi.h index 2bf3a76..5b622de 100644 --- a/src/superio/smsc/sch5545/sch5545_emi.h +++ b/src/superio/smsc/sch5545/sch5545_emi.h @@ -3,6 +3,7 @@ #ifndef SUPERIO_SCH_5545_EMI_H #define SUPERIO_SCH_5545_EMI_H
+#include <stddef.h> #include <stdlib.h> #include <stdint.h>
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Patch Set 1:
(3 comments)
I've added comments to make the review easy
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/aspeed/ast2400/... File src/superio/aspeed/ast2400/superio.c:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/aspeed/ast2400/... PS1, Line 96: size_t stddef
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.h:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 141: size_t stddef
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.c:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 179: size_t stddef
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Patch Set 1: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.h:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 6: #include <stddef.h> add types.h?
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.c:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 30: uint8_t stdint
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.c:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 30: uint8_t
stdint
not related
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.h:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 6: #include <stddef.h>
add types. […]
types will include more than 6 headers. maybe we don't need them all here.
please see https://review.coreboot.org/c/coreboot/+/43952 Thx
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.h:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 6: #include <stddef.h>
types will include more than 6 headers. […]
I'd rather use a single #include <types.h> than have multiple included headers and the risk of inadvertently relying on indirect inclusion from other files.
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... File src/superio/smsc/sch5545/sch5545_emi.h:
https://review.coreboot.org/c/coreboot/+/43942/1/src/superio/smsc/sch5545/sc... PS1, Line 6: #include <stddef.h>
I'd rather use a single #include <types. […]
sorry I will not in current patch.
Hello build bot (Jenkins), Felix Held,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43942
to look at the new patch set (#2).
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
src/superio: Add missing '#include <stddef.h>'
size_t needs <stddef.h>.
Change-Id: Ic6ffeb3881ee581c5e5b5d614dfd6efda2e5b2c2 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/superio/aspeed/ast2400/superio.c M src/superio/smsc/sch5545/sch5545_emi.c M src/superio/smsc/sch5545/sch5545_emi.h 3 files changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/43942/2
HAOUAS Elyes has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/43942 )
Change subject: src/superio: Add missing '#include <stddef.h>' ......................................................................
Abandoned