<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvgpu.git/userspace, branch gpu-paging</title>
<subtitle>Tegra GPU Driver. Originally from nv-tegra.nvidia.com/linux-nvgpu.git.</subtitle>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/'/>
<entry>
<title>gpu: nvgpu: unit: Add mockio unit test to tmake</title>
<updated>2018-09-29T06:55:13+00:00</updated>
<author>
<name>Nicolas Benech</name>
<email>nbenech@nvidia.com</email>
</author>
<published>2018-09-28T19:29:26+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=44574a01bb665c3ee59db3577fdd438a9aefc037'/>
<id>44574a01bb665c3ee59db3577fdd438a9aefc037</id>
<content type='text'>
MockIO unit test went in before the tmake changes. Now
adding tmake files so that it builds for target.

Change-Id: I9f08076a46f8f6487342553999d43279fb74cabb
Signed-off-by: Nicolas Benech &lt;nbenech@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1851219
Reviewed-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MockIO unit test went in before the tmake changes. Now
adding tmake files so that it builds for target.

Change-Id: I9f08076a46f8f6487342553999d43279fb74cabb
Signed-off-by: Nicolas Benech &lt;nbenech@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1851219
Reviewed-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: unit: Add posix-env test to unit tests</title>
<updated>2018-09-27T22:07:13+00:00</updated>
<author>
<name>Alex Waterman</name>
<email>alexw@nvidia.com</email>
</author>
<published>2018-09-25T22:30:37+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=3bbd40366a0bdc54d882fc420e82d54b496dfad7'/>
<id>3bbd40366a0bdc54d882fc420e82d54b496dfad7</id>
<content type='text'>
Add the posix-env test to the unit test suite that gets built
by tmake. This test caught a legit bug in the posix impl on
the target platform which needed to be fixed first.

JIRA NVGPU-1234

Change-Id: Ic62eac0bb62741dd03883dcd24c57b49ff67fa0e
Signed-off-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1846180
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
Reviewed-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom &lt;tbergstrom@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the posix-env test to the unit test suite that gets built
by tmake. This test caught a legit bug in the posix impl on
the target platform which needed to be fixed first.

JIRA NVGPU-1234

Change-Id: Ic62eac0bb62741dd03883dcd24c57b49ff67fa0e
Signed-off-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1846180
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
Reviewed-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom &lt;tbergstrom@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: posix: Multithreading for unit tests</title>
<updated>2018-09-27T21:04:17+00:00</updated>
<author>
<name>Nicolas Benech</name>
<email>nbenech@nvidia.com</email>
</author>
<published>2018-09-25T18:37:16+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=c6eae929fd74f11ab13d469a38bffd4e8ba50fb5'/>
<id>c6eae929fd74f11ab13d469a38bffd4e8ba50fb5</id>
<content type='text'>
Add a -j argument to enable running unit tests on several
threads. Also adds signal handling to prevent a fatal
error in one thread from killing the whole unit test
framework.

JIRA NVGPU-1043

Change-Id: I891a547640cd005a50ffa5c06367ed46c54de012
Signed-off-by: Nicolas Benech &lt;nbenech@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1847740
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a -j argument to enable running unit tests on several
threads. Also adds signal handling to prevent a fatal
error in one thread from killing the whole unit test
framework.

JIRA NVGPU-1043

Change-Id: I891a547640cd005a50ffa5c06367ed46c54de012
Signed-off-by: Nicolas Benech &lt;nbenech@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1847740
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: unit: update unit.h for target</title>
<updated>2018-09-24T22:54:55+00:00</updated>
<author>
<name>Philip Elcan</name>
<email>pelcan@nvidia.com</email>
</author>
<published>2018-09-21T14:59:49+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=bf99dfdaf2dd974723dfce23d815b2f5ee83673d'/>
<id>bf99dfdaf2dd974723dfce23d815b2f5ee83673d</id>
<content type='text'>
The directory structure is every so slightly different on target, so
this handles the differences.

JIRA NVGPU-1042

Change-Id: I5a0566c7d371fcb5cd541c71841e8acedfaac6e2
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1837443
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The directory structure is every so slightly different on target, so
this handles the differences.

