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: 10529473 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F077C6020A for ; Tue, 17 Jul 2018 13:50:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D713028D8A for ; Tue, 17 Jul 2018 13:50:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB6ED29203; Tue, 17 Jul 2018 13:50:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7608928D8A for ; Tue, 17 Jul 2018 13:50:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 96A806B000D; Tue, 17 Jul 2018 09:50:14 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8F18D6B000E; Tue, 17 Jul 2018 09:50:14 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7BAD16B0010; Tue, 17 Jul 2018 09:50:14 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f199.google.com (mail-qk0-f199.google.com [209.85.220.199]) by kanga.kvack.org (Postfix) with ESMTP id 4D12D6B000D for ; Tue, 17 Jul 2018 09:50:14 -0400 (EDT) Received: by mail-qk0-f199.google.com with SMTP id u68-v6so844156qku.5 for ; Tue, 17 Jul 2018 06:50:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:sender:from:to:cc:subject:date :message-id:in-reply-to:references; bh=woWXYjjjFUZyDdqrgd9h1MD0umWFrb4Xvpd4ZOMGOsM=; b=q3AMn7xcGrC9xy0hzDQ5qi1B9aVZRdnQIUU98ig4qZagukiRG8mKREsOvhM3DFYh8f hbNi1VyD95dQXZuuQrcqrypB3EkExCki+jZ0ezdZm8pBCZ5dZoozZJ3IViWyzNJ5S5Ep MftVabKthjTFnn9dvbyQAO4ZmUJtls175z62ONT4NjusuEbrt6R/OR6alRBdu+UITkbM VJSmjPhD/2DMvEjfsgY6wHTywCqZrvTg67FnIXuI/UVrpO009sL6cTsrs3j9EOJRUx6E tjuKwCPyl/1QCv6POcyU5oTeklSfDMweYhxEsFgBk/R1zmhKzudCvxZtiRyj0zoydji4 ZMXA== X-Gm-Message-State: AOUpUlHJhC0to1/ws7PZ/yPHoTZ+oHqzmjBRPyKByMwTxlCm4uRtvpG/ asJBez2w6U0hl7XbfPzzA7d9tFp8ITbbHfswBqFauPQCzGi2fYTgMxFqqVXrxehfNDL6hnxItGV ysyKf1YKXSXtcqF7WuxLaQY6bDOIKsBCq1rIveKEdf604DiBZFrgXUAc7AxFUZN5cGfMVZvPX/J VSLCNiCAl9/TEMy/vuTB9PoomS96TeXnlxvUP1hyvqsBhgWE2onmz+aN6wDvHjzWwWI7ORwdnrn NpdODRZFbBqlD+dtXh8Ht8z3aoOwYN5SbRkRf+96pjfBlGoedzL1dv3zxlgLIsfDVxc8fkb6Rk3 IhXIOeuHpN2cTTWN05USobF4hKDJHnR6/o6yQElqM5KRE3f1LX5udlkvSMtFVS2KLfj6q4cwNA= = X-Received: by 2002:a37:b5c7:: with SMTP id e190-v6mr1457125qkf.384.1531835414079; Tue, 17 Jul 2018 06:50:14 -0700 (PDT) X-Received: by 2002:a37:b5c7:: with SMTP id e190-v6mr1457098qkf.384.1531835413555; Tue, 17 Jul 2018 06:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531835413; cv=none; d=google.com; s=arc-20160816; b=u2M7ebOk6itIQFIg0PkkZ+MTw7OvcMKCCMjIZZ8icVAuv1zwQ6Bll8OKRD0w49SLlb hUyeHsJ+hAYMtyl0x3U+OlTAR88Csy1kGh+3+GZlw1XiSZx2UUaWAIeCrC+k5pcU/qhy K5qSubilZhIfkiLP84B+9sqiqdTQhGXfbpc1Xnu9mwivWI8VNtROIa7EWDqjN+hdBDXQ XxerQ2PrF0IVcVRPIlATtHZy3PjfjAwrccDEhAZhzN1/kTXzExnMkF6DEv++l5RMbOex 7nmvjBcrseU4GDB8KGJu56vogfckO/CB+B5LzEyHT9a0Yr888pLqg3h46Kj/N1UNqYtR kFpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature:arc-authentication-results; bh=woWXYjjjFUZyDdqrgd9h1MD0umWFrb4Xvpd4ZOMGOsM=; b=PwIVbNPz5rthHe4kWMOuDEQKAkkqUcsN4D8qm+z0FHarsHUGtNFUZsTuxPyjiLb7Qj 3Zj6gAMaBnOHSqgyW9SfMGJVh2eW0uXKc2luZvV/FDTTpte3ySggQ0PBSM56n0pftUuJ X/RLUJuHljYd6XCm3khPo8hXrKXBOQraJM/unDeltErerjoMkZLvSxhcRONE/XyHxcYs +apHM1Y1OFBQSQMutZwTU5RFRYoD7o9PvbXG6Rzh1eg12XecSbsobk1UBhWFYbHlwyyF DQ1bVVXDMmIVhQTdPNosIFFdYYAXvjgCjS/BwF9tm7Lb5kUbpXik272Ym8j0/+9QZ8ET gWNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Syoa+ydC; spf=pass (google.com: domain of ram.n.pai@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=ram.n.pai@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id z11-v6sor500707qti.109.2018.07.17.06.50.13 for (Google Transport Security); Tue, 17 Jul 2018 06:50:13 -0700 (PDT) Received-SPF: pass (google.com: domain of ram.n.pai@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Syoa+ydC; spf=pass (google.com: domain of ram.n.pai@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=ram.n.pai@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com 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-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 Cc: mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, mingo@redhat.com, dave.hansen@intel.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, linuxram@us.ibm.com, fweimer@redhat.com, msuchanek@suse.de, aneesh.kumar@linux.vnet.ibm.com 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-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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;