• Andrew Morton's avatar
    mm/cma.c: suppress warning · 3acaea68
    Andrew Morton authored
    mm/cma.c: In function 'cma_alloc':
    mm/cma.c:366: warning: 'pfn' may be used uninitialized in this function
    The patch actually improves the tracing a bit: if alloc_contig_range()
    fails, tracing will display the offending pfn rather than -1.
    Cc: Stefan Strogin <stefan.strogin@gmail.com>
    Cc: Michal Nazarewicz <mpn@google.com>
    Cc: Marek Szyprowski <m.szyprowski@samsung.com>
    Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
    Cc: Thierry Reding <treding@nvidia.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
cma.c 12.1 KB