From patchwork Wed Jan 17 13:18:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 862258 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="k+NPdYEr"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zM72q55S9z9s7f for ; Thu, 18 Jan 2018 00:18:59 +1100 (AEDT) Received: from localhost ([::1]:35367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebncH-0004Gx-Qp for incoming@patchwork.ozlabs.org; Wed, 17 Jan 2018 08:18:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebnbt-0004GR-A8 for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebnbs-0007kd-Cw for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:33 -0500 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:34740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebnbs-0007kP-9D for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:32 -0500 Received: by mail-qk0-x242.google.com with SMTP id b76so25193527qkc.1 for ; Wed, 17 Jan 2018 05:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ywFbl/3gkaX2Nec/gYJmtjnYMtcg4/a1r8QkPlBRw74=; b=k+NPdYErv8rmNmJ1Yc3FBk6MXyerKpK8l9OPI9CbSVbP+tSqfeLEN+MFbLn2eFa+op I15xVHG7St3riwQ7iwIl2KmP2a92M0yuwtRmUqUH5GJujFHGQcM0/B3yhegJL6dZRzBI iK77NH6ON3LoIYFiiaL5PkIEPhaZcgepmJJCfXH92xGICE8f3Awzs+K1xTWRZVy5LN+g QxY8Zr8g3jfjUB+TSdi72v+gr53tmZ0qEQSAHEPtO/UGTyOZTueJqYFD3WkO4061j6PW 1Aa53nKQfuSA2zitTec5j/wTY7/RFGG48V/aHKqRJSM3JQo8gkn2N/g4kly7/21ZeKFZ Ygcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ywFbl/3gkaX2Nec/gYJmtjnYMtcg4/a1r8QkPlBRw74=; b=IgjPfuH6UwtoxSJOKRE1+yNkeCZuq3Jvh+o2RQxR6Guem4/9kKTW2Ia8JIanFiX9bf YtPVhU7UMgbu6lgKTAw5CrlJ4slbb5KKCMyxfFVr1W0xsTW4Xjh+CryBlt6TWnxJd++L WZx0XfhQS4cShF7dnZHKzE6ZHLECpAH/fE1Tl9bs0tTxxVZ3bPYnrFiUePiZ7wDcFGY2 NrVhZ6hXdp66zJartywNQBmlyd4BSsYJh2uNqwEfbVzKWDilA98Vw9ffFEpdg4hxxJo0 Z5sB94sWa5PxJtvGS9k/0aBcDaECukOerHliLV8tZQqxneEX87WahzkHgXWRITglvWiA DLIw== X-Gm-Message-State: AKGB3mLBOjn5g2bB235nITARHMaV3PHS94y0X9GUjqw7xzjuDe1bZxKe QfZQQaMxAcdc0kpvnKG0A5c= X-Google-Smtp-Source: ACJfBotprhTSVTuWCMWuis5LNgp9aibLujeX7PNmbS/qgCRaF8BmUh37tQ1xfRPC9lhPDq5rBneMNw== X-Received: by 10.55.195.69 with SMTP id a66mr57494000qkj.83.1516195111819; Wed, 17 Jan 2018 05:18:31 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id n21sm2990418qtl.38.2018.01.17.05.18.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 05:18:31 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Wed, 17 Jan 2018 10:18:19 -0300 Message-Id: <20180117131821.18700-2-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180117131821.18700-1-f4bug@amsat.org> References: <20180117131821.18700-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [RFC PATCH 1/3] compiler: add QEMU_WARN_NONNULL_ARGS() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-devel@nongnu.org, Stefan Weil , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Luiz Capitulino , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 340e5fdc09..d9b2489391 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -26,6 +26,8 @@ #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#define QEMU_WARN_NONNULL_ARGS(args...) __attribute__((nonnull(args))) + #define QEMU_SENTINEL __attribute__((sentinel)) #if QEMU_GNUC_PREREQ(4, 3)