Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(QPG): Enable -Wundef and fix any errors for qpg based builds #29617

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

tima-q
Copy link
Contributor

@tima-q tima-q commented Oct 6, 2023

#29591 uncovered errors raised by -Wundef.

This PR addresses all issues found by -Wundef.
Note -Wundef is not enabled by default yet in all builds - flag added to qpg specific gn configuration.

Tested:

  • Added -Wundef in third_party/qpg_sdk/qpg_sdk.gni
  • CI builds pass

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

PR #29617: Size comparison from 2d07e21 to 75afa04

Full report (1 build for cc32xx)
platform target config section 2d07e21 75afa04 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 617402 617402 0 0.0
(read/write) 206900 206900 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 200344 200344 0 0.0
.comment 206 206 0 0.0
.data 1436 1436 0 0.0
.debug_abbrev 936170 936170 0 0.0
.debug_aranges 107568 107568 0 0.0
.debug_frame 363232 363232 0 0.0
.debug_info 20609028 20609028 0 0.0
.debug_line 2651503 2651503 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1589400 1589400 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 111113 111113 0 0.0
.debug_str 3398309 3398309 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106282 106282 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 511253 511253 0 0.0
.symtab 296960 296960 0 0.0
.text 509000 509000 0 0.0

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

PR #29617: Size comparison from 2d07e21 to ecabdb6

Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 2d07e21 ecabdb6 change % change
bl602 lighting-app bl602 (read/write) 1388890 1388890 0 0.0
.bss 88176 88176 0 0.0
.data 9368 9368 0 0.0
.text 1065514 1065514 0 0.0
bl602+mfd (read/write) 1402794 1402794 0 0.0
.bss 88344 88344 0 0.0
.data 9344 9344 0 0.0
.text 1080320 1080320 0 0.0
bl602+rpc (read/write) 1436150 1436150 0 0.0
.bss 96200 96200 0 0.0
.data 9744 9744 0 0.0
.text 1097246 1097246 0 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1192387 1192387 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 30893 30893 0 0.0
.bss_psram 65744 65744 0 0.0
.comment 48 48 0 0.0
.data 3568 3568 0 0.0
.debug_abbrev 1548020 1548020 0 0.0
.debug_aranges 138440 138440 0 0.0
.debug_frame 507928 507928 0 0.0
.debug_info 41814461 41814461 0 0.0
.debug_line 5319956 5319956 0 0.0
.debug_loc 3522177 3522177 0 0.0
.debug_ranges 403728 403728 0 0.0
.debug_str 3978220 3978220 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106380 106380 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 596905 596905 0 0.0
.symtab 177280 177280 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
959750 959750 0 0.0
bl702+mfd (read only) 3358 3358 0 0.0
(read/write) 1202963 1202963 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 31069 31069 0 0.0
.bss_psram 65744 65744 0 0.0
.comment 48 48 0 0.0
.data 3544 3544 0 0.0
.debug_abbrev 1550093 1550093 0 0.0
.debug_aranges 139608 139608 0 0.0
.debug_frame 513000 513000 0 0.0
.debug_info 41855079 41855079 0 0.0
.debug_line 5359343 5359343 0 0.0
.debug_loc 3560608 3560608 0 0.0
.debug_ranges 405728 405728 0 0.0
.debug_str 3983751 3983751 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 105320 105320 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 600665 600665 0 0.0
.symtab 179040 179040 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
971268 971268 0 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1291067 1291067 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 39357 39357 0 0.0
.bss_psram 65728 65728 0 0.0
.comment 48 48 0 0.0
.data 4112 4112 0 0.0
.debug_abbrev 1728914 1728914 0 0.0
.debug_aranges 147160 147160 0 0.0
.debug_frame 537276 537276 0 0.0
.debug_info 46965137 46965137 0 0.0
.debug_line 5738205 5738205 0 0.0
.debug_loc 3729270 3729270 0 0.0
.debug_ranges 431280 431280 0 0.0
.debug_str 4406805 4406805 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121520 121520 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 661918 661918 0 0.0
.symtab 196672 196672 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1033740 1033740 0 0.0
bl706-eth (read/write) 1041687 1041687 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 30006 30006 0 0.0
.bss_psram 97687 97687 0 0.0
.comment 48 48 0 0.0
.data 3248 3248 0 0.0
.debug_abbrev 1083835 1083835 0 0.0
.debug_aranges 115448 115448 0 0.0
.debug_frame 427328 427328 0 0.0
.debug_info 22566848 22566848 0 0.0
.debug_line 4252591 4252591 0 0.0
.debug_loc 3031204 3031204 0 0.0
.debug_ranges 339536 339536 0 0.0
.debug_str 3557455 3557455 0 0.0
.hbn 184 184 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 152 152 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 96080 96080 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 465200 465200 0 0.0
.symtab 139968 139968 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3338 3338 0 0.0
.text 0 0 0 0.0
785978 785978 0 0.0
bl706-wifi (read only) 3870 3870 0 0.0
(read/write) 1205662 1205662 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 14597 14597 0 0.0
.bss_psram 98455 98455 0 0.0
.comment 48 48 0 0.0
.data 3560 3560 0 0.0
.debug_abbrev 1176879 1176879 0 0.0
.debug_aranges 119624 119624 0 0.0
.debug_frame 619892 619892 0 0.0
.debug_info 23736902 23736902 0 0.0
.debug_line 4496726 4496726 0 0.0
.debug_loc 3131023 3131023 0 0.0
.debug_ranges 349352 349352 0 0.0
.debug_str 3629746 3629746 0 0.0
.hbn 468 468 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.ocram_bss 8416 8416 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 109208 109208 0 0.0
.rsvd 4 4 0 0.0
.shstrtab 297 297 0 0.0
.stack 2048 2048 0 0.0
.strtab 505927 505927 0 0.0
.symtab 152832 152832 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3870 3870 0 0.0
.text 0 0 0 0.0
953360 953360 0 0.0
bl702l lighting-app bl702l (read only) 278 278 0 0.0
(read/write) 1155528 1155528 0 0.0
.boot2 292 292 0 0.0
.bss 20368 20368 0 0.0
.bss_psram 77184 77184 0 0.0
.comment 48 48 0 0.0
.data 4512 4512 0 0.0
.debug_abbrev 1542308 1542308 0 0.0
.debug_aranges 133304 133304 0 0.0
.debug_frame 488568 488568 0 0.0
.debug_info 41272458 41272458 0 0.0
.debug_line 5223091 5223091 0 0.0
.debug_loc 3466434 3466434 0 0.0
.debug_ranges 410264 410264 0 0.0
.debug_str 4002808 4002808 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 100360 100360 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 598531 598531 0 0.0
.symtab 176720 176720 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
942564 942564 0 0.0
bl702l+mfd (read only) 278 278 0 0.0
(read/write) 1166404 1166404 0 0.0
.boot2 292 292 0 0.0
.bss 20544 20544 0 0.0
.bss_psram 77184 77184 0 0.0
.comment 48 48 0 0.0
.data 4488 4488 0 0.0
.debug_abbrev 1544396 1544396 0 0.0
.debug_aranges 134472 134472 0 0.0
.debug_frame 493636 493636 0 0.0
.debug_info 41315119 41315119 0 0.0
.debug_line 5262355 5262355 0 0.0
.debug_loc 3504865 3504865 0 0.0
.debug_ranges 412264 412264 0 0.0
.debug_str 4008329 4008329 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 99300 99300 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 602359 602359 0 0.0
.symtab 178512 178512 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
954348 954348 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 736555 736555 0 0.0
(read/write) 166444 166444 0 0.0
.bss 88860 88860 0 0.0
.data 3420 3420 0 0.0
.rodata 84399 84399 0 0.0
.text 651764 651764 0 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 757475 757475 0 0.0
(read/write) 176700 176700 0 0.0
.bss 99084 99084 0 0.0
.data 3436 3436 0 0.0
.rodata 80087 80087 0 0.0
.text 677000 677000 0 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 745011 745011 0 0.0
(read/write) 171172 171172 0 0.0
.bss 93556 93556 0 0.0
.data 3436 3436 0 0.0
.rodata 106111 106111 0 0.0
.text 638512 638512 0 0.0
pump-app LP_EM_CC1354P10_6 (read only) 695683 695683 0 0.0
(read/write) 165536 165536 0 0.0
.bss 87728 87728 0 0.0
.data 3408 3408 0 0.0
.rodata 80271 80271 0 0.0
.text 615020 615020 0 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 681395 681395 0 0.0
(read/write) 165676 165676 0 0.0
.bss 87872 87872 0 0.0
.data 3404 3404 0 0.0
.rodata 76111 76111 0 0.0
.text 604892 604892 0 0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 617402 617402 0 0.0
(read/write) 206900 206900 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 200344 200344 0 0.0
.comment 206 206 0 0.0
.data 1436 1436 0 0.0
.debug_abbrev 936170 936170 0 0.0
.debug_aranges 107568 107568 0 0.0
.debug_frame 363232 363232 0 0.0
.debug_info 20609028 20609028 0 0.0
.debug_line 2651503 2651503 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1589400 1589400 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 111113 111113 0 0.0
.debug_str 3398309 3398309 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106282 106282 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 511253 511253 0 0.0
.symtab 296960 296960 0 0.0
.text 509000 509000 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 553687 553687 0 0.0
.app_xip_area 444889 444889 0 0.0
.bss 63768 63768 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 539247 539247 0 0.0
.app_xip_area 425657 425657 0 0.0
.bss 68536 68536 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 574687 574687 0 0.0
.app_xip_area 467217 467217 0 0.0
.bss 62512 62512 0 0.0
.data 588 588 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 551063 551063 0 0.0
.app_xip_area 440497 440497 0 0.0
.bss 65512 65512 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1006764 1006764 0 0.0
.bss 171940 171940 0 0.0
.data 2684 2684 0 0.0
.text 832116 832116 0 0.0
BRD4187C (read/write) 1090896 1090896 0 0.0
.bss 196064 196064 0 0.0
.data 3268 3268 0 0.0
.text 891544 891544 0 0.0
lock-app BRD4161A+wf200 (read/write) 1104816 1104816 0 0.0
.bss 186628 186628 0 0.0
.data 2696 2696 0 0.0
.text 915472 915472 0 0.0
window-app BRD4187C (read/write) 1124404 1124404 0 0.0
.bss 168472 168472 0 0.0
.data 3140 3140 0 0.0
.text 952772 952772 0 0.0
esp32 all-clusters-app c3devkit (read only) 1163798 1163798 0 0.0
(read/write) 1701860 1701860 0 0.0
.dram0.bss 77640 77640 0 0.0
.dram0.data 13060 13060 0 0.0
.flash.rodata 268432 268432 0 0.0
.flash.text 1163798 1163798 0 0.0
.iram0.text 75244 75244 0 0.0
m5stack (read only) 1206195 1206195 0 0.0
(read/write) 551794 551794 0 0.0
.dram0.bss 84288 84288 0 0.0
.dram0.data 34020 34020 0 0.0
.flash.rodata 299868 299868 0 0.0
.flash.text 1200811 1200811 0 0.0
.iram0.text 123287 123287 0 0.0
k32w contact k32w0+release (read only) 589900 589900 0 0.0
(read/write) 87512 87512 0 0.0
.bss 70760 70760 0 0.0
.data 2128 2128 0 0.0
.text 589364 589364 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 685144 685144 0 0.0
.bss 66976 66976 0 0.0
.data 2716 2716 0 0.0
.text 571976 571976 0 0.0
light k32w0+release (read only) 589580 589580 0 0.0
(read/write) 87188 87188 0 0.0
.bss 70448 70448 0 0.0
.data 2116 2116 0 0.0
.text 589044 589044 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 776796 776796 0 0.0
.bss 76628 76628 0 0.0
.data 1928 1928 0 0.0
.text 654784 654784 0 0.0
lock k32w0+release (read only) 561092 561092 0 0.0
(read/write) 85016 85016 0 0.0
.bss 68336 68336 0 0.0
.data 2056 2056 0 0.0
.text 560556 560556 0 0.0
linux all-clusters-app debug (read only) 5506321 5506321 0 0.0
(read/write) 420552 420552 0 0.0
.bss 130480 130480 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 278848 278848 0 0.0
.dynamic 624 624 0 0.0
.got 5384 5384 0 0.0
.init 27 27 0 0.0
.init_array 1328 1328 0 0.0
.rodata 335436 335436 0 0.0
.text 4790067 4790067 0 0.0
all-clusters-minimal-app debug (read only) 4882265 4882265 0 0.0
(read/write) 232688 232688 0 0.0
.bss 126512 126512 0 0.0
.data 3760 3760 0 0.0
.data.rel.ro 95280 95280 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 270333 270333 0 0.0
.text 4380819 4380819 0 0.0
bridge-app debug (read only) 2755081 2755081 0 0.0
(read/write) 133168 133168 0 0.0
.bss 51736 51736 0 0.0
.data 3680 3680 0 0.0
.data.rel.ro 71648 71648 0 0.0
.dynamic 624 624 0 0.0
.got 4640 4640 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 213216 213216 0 0.0
.text 2364099 2364099 0 0.0
chip-tool debug (read only) 10255641 10255641 0 0.0
(read/write) 443032 443032 0 0.0
.bss 93688 93688 0 0.0
.data 4994 4994 0 0.0
.data.rel.ro 337104 337104 0 0.0
.dynamic 624 624 0 0.0
.got 5808 5808 0 0.0
.init 27 27 0 0.0
.init_array 760 760 0 0.0
.rodata 386153 386153 0 0.0
.text 9272467 9272467 0 0.0
chip-tool-ipv6only arm64 (read only) 10132892 10132892 0 0.0
(read/write) 504792 504792 0 0.0
.bss 103032 103032 0 0.0
.data 4288 4288 0 0.0
.data.rel.ro 373648 373648 0 0.0
.dynamic 512 512 0 0.0
.got 18368 18368 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 314840 314840 0 0.0
.text 9052520 9052520 0 0.0
lighting-app debug+rpc+ui (read only) 5219073 5219073 0 0.0
(read/write) 222856 222856 0 0.0
.bss 118160 118160 0 0.0
.data 4416 4416 0 0.0
.data.rel.ro 92704 92704 0 0.0
.dynamic 672 672 0 0.0
.got 5928 5928 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 336180 336180 0 0.0
.text 4640003 4640003 0 0.0
lock-app debug (read only) 4454545 4454545 0 0.0
(read/write) 203128 203128 0 0.0
.bss 113424 113424 0 0.0
.data 3648 3648 0 0.0
.data.rel.ro 79288 79288 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 246781 246781 0 0.0
.text 3998147 3998147 0 0.0
ota-provider-app debug (read only) 4118145 4118145 0 0.0
(read/write) 192064 192064 0 0.0
.bss 113568 113568 0 0.0
.data 3920 3920 0 0.0
.data.rel.ro 68656 68656 0 0.0
.dynamic 624 624 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 199997 199997 0 0.0
.text 3727587 3727587 0 0.0
ota-requestor-app debug (read only) 4205161 4205161 0 0.0
(read/write) 196280 196280 0 0.0
.bss 114592 114592 0 0.0
.data 4160 4160 0 0.0
.data.rel.ro 71632 71632 0 0.0
.dynamic 624 624 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 203229 203229 0 0.0
.text 3807043 3807043 0 0.0
shell debug (read only) 2910049 2910049 0 0.0
(read/write) 153248 153248 0 0.0
.bss 61000 61000 0 0.0
.data 784 784 0 0.0
.data.rel.ro 85544 85544 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 211136 211136 0 0.0
.text 2525474 2525474 0 0.0
thermostat-no-ble arm64 (read only) 4350604 4350604 0 0.0
(read/write) 241832 241832 0 0.0
.bss 122168 122168 0 0.0
.data 2792 2792 0 0.0
.data.rel.ro 100528 100528 0 0.0
.dynamic 512 512 0 0.0
.got 11896 11896 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 161004 161004 0 0.0
.text 3855048 3855048 0 0.0
tv-app debug (read only) 5283953 5283953 0 0.0
(read/write) 350696 350696 0 0.0
.bss 241888 241888 0 0.0
.data 5024 5024 0 0.0
.data.rel.ro 96384 96384 0 0.0
.dynamic 624 624 0 0.0
.got 5608 5608 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 271085 271085 0 0.0
.text 4768787 4768787 0 0.0
tv-casting-app debug (read only) 8189089 8189089 0 0.0
(read/write) 312872 312872 0 0.0
.bss 155904 155904 0 0.0
.data 2464 2464 0 0.0
.data.rel.ro 147696 147696 0 0.0
.dynamic 624 624 0 0.0
.got 5080 5080 0 0.0
.init 27 27 0 0.0
.init_array 1088 1088 0 0.0
.rodata 336120 336120 0 0.0
.text 7451475 7451475 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2522872 2522872 0 0.0
.bss 219064 219064 0 0.0
.data 5128 5128 0 0.0
.text 1485556 1485556 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1230576 1230576 0 0.0
bss 154518 154518 0 0.0
rodata 142644 142644 0 0.0
text 854368 854368 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1350004 1350004 0 0.0
bss 140528 140528 0 0.0
rodata 136880 136880 0 0.0
text 781912 781912 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1162660 1162660 0 0.0
bss 153948 153948 0 0.0
rodata 113672 113672 0 0.0
text 816100 816100 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837512 837512 0 0.0
(read/write) 1778900 1778900 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 193300 193300 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2528 2528 0 0.0
.debug_abbrev 1379612 1379612 0 0.0
.debug_aranges 144272 144272 0 0.0
.debug_frame 479016 479016 0 0.0
.debug_info 32193651 32193651 0 0.0
.debug_line 4033121 4033121 0 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2272176 2272176 0 0.0
.debug_rnglists 155013 155013 0 0.0
.debug_str 4152153 4152153 0 0.0
.heap 837512 837512 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 837115 837115 0 0.0
.symtab 511568 511568 0 0.0
.text 1574684 1574684 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 840168 840168 0 0.0
(read/write) 1681180 1681180 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 190708 190708 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1260607 1260607 0 0.0
.debug_aranges 136072 136072 0 0.0
.debug_frame 457444 457444 0 0.0
.debug_info 28534101 28534101 0 0.0
.debug_line 3792272 3792272 0 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2145551 2145551 0 0.0
.debug_rnglists 146580 146580 0 0.0
.debug_str 3953793 3953793 0 0.0
.heap 840168 840168 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 734871 734871 0 0.0
.symtab 472640 472640 0 0.0
.text 1479620 1479620 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 846496 846496 0 0.0
(read/write) 1607500 1607500 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184492 184492 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2352 2352 0 0.0
.debug_abbrev 1101579 1101579 0 0.0
.debug_aranges 126136 126136 0 0.0
.debug_frame 420376 420376 0 0.0
.debug_info 23655427 23655427 0 0.0
.debug_line 3367054 3367054 0 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 1982275 1982275 0 0.0
.debug_rnglists 136132 136132 0 0.0
.debug_str 3760875 3760875 0 0.0
.heap 846496 846496 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 650063 650063 0 0.0
.symtab 434704 434704 0 0.0
.text 1412268 1412268 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 819232 819232 0 0.0
(read/write) 1640316 1640316 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 211740 211740 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2368 2368 0 0.0
.debug_abbrev 1093770 1093770 0 0.0
.debug_aranges 124768 124768 0 0.0
.debug_frame 415400 415400 0 0.0
.debug_info 23458734 23458734 0 0.0
.debug_line 3317664 3317664 0 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 1957818 1957818 0 0.0
.debug_rnglists 134073 134073 0 0.0
.debug_str 3722865 3722865 0 0.0
.heap 819232 819232 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 622993 622993 0 0.0
.symtab 426128 426128 0 0.0
.text 1417820 1417820 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1176976 1176976 0 0.0
.bss 100616 100616 0 0.0
.data 740 740 0 0.0
.text 623816 623816 0 0.0
lock-app qpg6105+debug (read/write) 1133856 1133856 0 0.0
.bss 95320 95320 0 0.0
.data 744 744 0 0.0
.text 580700 580700 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1149896 1149896 0 0.0
bss 113224 113224 0 0.0
text 801406 801406 0 0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1094620 1094620 0 0.0
bss 122244 122244 0 0.0
text 759564 759564 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 949188 949188 0 0.0
bss 106888 106888 0 0.0
text 655884 655884 0 0.0
contact-sensor-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 878184 878184 0 0.0
bss 78124 78124 0 0.0
text 622314 622314 0 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 866284 866284 0 0.0
bss 67036 67036 0 0.0
text 629230 629230 0 0.0
lighting-app-rpc-shell-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1000620 1000620 0 0.0
bss 109148 109148 0 0.0
text 703860 703860 0 0.0
tlsr9528a (read only) 4 4 0 0.0
(read/write) 1045680 1045680 0 0.0
bss 120896 120896 0 0.0
text 727146 727146 0 0.0
lock-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 934132 934132 0 0.0
bss 78816 78816 0 0.0
text 651488 651488 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 962760 962760 0 0.0
bss 104988 104988 0 0.0
text 671886 671886 0 0.0
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 881856 881856 0 0.0
bss 78228 78228 0 0.0
text 626326 626326 0 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 822780 822780 0 0.0
bss 66240 66240 0 0.0
text 593428 593428 0 0.0
resource-monitoring-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 838600 838600 0 0.0
bss 66656 66656 0 0.0
text 604154 604154 0 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 716020 716020 0 0.0
bss 86424 86424 0 0.0
text 469654 469654 0 0.0
smoke_co_alarm-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 880064 880064 0 0.0
bss 78208 78208 0 0.0
text 625130 625130 0 0.0
temperature-measurement-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 865456 865456 0 0.0
bss 77928 77928 0 0.0
text 612650 612650 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 844092 844092 0 0.0
bss 66540 66540 0 0.0
text 609002 609002 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 841344 841344 0 0.0
bss 66892 66892 0 0.0
text 605844 605844 0 0.0