JIRA NVGPU-1042

Change-Id: I5a0566c7d371fcb5cd541c71841e8acedfaac6e2
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1837443
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: unit: build posix-bitops in tmake</title>
<updated>2018-09-24T22:54:18+00:00</updated>
<author>
<name>Philip Elcan</name>
<email>pelcan@nvidia.com</email>
</author>
<published>2018-09-13T20:27:08+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=b3127c45fbede2c292d9bcb7507f05afbd8e9613'/>
<id>b3127c45fbede2c292d9bcb7507f05afbd8e9613</id>
<content type='text'>
This builds the posix-bitops unit test shared library in the tmake build
system for target.  The systemimage output is in
nvgpu_unit/build/units/libunit-posix-bitops.so

JIRA NVGPU-1042

Change-Id: Id73a1f3e7d8de4e21e3a7f5c5bd036e0ce62ad3e
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1822288
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This builds the posix-bitops unit test shared library in the tmake build
system for target.  The systemimage output is in
nvgpu_unit/build/units/libunit-posix-bitops.so

JIRA NVGPU-1042

Change-Id: Id73a1f3e7d8de4e21e3a7f5c5bd036e0ce62ad3e
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1822288
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: unit: build in tmake</title>
<updated>2018-09-24T22:54:13+00:00</updated>
<author>
<name>Philip Elcan</name>
<email>pelcan@nvidia.com</email>
</author>
<published>2018-09-13T20:21:38+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=9ac1e34312021ecc80d1b8db8fbff2f3e60e1a54'/>
<id>9ac1e34312021ecc80d1b8db8fbff2f3e60e1a54</id>
<content type='text'>
This builds the nvgpu userspace in the tmake build system. The shared
library and the unit test binary are built for target. The output goes
to the systemimage in nvgpu_unit/build.

JIRA NVGPU-1042

Change-Id: I70a118bc02789caf838b2b8e9d6778e94239c56f
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1822287
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This builds the nvgpu userspace in the tmake build system. The shared
library and the unit test binary are built for target. The output goes
to the systemimage in nvgpu_unit/build.

JIRA NVGPU-1042

Change-Id: I70a118bc02789caf838b2b8e9d6778e94239c56f
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1822287
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: unit: Add mockio unit test</title>
<updated>2018-09-24T22:52:34+00:00</updated>
<author>
<name>Nicolas Benech</name>
<email>nbenech@nvidia.com</email>
</author>
<published>2018-06-27T21:45:31+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=5c7a740403fe5b65149b8b30d1007fd02b33c890'/>
<id>5c7a740403fe5b65149b8b30d1007fd02b33c890</id>
<content type='text'>
Add a unit test to make sure the posix IO mocking works
corretly.

JIRA NVGPU-1040

Change-Id: Iadec2f515c9dd74dc0723885b3a6560dc91ce052
Signed-off-by: Nicolas Benech &lt;nbenech@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1741954
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta &lt;kholtta@nvidia.com&gt;
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a unit test to make sure the posix IO mocking works
corretly.

JIRA NVGPU-1040

Change-Id: Iadec2f515c9dd74dc0723885b3a6560dc91ce052
Signed-off-by: Nicolas Benech &lt;nbenech@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1741954
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta &lt;kholtta@nvidia.com&gt;
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: Add POSIX sanity unit test</title>
<updated>2018-09-20T22:14:51+00:00</updated>
<author>
<name>Alex Waterman</name>
<email>alexw@nvidia.com</email>
</author>
<published>2018-09-07T23:19:22+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=ec067c5ed1f00517dbd771fbe9809d2340ec908b'/>
<id>ec067c5ed1f00517dbd771fbe9809d2340ec908b</id>
<content type='text'>
Add a unit test to do sanity checks for the environment. These
checks currently include:

  - Size of types (f.e. u32 is really 4 bytes)
  - Signedness of types (u32 is really unsigned)
  - Endianness check
  - Pointers fit in u64s

