mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: bug: move nvgpu_do_assert_print() into assert.c
There was a header file circular dependency that was preventing including some files. For example, for utils.h to include safe_ops.h would include bug.h which included log.h which included bitops.h which included utils.h. To break this loop, the macro nvgpu_do_assert_print() into a function in a new file assert.c. With this change, log.h is no longer required in bug.h. This change also required adding a few includes in C files that were picking up definitions through the chain above. JIRA NVGPU-3868 Change-Id: Icf95677bb36e4aa034cba25594cf71f2d028c289 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2168528 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
35799f369e
commit
acc65f6e84
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include <nvgpu/cond.h>
|
||||
#include <nvgpu/safe_ops.h>
|
||||
|
||||
int nvgpu_cond_init(struct nvgpu_cond *cond)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/types.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
Reference in New Issue
Block a user