Displaying 3 results from an estimated 3 matches for "kunit_assert_not_nul".
Did you mean:
kunit_assert_not_null
2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...test.c
> > > +++ b/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> > > @@ -251,7 +251,7 @@ static void ttm_bo_unreserve_basic(struct
> > > kunit
> > > *test)
> > > ?? ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev),
> > > GFP_KERNEL);
> > > ?? KUNIT_ASSERT_NOT_NULL(test, ttm_dev);
> > > ?
> > > - err = ttm_device_kunit_init(priv, ttm_dev, false,
> > > false);
> > > + err = ttm_device_kunit_init(priv, ttm_dev, (struct
> > > ttm_device_init_flags){});
> > > ?? KUNIT_ASSERT_EQ(test, err, 0);
> > >...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...ivers/gpu/drm/ttm/tests/ttm_bo_test.c
> > > > @@ -251,7 +251,7 @@ static void ttm_bo_unreserve_basic(struct
> > > > kunit
> > > > *test)
> > > > ?? ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev),
> > > > GFP_KERNEL);
> > > > ?? KUNIT_ASSERT_NOT_NULL(test, ttm_dev);
> > > > ?
> > > > - err = ttm_device_kunit_init(priv, ttm_dev, false,
> > > > false);
> > > > + err = ttm_device_kunit_init(priv, ttm_dev, (struct
> > > > ttm_device_init_flags){});
> > > > ?? KUNIT_ASSERT_EQ(...
2024 Oct 02
2
[PATCH v2 0/2] drm/ttm: Add an option to report graphics memory OOM
Some graphics APIs differentiate between out-of-graphics-memory and
out-of-host-memory (system memory). Add a device init flag to
have -ENOSPC propagated from the resource managers instead of being
converted to -ENOMEM, to aid driver stacks in determining what
error code to return or whether corrective action can be taken at
the driver level.
The first patch deals with a ttm_device_init()