@mergify mergify bot merged commit cff70e1 into project-chip:master Oct 6, 2023
52 checks passed
if (chip_enable_pw_rpc) {
defines = [ "PW_RPC_ENABLED" ]
}
defines = [ "PW_RPC_ENABLED=${chip_enable_pw_rpc}" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the semantics of this macro (boolean value vs just-defined-or-not) are per-platform, so it's OK that this is not necessarily going to be consistent with other platforms?

* @brief Defines if a matter device is acting as a Synchronized Sleepy End Device(SSED)
*/
#ifndef CHIP_DEVICE_CONFIG_ENABLE_SSED
#define CHIP_DEVICE_CONFIG_ENABLE_SSED 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, but really this should have gone in CHIPDeviceConfig.h (the core one)... I suspect it will get added there as part of #29613

@@ -184,7 +184,7 @@ CHIP_ERROR CHIP_Init(void)
goto exit;
}

#if CONFIG_CHIP_THREAD_SSED
#if defined(CHIP_DEVICE_CONFIG_ENABLE_SSED) && CHIP_DEVICE_CONFIG_ENABLE_SSED
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This on the other hand looks wrong. There is no CHIP_DEVICE_CONFIG_ENABLE_SSED so far (before this PR). What we do have is CHIP_DEVICE_CONFIG_THREAD_SSED on some platforms and CONFIG_CHIP_THREAD_SSED on some platforms, and it's a bit of a mess.

