[usr/src/sys/arm64/arm64/gic_v3.c:157]: (warning) Size of pointer 'gic_res' used instead of size of its data. Source code is sc->gic_res = malloc( sizeof(sc->gic_res) * (sc->gic_redists.nregions + 1), M_GIC_V3, M_WAITOK); Maybe better code sc->gic_res = malloc( sizeof(*(sc->gic_res)) * (sc->gic_redists.nregions + 1), M_GIC_V3, M_WAITOK);
A commit references this bug: Author: emaste Date: Thu Nov 26 21:05:56 UTC 2015 New revision: 291373 URL: https://svnweb.freebsd.org/changeset/base/291373 Log: Correct arm64 gic_v3 sizeof argument No functional change as 'struct resource *' and 'struct resource **' have the same size, but the former is the proper type. PR: 204768 Submitted by: David Binderman Changes: head/sys/arm64/arm64/gic_v3.c