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: 10529455 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 06793600F4 for ; Tue, 17 Jul 2018 13:50:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E258928D8A for ; Tue, 17 Jul 2018 13:50:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D64282920E; Tue, 17 Jul 2018 13:50:14 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81FA428D8A for ; Tue, 17 Jul 2018 13:50:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731655AbeGQOW7 (ORCPT ); Tue, 17 Jul 2018 10:22:59 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:33922 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731607AbeGQOW7 (ORCPT ); Tue, 17 Jul 2018 10:22:59 -0400 Received: by mail-qt0-f196.google.com with SMTP id m13-v6so893648qth.1; Tue, 17 Jul 2018 06:50:13 -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=pRlnG7kDd4n84pvK7NDm2/NJacSAN4HFzTbJMyONv00w0JXYTZbEWKCwoPSDTRyV/K S2KYJpxzCEkgRgkECk/YaHRtVzMIlCuDW5P/Chx8xgw5klZjDZtVQdR5Yhq8PhIgx2x9 190q3/0ffuDvVzFDxLbpMjKzmC3ELQEcPF3PCnIGnQlINhRvYMGPs5sR+3zIi1lXq7ZA W4vEn6bSTfczomGKhT4Q15waE9av86kr6ifuDh6eUo3Gkqsk1ALHTRRfygT3Fk96AUE4 +T3xVAI2L10LKxr+EW/cykj2LY6uhnVH7MpOYcPi0PC6EfsEklkSJlKk/L+hlSQUQvv7 Amlw== X-Gm-Message-State: AOUpUlFWzPlNtzuTjsmxa3ydQFbx5GFYCeAOZReK7F1YmAgoUo4kw+I3 cHQWDeoTFowpunACa0OoSPU= 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> Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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;