But generally:

  1. All CHIP_*CONFIG* macros must have a specific config header responsible for ensuring they are defined (and pulling in all the headers that might define them).
  2. Consumers of such macros should test them with #if and include the responsible header.

The setup here, where defined is tested, makes it too easy to fail to include the header that actually defines the config and then build different parts of the code with incompatible configurations...

I know the config header setup is really weird; I am only now starting to finally understand how it works. But the above is how it should work. ;)

@@ -1710,7 +1710,7 @@ CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::DoInit(otInstanc
VerifyOrExit(otErr == OT_ERROR_NONE, err = MapOpenThreadError(otErr));

// Enable automatic assignment of Thread advertised addresses.
#if OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE
#if defined(OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE) && OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, ideally there would be a specific config header responsible for this that we ensured we included. In practice people put this define in all sorts of random places: project-specific OpenThreadConfig.h, platform-specific CHIPDevicePlatformConfig.h, some openthread-core-cc13x2_26x2-config.h and bl702-openthread-core-bl-config.h headers, etc, etc. I have zero confidence this file is ending up including those headers. For example, lots of places are setting openthread_project_core_config_file but I don't see that being used anywhere.

So as far as I can tell, this change is just covering up a bug: we are not including the things that might define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow up created - #29624

HunsupJung pushed a commit to HunsupJung/connectedhomeip that referenced this pull request Oct 23, 2023
…ject-chip#29617)

* fix(QPG): Enable -Wundef and fix any errors for qpg based builds (Addresses project-chip#29591)

* Restyled by gn

---------

Co-authored-by: Restyled.io <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants