From patchwork Wed Jul 12 13:46:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 13310405 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60A1CEB64D9 for ; Wed, 12 Jul 2023 13:46:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B591E6B0075; Wed, 12 Jul 2023 09:46:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B09B96B0078; Wed, 12 Jul 2023 09:46:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D09D6B007B; Wed, 12 Jul 2023 09:46:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 8A5BC6B0075 for ; Wed, 12 Jul 2023 09:46:53 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 44F01C013B for ; Wed, 12 Jul 2023 13:46:53 +0000 (UTC) X-FDA: 81003085506.07.BF5A770 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by imf11.hostedemail.com (Postfix) with ESMTP id 7531340011 for ; Wed, 12 Jul 2023 13:46:51 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=cRRpQ8cU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of colin.i.king@gmail.com designates 209.85.221.48 as permitted sender) smtp.mailfrom=colin.i.king@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689169611; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=GrULn3erFwU+XaUY+RvPSd25FEdfChxFqzk38hJNgVA=; b=uZgUzWqn7LkV0swLEwVve8Zo1mpUvlm/lgNjh6kXpibT/TmTZzgSX5tvBBMpyBif6knfw4 o6Nr/xe9LZxH0I33mpYCxFMfgjCoxVeTiCTGRJOY3culsYQjwlz3qDiGqSPwivr9fL+6JC S3Sv6Tj/QzMUrQJePvpw/P5lq6RJLC8= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=cRRpQ8cU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of colin.i.king@gmail.com designates 209.85.221.48 as permitted sender) smtp.mailfrom=colin.i.king@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689169611; a=rsa-sha256; cv=none; b=EAUPga6XXgcyb+Tv6IgqmQEVxzN7UHiHIWadaGVtrsJ8s3TKubPLbsODx34v9xqt36Lnhy I70kgdjFE8MnpvFseZnNnPOQQiXjha/ivj5vYOB7VnGA+6VY9QYgRA//K7Jyb3Zv86l5mC qCYzoJ9tlonRKLgZ0yJHEReaebj7dzE= Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-31427ddd3fbso7228644f8f.0 for ; Wed, 12 Jul 2023 06:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689169610; x=1691761610; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GrULn3erFwU+XaUY+RvPSd25FEdfChxFqzk38hJNgVA=; b=cRRpQ8cUsltI+oRXJ2bAVSmeDXGxx/qCxmtsM0YPOqLSbJeeVsyHmq0fMP/AIg0358 HYxONQolujXyBBMUMPwlXQbZ07TxJJiHDmO5H89Z3urLiI3YnToMGd+BEOMvgGhoE9gk 3im4y2XLqKIpdAmvDgfqOnfg6fuZ/MQev3d/w8Q81xm+lHaUOzGShTo+4NA8CJACnc8N x7EfRc6ahzTyX9YLXXrWf2wACaTv/N1mb2mBPzv3hhoabGe6J7318kYkNc3qDo678Kbt fOon06R2RGR9QyqoHk+yOu7w+MqFMqMhSx1asAeBbU9wsmlXzFuyIwOGFXe4blEu8Zh4 TVnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689169610; x=1691761610; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GrULn3erFwU+XaUY+RvPSd25FEdfChxFqzk38hJNgVA=; b=caK4jtzNyGymo7OINqbneE0h/dEXfHZNomah2ZW0gZvfb/6QaDwfKKZSm1bJC8Bnwd MFMLValYTmVHEkuD/G7Mhjg/OuW0IULCAuDW56qSvaj+l4QkGGWTBs37OVeH3GnLWXWg BNoPDHGku0IKHrIBXmFDenraZw6Tc1Hihcx4E43mMF3V0rHw7kaUQucDe31bAjKu9/b8 2wCKuNSkOA7DWSYvrn/h5tk0bN83KlbJ5uGc1/QxJo8huFgusbXMwwfizeNWw18dmXya 0RGEz5yFpsOXpZI1/1DGTjdDo/sVLiB0KqgTNwJrB7xJi1HfZB0Z9NvI/sYSALctUyUc 2Uvg== X-Gm-Message-State: ABy/qLahgHJnouQljXL4sDxMxzjGuv23/MuxsRkpTBwIL1xvtFVqAucF ihur8Gv6SIJTPGolM6QLbmE= X-Google-Smtp-Source: APBJJlFZICy2vhMZpUxSaUh1uacPscbsSMw0Z2O/QOnBWI+UPLZ2HtVR5p0wQLU9wYLiQlW4YtiJPQ== X-Received: by 2002:adf:e0c7:0:b0:313:f862:6e3e with SMTP id m7-20020adfe0c7000000b00313f8626e3emr18227576wri.40.1689169609614; Wed, 12 Jul 2023 06:46:49 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id y18-20020adffa52000000b00313f031876esm5161583wrr.43.2023.07.12.06.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 06:46:49 -0700 (PDT) From: Colin Ian King To: Andrew Morton , Shuah Khan , David Hildenbrand , linux-mm@kvack.org, linux-kselftest@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] selftests/mm: mkdirty: Fix incorrect position of #endif Date: Wed, 12 Jul 2023 14:46:48 +0100 Message-Id: <20230712134648.456349-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 7531340011 X-Stat-Signature: wxrn5u5r6fbu89wa8ej78oi89656snko X-HE-Tag: 1689169611-389583 X-HE-Meta: U2FsdGVkX1+kA3GvxEw5Rr+VoQJahHypbRUBfxVkNXgIYK9HKVOM/TClCglwtrgELllDhZfdqKRqalxaK//ERCXa3NnXjcyVTeATIuy3V76QX4XVKPK3JBlbhY6llGiNUUvX6PcNbCu4fypGhOVO9f40aL6iH1PNT9HIf2qZbXWrdF6jNEgVM3cldrhv+HyuryL/6F3opt/F+6lyRluKJILBX8bpsZRyRnWdGoqaWVaM3EO8RKxT94IXF0B4wLJEV2jnFZq7HTy8Ut7llraL5grjXZnZLmepK5kmrQpJ4S5uCozZSS/LMyVoJUnm7ZEnqItkEdQgQCob6aAd+nGOTwMabmncqLYg6XgJOj75fvlHCwHF+OaKnr71CS5ZVKGG79pzW5ttMOtgAv6fpWEnrls25X0nmaQ0YqfL8jN9KhDs3H7zgh12TxoXzVAAKRafMRSSr5ehx/tJD+PFvOkcbGplS2QkvUzSS57yuVySkLdWsbkCXUoPPekWPnRw/5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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: The #endif is the wrong side of a } causing a build failure when __NR_userfaultfd is not defined. Fix this by moving the #end to enclose the } Fixes: 9eac40fc0cc7 ("selftests/mm: mkdirty: test behavior of (pte|pmd)_mkdirty on VMAs without write permissions") Signed-off-by: Colin Ian King Reviewed-by: David Hildenbrand --- tools/testing/selftests/mm/mkdirty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/mkdirty.c b/tools/testing/selftests/mm/mkdirty.c index 6d71d972997b..301abb99e027 100644 --- a/tools/testing/selftests/mm/mkdirty.c +++ b/tools/testing/selftests/mm/mkdirty.c @@ -321,8 +321,8 @@ static void test_uffdio_copy(void) munmap: munmap(dst, pagesize); free(src); -#endif /* __NR_userfaultfd */ } +#endif /* __NR_userfaultfd */ int main(void) {