Attention is currently required from: Furquan Shaikh, Julius Werner, Angel Pons, Karthik Ramasubramanian.
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/56580 )
Change subject: commonlib/mem_pool: Allow configuring the alignment
......................................................................
Patch Set 11:
(2 comments)
File src/commonlib/include/commonlib/mem_pool.h:
https://review.coreboot.org/c/coreboot/+/56580/comment/b71decfb_646353ec
PS11, Line 58: alignment
What is buf % 0?
This will raise a divide by 0 error. Should I add an assert?
File src/commonlib/mem_pool.c:
https://review.coreboot.org/c/coreboot/+/56580/comment/fb531628_6c6af05a
PS11, Line 11: mp->alignment
What is the behavior of ALIGN_UP(sz, 0)? Is it defined or undefined?
```
ALIGN_UP(64, 0) => 0x0
```
Should I add an assert, or just return NULL if alignment is 0?
--
To view, visit
https://review.coreboot.org/c/coreboot/+/56580
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8d77ffe4411f86c54450305320c9f52ab41a3075
Gerrit-Change-Number: 56580
Gerrit-PatchSet: 11
Gerrit-Owner: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: Furquan Shaikh
furquan.m.shaikh@gmail.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Angel Pons
th3fanbus@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-Attention: Furquan Shaikh
furquan.m.shaikh@gmail.com
Gerrit-Attention: Julius Werner
jwerner@chromium.org
Gerrit-Attention: Angel Pons
th3fanbus@gmail.com
Gerrit-Attention: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Comment-Date: Wed, 03 Nov 2021 20:21:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Karthik Ramasubramanian
kramasub@google.com
Gerrit-MessageType: comment