Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/external/bsd/drm2/dist/drm/i915
In article <20180921114916.D5B8CFA84%cvs.NetBSD.org@localhost>,
Kamil Rytarowski <source-changes-d%NetBSD.org@localhost> wrote:
>-=-=-=-=-=-
>
>Module Name: src
>Committed By: kamil
>Date: Fri Sep 21 11:49:16 UTC 2018
>
>Modified Files:
> src/sys/external/bsd/drm2/dist/drm/i915: i915_dma.c
>
>Log Message:
>Avoid stack protector violation
>
>'const int' is not a real constant in C and it cannot be used to define an
>array with a number of elements, as it's turned into a variable length
>array.
Typically we change the const ints into #defines instead of copying the value
of the constant.
christos
Home |
Main Index |
Thread Index |
Old Index