From patchwork Tue Jul 17 13:49:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ram Pai X-Patchwork-Id: 945070 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41VMg120jqz9rxs for ; Wed, 18 Jul 2018 00:12:29 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=us.ibm.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Syoa+ydC"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41VMg10MdPzF3J0 for ; Wed, 18 Jul 2018 00:12:29 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=us.ibm.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Syoa+ydC"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400d:c0d::243; helo=mail-qt0-x243.google.com; envelope-from=ram.n.pai@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=us.ibm.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Syoa+ydC"; dkim-atps=neutral Received: from mail-qt0-x243.google.com (mail-qt0-x243.google.com [IPv6:2607:f8b0:400d:c0d::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41VM9M35xrzF3J7 for ; Tue, 17 Jul 2018 23:50:15 +1000 (AEST) Received: by mail-qt0-x243.google.com with SMTP id a18-v6so886243qtj.4 for ; Tue, 17 Jul 2018 06:50:15 -0700 (PDT) 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; bh=woWXYjjjFUZyDdqrgd9h1MD0umWFrb4Xvpd4ZOMGOsM=; b=Syoa+ydCd7grhPh6QpA+qtSUkR0BL/X7DIlR/KPwLNGFIPGjX7Mjko9wXfP1KZBk4Q c9SrmJrxlMKSiq4lGfEPkYEbonWAmrU9DPvTL0xpFiKxuxFo8ISLcWGugGTppsiE1Bdw kL0pgvxXFb3rprB29ma6ky6C5BSE6ToNeqZPDzT7f6ZQW3KEoUrTf5YuQOr2coic7Kdj u57pNFzJgB4oH5EmVoA224i9yFbcAYQbvRy2UPq4mraEyMxLsgW9YFePjumPcaQy+t3Z t5FfftZnItI7iwFlRBs3415hjel2bvK9lkwzJNJ6hLuoIMFHLzH7Mgn2OigM7J6KCw6M G/wA== 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; bh=woWXYjjjFUZyDdqrgd9h1MD0umWFrb4Xvpd4ZOMGOsM=; b=TccvRa3ISQ3PuVD+L3K/tIqP7p7oYC7WXU8SbDKZeWxRyPp6v2lIMfAfXkZF9k1lCZ ueS+txBsxKxXjEvLm4TLcmidCSrW78yNqSU7HASLcO3sEb3M7Lzfrg0dQRuxaD7fOLou G1YcwFM+TPwpCqeT2nWGyqAGLnLf+abhTvwJ6s5ikh8F3X9Com6LPOjwRjzkQ/5bUlxb oZOPl3OQk/D/t/GaXPdUQndyDgFT6KPK7/Q211j30HyUx6GRPPgxvubosb9fvcjo25Dk cmV2l+MHn4H3ZEBFY3G2KV3FNf35/XumTUeAoc1u6mZj5ZkFUabYASK2qL05NldkLfGC n0Ig== X-Gm-Message-State: AOUpUlExaXIX5L3gbWignM13HvGHRJsDcim+/5ZIk8Z+EttuDua/Fdle ZYCIwgZOzOWPxcan3nbWpts= X-Google-Smtp-Source: AAOMgpeTeMG5/S3ExY4Uh73/CCSxKHos3CSV4afrsKmaN8+g5lrGuQRzbX8DH2YcN2IYnXCd+ygneQ== X-Received: by 2002:ac8:38e9:: with SMTP id g38-v6mr1561750qtc.213.1531835413303; Tue, 17 Jul 2018 06:50:13 -0700 (PDT) Received: from localhost.localdomain (50-39-100-161.bvtn.or.frontiernet.net. [50.39.100.161]) by smtp.gmail.com with ESMTPSA id s83-v6sm640937qki.20.2018.07.17.06.50.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 06:50:12 -0700 (PDT) From: Ram Pai To: shuahkh@osg.samsung.com, linux-kselftest@vger.kernel.org Subject: [PATCH v14 05/22] selftests/vm: Make gcc check arguments of sigsafe_printf() Date: Tue, 17 Jul 2018 06:49:08 -0700 Message-Id: <1531835365-32387-6-git-send-email-linuxram@us.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1531835365-32387-1-git-send-email-linuxram@us.ibm.com> References: <1531835365-32387-1-git-send-email-linuxram@us.ibm.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, fweimer@redhat.com, dave.hansen@intel.com, x86@kernel.org, linuxram@us.ibm.com, mhocko@kernel.org, linux-mm@kvack.org, mingo@redhat.com, aneesh.kumar@linux.vnet.ibm.com, bauerman@linux.vnet.ibm.com, msuchanek@suse.de, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Thiago Jung Bauermann This will help us ensure we print pkey_reg_t values correctly in different architectures. Signed-off-by: Thiago Jung Bauermann --- tools/testing/selftests/vm/pkey-helpers.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/testing/selftests/vm/pkey-helpers.h b/tools/testing/selftests/vm/pkey-helpers.h index 3ed2f02..7f18a82 100644 --- a/tools/testing/selftests/vm/pkey-helpers.h +++ b/tools/testing/selftests/vm/pkey-helpers.h @@ -27,6 +27,10 @@ #define DPRINT_IN_SIGNAL_BUF_SIZE 4096 extern int dprint_in_signal; extern char dprint_in_signal_buffer[DPRINT_IN_SIGNAL_BUF_SIZE]; + +#ifdef __GNUC__ +__attribute__((format(printf, 1, 2))) +#endif static inline void sigsafe_printf(const char *format, ...) { va_list ap;