Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: mem_slab: only define slab_ptr_is_good with assert enabled
Add a __ASSERT_ON guard around slab_ptr_is_good, as that is only used in assertions and leaving it on seems to generate a build warning with some clang versions: kernel/mem_slab.c:207:20: error: unused function 'slab_ptr_is_good' 207 | static inline bool slab_ptr_is_good(struct k_mem_slab *slab,... | ^~~~~~~~~~~~~~~~ (cherry picked from commit 3283659) Original-Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> GitOrigin-RevId: 3283659 Change-Id: If196dd35272db76466cece7c44139e4c1ec98dc1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5616301 Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
- Loading branch information