Note: the endianness check does not fail for either detected
endianness. It just prints the determined endianness. The exception
to this is if the check itself is broken and does not successfully
determine what endianness the underlying machine is. In that case
the test fails. Unless the underlying architure is a so called
middle endian machine something is horribly wrong.

We will determine what to actually do about this endianness
check once we determine what we need to do with BIOS fields,
etc. We proabbly don't really care what the machine endianness is
but we do need to make sure that we access data that may not match
machine endianness correctly.

JIRA NVGPU-1039

Change-Id: I5be68cf4dcea87e9e746262fcc0372380ef57df4
Signed-off-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1816897
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom &lt;tbergstrom@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a unit test to do sanity checks for the environment. These
checks currently include:

  - Size of types (f.e. u32 is really 4 bytes)
  - Signedness of types (u32 is really unsigned)
  - Endianness check
  - Pointers fit in u64s

Note: the endianness check does not fail for either detected
endianness. It just prints the determined endianness. The exception
to this is if the check itself is broken and does not successfully
determine what endianness the underlying machine is. In that case
the test fails. Unless the underlying architure is a so called
middle endian machine something is horribly wrong.

We will determine what to actually do about this endianness
check once we determine what we need to do with BIOS fields,
etc. We proabbly don't really care what the machine endianness is
but we do need to make sure that we access data that may not match
machine endianness correctly.

JIRA NVGPU-1039

Change-Id: I5be68cf4dcea87e9e746262fcc0372380ef57df4
Signed-off-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1816897
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom &lt;tbergstrom@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: unit: posix_bitops: fix fls() tests</title>
<updated>2018-09-20T19:58:54+00:00</updated>
<author>
<name>Philip Elcan</name>
<email>pelcan@nvidia.com</email>
</author>
<published>2018-09-17T15:42:33+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=fa7394037c94205e5645b5565deeae978c458ba5'/>
<id>fa7394037c94205e5645b5565deeae978c458ba5</id>
<content type='text'>
The fls() test assumed fls(1)=0, but really fls(1)=1, etc.

Bug found as result of JIRA NVGPU-1042.

Change-Id: I8d0ffe53277f4923a970b46788165ef03b385703
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1828362
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The fls() test assumed fls(1)=0, but really fls(1)=1, etc.

Bug found as result of JIRA NVGPU-1042.

Change-Id: I8d0ffe53277f4923a970b46788165ef03b385703
Signed-off-by: Philip Elcan &lt;pelcan@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1828362
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpu: nvgpu: unit: deref twice in qsort callback</title>
<updated>2018-09-18T06:42:05+00:00</updated>
<author>
<name>Konsta Holtta</name>
<email>kholtta@nvidia.com</email>
</author>
<published>2018-09-17T13:52:01+00:00</published>
<link rel='alternate' type='text/html' href='http://rtsrv.cs.unc.edu/cgit/cgit.cgi/nvgpu.git/commit/?id=1982d050cc8c90ef269476bec87778e8c3ade5f7'/>
<id>1982d050cc8c90ef269476bec87778e8c3ade5f7</id>
<content type='text'>
The compare function for qsort takes pointers to compared elements, and
our elements are already pointers so the void pointer has to be cast to
a pointer pointer. Dereferencing only once would compare some data
that's in the array of module pointers (or past it), not the actual data
where the module pointers point to.

Change-Id: I65678863eddd6fc86d4ffceb621f8123944b058d
Signed-off-by: Konsta Holtta &lt;kholtta@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1828164
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The compare function for qsort takes pointers to compared elements, and
our elements are already pointers so the void pointer has to be cast to
a pointer pointer. Dereferencing only once would compare some data
that's in the array of module pointers (or past it), not the actual data
where the module pointers point to.

Change-Id: I65678863eddd6fc86d4ffceb621f8123944b058d
Signed-off-by: Konsta Holtta &lt;kholtta@nvidia.com&gt;
Reviewed-on: https://git-master.nvidia.com/r/1828164
Reviewed-by: svc-misra-checker &lt;svc-misra-checker@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman &lt;alexw@nvidia.com&gt;
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
Tested-by: mobile promotions &lt;svcmobile_promotions@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
