Displaying 3 results from an estimated 3 matches for "high_avail".
2017 Oct 01
0
[PATCH 06/18] drm: use ARRAY_SIZE
...pu.c
@@ -31,6 +31,7 @@
*
*/
+#include <linux/kernel.h>
#include "i915_drv.h"
#include "gvt.h"
#include "i915_pvinfo.h"
@@ -116,7 +117,7 @@ int intel_gvt_init_vgpu_types(struct intel_gvt *gvt)
*/
low_avail = gvt_aperture_sz(gvt) - HOST_LOW_GM_SIZE;
high_avail = gvt_hidden_sz(gvt) - HOST_HIGH_GM_SIZE;
- num_types = sizeof(vgpu_types) / sizeof(vgpu_types[0]);
+ num_types = ARRAY_SIZE(vgpu_types);
gvt->types = kzalloc(num_types * sizeof(struct intel_vgpu_type),
GFP_KERNEL);
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c b/driv...
2011 Mar 24
4
{OT] Re: Installing IMA (Integrity Measurement Architecture) on CentOS 5.5
Greetings,
On 3/24/11, Akemi Yagi <amyagi at gmail.com> wrote:
> I should note, however, that they are not for production use.
>
> Akemi
Thanks Akemi very much for your always relevant and brilliant works.
</rant>
As an Indian, where "veda" repository of knowledge originated, I have
always looked at every member of this list as a repository of
knowledge.
2017 Oct 01
6
[PATCH 00/18] use ARRAY_SIZE macro
Hi everyone,
Using ARRAY_SIZE improves the code readability. I used coccinelle (I
made a change to the array_size.cocci file [1]) to find several places
where ARRAY_SIZE could be used instead of other macros or sizeof
division.
I tried to divide the changes into a patch per subsystem (excepted for
staging). If one of the patch should be split into several patches, let
me know.
In order to reduce