In article <20180921114916.d5b8cf...@cvs.netbsd.org>,
Kamil Rytarowski <source-changes-d@NetBSD.org> 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

Reply via email to