History

scripts/dtc: Update to upstream version v1.6.1-66-gabbd523bae6e

This adds the following commits from upstream: abbd523bae6e pylibfdt: Work-around SWIG limitations with flexible arrays a41509bea3e7 libfdt: Replace deprecated 0-length arrays with proper flexible arrays 2cd89f862cdb dtc: Warning rather than error on possible truncation of cell values

Rob Herring committed 3 years ago

Commit ec340071 parent 20f6d4f3 files · +11 −6Browse files

Showing the changes to scripts (3 of 3 files). Show all

Unified · Split

3 files
  1. scripts/dtc/dtc-parser.y +8 −3
  2. scripts/dtc/libfdt/fdt.h +2 −2
  3. scripts/dtc/version_gen.h +1 −1
scripts/dtc/dtc-parser.y+8−3
@@ -404,9 +404,14 @@ arrayprefix: · 403 unmodified lines
404404 * within the mask to one (i.e. | in the
405405 * mask), all bits are one.
406406 */
407− if (($2 > mask) && (($2 | mask) != -1ULL))
408− ERROR(&@2, "Value out of range for"
409− " %d-bit array element", $1.bits);
407+ if (($2 > mask) && (($2 | mask) != -1ULL)) {
408+ char *loc = srcpos_string(&@2);
409+ fprintf(stderr,
410+ "WARNING: %s: Value 0x%016" PRIx64
411+ " truncated to 0x%0*" PRIx64 "\n",
412+ loc, $2, $1.bits / 4, ($2 & mask));
413+ free(loc);
414+ }
410415 }
411416
412417 $$.data = data_append_integer($1.data, $2, $1.bits);
scripts/dtc/libfdt/fdt.h+2−2
@@ -35,14 +35,14 @@ struct fdt_reserve_entry { · 34 unmodified lines
3535
3636 struct fdt_node_header {
3737 fdt32_t tag;
38− char name[0];
38+ char name[];
3939 };
4040
4141 struct fdt_property {
4242 fdt32_t tag;
4343 fdt32_t len;
4444 fdt32_t nameoff;
45− char data[0];
45+ char data[];
4646 };
4747
4848 #endif /* !__ASSEMBLY */
scripts/dtc/version_gen.h+1−1
@@ -1 +1 @@
1−#define DTC_VERSION "DTC 1.6.1-g55778a03"
1+#define DTC_VERSION "DTC 1.6.1-gabbd523b"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t