pkt-line: annotate packet_writel with LAST_ARG_MUST_BE_NULL
commit7e936842f54c98eb41fb46c94da417065fe333f5
authorJeff King <peff@peff.net>
Sat, 13 May 2017 09:04:58 +0000 (13 05:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 May 2017 04:01:36 +0000 (15 13:01 +0900)
tree07a89812d6da0428a3cb24d8c232c5fc8f024504
parentc0c70f7ac080c3b4ecc50a3207eb66e97c10271d
pkt-line: annotate packet_writel with LAST_ARG_MUST_BE_NULL

packet_writel() takes a variable-sized list and reads to
the first NULL. Let's let the compiler know so that it can
help us catch mistakes in the callers.

This should have been annotated similarly when it was a
static function, but it's doubly important now that the
function is available to the whole code-base.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pkt-line.h