Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1251790imw; Tue, 5 Jul 2022 06:27:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sV6ta6gievyBkHu78stTM7AxZcfZihzJic+MyVUGyc6SJSgJhpCVe0EwgdGOjKR03uy683 X-Received: by 2002:a17:906:58cf:b0:726:97db:4f6d with SMTP id e15-20020a17090658cf00b0072697db4f6dmr33889382ejs.261.1657027658411; Tue, 05 Jul 2022 06:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027658; cv=none; d=google.com; s=arc-20160816; b=KHvQNPuyt2i/Bn+o/qVNlqrmOxHSbDpHtzexzMayCqtfesMrJNHNc/pEa14mdUEVLU SZNyih99Z3qqo9qtc+HyG0sZPMAeg3Z+VeIX+1wIRSHCoUBC2srwzAUKj+e1eosKs1Pk cUMo0+xEqkHJbeVp3Vs4e1Tt109JmXUD3LDlqkyiL7QBffzRF+BtmRv1gKU4f4RCCgBd 4rTLBWu8SMsSPhYvBX/lnQNpTdai1Td3xQc+soPRdOw2aO+2eTqsAj1WX2a7ZBWniOSl mYOjkZ/DtUImh2jqpAMlb0V225MdpI6wkF0n8IKRAGV+iJJzCbTxJluKYM9twbgKKbFz EDvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RT3OSna0wnFQQN0gyBpuOOOTQiW6kQsv2X3EjKRSbNo=; b=V2zTlCrG79rkAAJyevZCGdlx2tzkxy17hQi6j+/uq5uBHy+8p/PDrhniBZgaGRBsaS BNo3JA1c+0kzEbal02q5VJhW1Sh7tt3eBgStLBoTN4WqDzJiUEUKOa2x9rBC8Jm+HEFj SykDceoALdVec596OfZLTW0HlEMpwF7/f+M9Usb8/+GxhTC3TqfibzZgfDRDU3nf8hxr kBMTdb15ZfowH3OyQRnBwrogzW4UUrSesO3BMqvXozY2VI7W0nQ933S1xAgDBUyR/pUV tMdhD/O0ozP8AK9GAuNXPqDRzh/BfhdW6g28+EkKdqmHiCsdMt5dcQKG2ns6fPtNNBN6 56TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xs/U85kS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he7-20020a1709073d8700b007046fc0f0ccsi21197136ejc.320.2022.07.05.06.27.12; Tue, 05 Jul 2022 06:27:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xs/U85kS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235022AbiGEMK4 (ORCPT + 99 others); Tue, 5 Jul 2022 08:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233466AbiGEMF6 (ORCPT ); Tue, 5 Jul 2022 08:05:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26630186F5; Tue, 5 Jul 2022 05:05:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ABE6AB817CC; Tue, 5 Jul 2022 12:05:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDAE9C341CB; Tue, 5 Jul 2022 12:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657022720; bh=wQ9jqvqxdCSyauW0dyP00+syI+DWg0HVsGbiqf7qvcg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xs/U85kSXRSHr94Q8QII8ak4TMiioo/WGiKU4efi9kuYwR4bwLN6i2DnimyI6BZK3 j/Me/sOUkSW6T+Jx6ZciBXGbWMD/cczQSfdGOg+lhpbcdVRO1Nnz/MyxAKyTXNoSOq 7HWwlF1FPXWTHPNdiL1rIePq7HD1k0K3hYie+DRQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathieu Desnoyers , "Peter Zijlstra (Intel)" Subject: [PATCH 5.4 45/58] selftests/rseq: Fix warnings about #if checks of undefined tokens Date: Tue, 5 Jul 2022 13:58:21 +0200 Message-Id: <20220705115611.566216635@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115610.236040773@linuxfoundation.org> References: <20220705115610.236040773@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mathieu Desnoyers commit d7ed99ade3e62b755584eea07b4e499e79240527 upstream. Signed-off-by: Mathieu Desnoyers Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20220124171253.22072-12-mathieu.desnoyers@efficios.com Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/rseq/param_test.c | 2 +- tools/testing/selftests/rseq/rseq-x86.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -159,7 +159,7 @@ unsigned int yield_mod_cnt, nr_abort; " cbnz " INJECT_ASM_REG ", 222b\n" \ "333:\n" -#elif __PPC__ +#elif defined(__PPC__) #define RSEQ_INJECT_INPUT \ , [loop_cnt_1]"m"(loop_cnt[1]) \ --- a/tools/testing/selftests/rseq/rseq-x86.h +++ b/tools/testing/selftests/rseq/rseq-x86.h @@ -600,7 +600,7 @@ int rseq_cmpeqv_trymemcpy_storev_release #endif /* !RSEQ_SKIP_FASTPATH */ -#elif __i386__ +#elif defined(__i386__) #define rseq_smp_mb() \ __asm__ __volatile__ ("lock; addl $0,-128(%%esp)" ::: "memory", "cc")