From patchwork Thu Jun 14 00:44:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ram Pai X-Patchwork-Id: 929156 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 415lkB4n0Cz9s01 for ; Thu, 14 Jun 2018 11:03:46 +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="DgtU5ele"; 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 415lkB39wFzF0XQ for ; Thu, 14 Jun 2018 11:03:46 +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="DgtU5ele"; 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:c09::243; helo=mail-qk0-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="DgtU5ele"; dkim-atps=neutral Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com [IPv6:2607:f8b0:400d:c09::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 415lLm6N6XzF0Pd for ; Thu, 14 Jun 2018 10:46:56 +1000 (AEST) Received: by mail-qk0-x243.google.com with SMTP id g14-v6so2700686qkm.6 for ; Wed, 13 Jun 2018 17:46:56 -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=DgtU5ele7ZyhOcWtOvn2KaXzcHKwdkn2Zt5gUeQHsBjeIl0KEobe35Oqm8/K9QJ6WY sQdHynd5o+Q1KosgKGuQ57kaFqX/V1ohySixDOB/i5Q/pIKN+AwVEab3JT9fqBOILDFv msQeAbqgVj0WN3RoukAM+mSxrdDV5FCXTOoHxRVvoNmrz+YTByZRfawikOYqUfQTqcr2 hKgiFFr6zTmYHF6sTdTGzq2No8iW+VNBi/nvqM/QZVrjXgjLzlLq/dOkhqVAYxJOigvI tqeuANCtHzJbNf1zbyEEm1dl4A3S7fItJtmknumLlhKvmplK0IYbxW+DOL9i5DD27+r8 gAmg== 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=Pbop5vK0gV0nHaWHP4cscS56GUVLm+Luo7WHLcmSeFtPNcxNoNdopWyZ+oGmyJ0XpY PF9/Yk1wmWRAAdv6eN2PoZFo4MZJPVEeSEn2f81sfOhhuw++08OcQ9xsg3I9q451XR/h jHoq7Bp4RuHjpG2sNBM4s0XXq4aDVsqLPeyP5v46xQtdJjvGvRYUphmbrDvjwpRLmmmg 2AX+zncz2HqQqERNcRx1U/3QN18wjLyRgSK9hj3CJkG07CtIzdmQgZikWNoWy9gayLnX f+EE5sXbjEJ4okJHurAcE6RhlL8qLzPH+SeEJ3AyWgQDcigWw7jDvmax5JfxnbXlIBiF /lSw== X-Gm-Message-State: APt69E0l2ckJEutfmHAikHEl0L9HGMeuZnSkZyRYOBUSZ1xmFuBnlGxN 7UVcpvXFlu4wT0E53fsDuCw= X-Google-Smtp-Source: ADUXVKIuQmTEWLilEyEngiEQkCfUkX+rDXOse83jLyj+nme1Zpayv+CwD7UucZ8w67I5Q5ivgnhkaw== X-Received: by 2002:a37:a94a:: with SMTP id s71-v6mr330107qke.221.1528937214851; Wed, 13 Jun 2018 17:46:54 -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 u31-v6sm3225898qtc.28.2018.06.13.17.46.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 17:46:54 -0700 (PDT) From: Ram Pai To: shuahkh@osg.samsung.com, linux-kselftest@vger.kernel.org Subject: [PATCH v13 05/24] selftests/vm: Make gcc check arguments of sigsafe_printf() Date: Wed, 13 Jun 2018 17:44:56 -0700 Message-Id: <1528937115-10132-6-git-send-email-linuxram@us.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1528937115-10132-1-git-send-email-linuxram@us.ibm.com> References: <1528937115-10132-1-git-send-email-linuxram@us.ibm.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 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;