Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp862234iol; Thu, 9 Jun 2022 16:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5cH/F6ZuyUlyQfMVnKF9sg769ZGj/S8rUy1CmC0Gr/+Ah6LYAnqDLW2gjLERdskNMibDw X-Received: by 2002:a05:6402:90c:b0:415:d340:4ae2 with SMTP id g12-20020a056402090c00b00415d3404ae2mr47902252edz.331.1654815995838; Thu, 09 Jun 2022 16:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654815995; cv=none; d=google.com; s=arc-20160816; b=Bzzbc2NCuf6t8i8qnT2J6JNGrTtI9kue928dkKz5kri+kC8J3ot2uM18MZr2NF0q6c qg8wXv7fYjk302TEvxHpgRQyIP/JclPJqb4BK11xZbjPmy6z4rGpKHNE/QL47Z6HYXlY luqX+QS3pfTb9MUz26FRy+qyViyKJmqmXvJTJn2z0UCBq7A2NR4HVZkzf0nXu5hDFF1N EIZS3gAoQGzEbpfr3A8CN6cxHwI7VMhR/0rTumYcZmL22IcR3YaiGbEAeQ8Qm9A2wAm2 ZQ58/i308fmfYmcS28EdN+s+CysrmxDGpaqKG5IOYSplkN9/Rb9qLqYP+wZ9mi06k5Tx D3IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=+w8VVwED6Dp8wTgVB+vZ7Un8RsUPAYrcjHRsKAD4xYo=; b=c7ZXKBV0Y47fEKJcLORkcjHwrNd9uPdCSSlPz/xnFoq+RISmaWcScWUmDBYMq+yfBJ gZjAdUEwczEnq2MQ1HDIOXBTfiFV2tcOXHU5+Ob5v0g6fGPm72aiXtucLq0+kyTi4J7C msYP4GU7KdWsohjU1k9XpYg+kHC0sgiXarTKDNxHpUaTXgnWUPb5hlEqiusdehoSqLqn E4A6zksBwL7jta1a8LK9EiQAAWH8nHfxHUY/5LhT7JKVJLsojovGdYYi06JUBXCw5oru ELwOTFw1oNI2gIMfNsm/Q37B3UPbibENDR/+SXppacX//DA/6qKpPgTrmVs91CHT8PMQ 9RZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=InsJbxZv; 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 js5-20020a17090797c500b00707e87fe126si29033300ejc.99.2022.06.09.16.06.04; Thu, 09 Jun 2022 16:06:35 -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=google header.b=InsJbxZv; 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 S1345461AbiFIVNC (ORCPT + 99 others); Thu, 9 Jun 2022 17:13:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345583AbiFIVMz (ORCPT ); Thu, 9 Jun 2022 17:12:55 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0722E26D8AD for ; Thu, 9 Jun 2022 14:12:54 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id g17-20020a9d6491000000b0060c0f0101ffso6005334otl.7 for ; Thu, 09 Jun 2022 14:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+w8VVwED6Dp8wTgVB+vZ7Un8RsUPAYrcjHRsKAD4xYo=; b=InsJbxZvLSkW6zLt3p6dpNfxY2n8892EJhnqGHT9ypiLAMtlGyFQTSMqKwKgDgDjV5 iXKFqQTPl1XJHrEeBYg0+0rGmHZiRgZK/mMTrd5PdOWXVoLP8FtsG/q8peJpbJ2BcYy1 7vOUIrm7WI+Mwr66LkywqKxeM8wRrdIToCRaw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+w8VVwED6Dp8wTgVB+vZ7Un8RsUPAYrcjHRsKAD4xYo=; b=X217SyJZFD83itx0hRK8nWqXkLPGJcdgRG7GdsWNUpMEwP2RtHw7San9mYlcdhaOh7 ZpqXcCTbW1D8gEQp2RzVG6f51e3oHs7hplsXhGIXF1YVlTjZTFAnvaZxIZlFot5aGqlx gtIPB2J3+wKRODN5er5QuJk6WQsKoI6jbSzg+ZC/OmpM39g6UNG54h/lMSU+Vk5YseFY fKZX/ecDNOz8vtESfcmuJkpepUpY7o+zAg3krZzdOoKp9Aqcgi41v0zwzdBh2wBVS2xo 8SNc5wPPHk0hJDbGurIHGPPvsDMTM3XTgp75LbQFOJ3CYh5ke2/iajp4TpuNvuhkzzQ4 IA9w== X-Gm-Message-State: AOAM530hL9aKHGnOHmAd3eEjko9BT3h3HHT2P4IPVLYfLGPjkpVY2yxX ZsXzY7IygvyOic+Kq4Mp6uG1bhSLOvXQPA== X-Received: by 2002:a05:6830:1e89:b0:60c:1c6d:476b with SMTP id n9-20020a0568301e8900b0060c1c6d476bmr3975832otr.288.1654809173354; Thu, 09 Jun 2022 14:12:53 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id lc15-20020a056871418f00b000f5eb6b409bsm10939453oab.45.2022.06.09.14.12.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jun 2022 14:12:52 -0700 (PDT) Subject: Re: [PATCH] selftests: make use of GUP_TEST_FILE macro To: Joel Savitz , linux-kernel@vger.kernel.org Cc: Andrew Morton , Shuah Khan , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Nico Pache , Shuah Khan References: <20220609203217.3206247-1-jsavitz@redhat.com> From: Shuah Khan Message-ID: Date: Thu, 9 Jun 2022 15:12:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220609203217.3206247-1-jsavitz@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 6/9/22 2:32 PM, Joel Savitz wrote: > Commit 17de1e559cf1 ("selftests: clarify common error when running > gup_test") had most of its hunks dropped due to a conflict with another > patch accepted into Linux around the same time that implemented the same > behavior as a subset of other changes. > > However, the remaining hunk defines the GUP_TEST_FILE macro without > making use of it. This patch makes use of the macro in the two relevant > places. > > Furthermore, the above mentioned commit's log message erroneously describes > the changes that were dropped from the patch. > > This patch corrects the record. > > Fixes: 17de1e559cf1 ("selftests: clarify common error when running gup_test") > > Signed-off-by: Joel Savitz > --- > tools/testing/selftests/vm/gup_test.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/vm/gup_test.c b/tools/testing/selftests/vm/gup_test.c > index 6bb36ca71cb5..a309876d832f 100644 > --- a/tools/testing/selftests/vm/gup_test.c > +++ b/tools/testing/selftests/vm/gup_test.c > @@ -209,7 +209,7 @@ int main(int argc, char **argv) > if (write) > gup.gup_flags |= FOLL_WRITE; > > - gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); > + gup_fd = open(GUP_TEST_FILE, O_RDWR); > if (gup_fd == -1) { > switch (errno) { > case EACCES: > @@ -224,7 +224,7 @@ int main(int argc, char **argv) > printf("check if CONFIG_GUP_TEST is enabled in kernel config\n"); > break; > default: > - perror("failed to open /sys/kernel/debug/gup_test"); > + perror("failed to open " GUP_TEST_FILE); > break; > } > exit(KSFT_SKIP); > Thank you for finding and fixing the problem. Reviewed-by: Shuah Khan thanks, -- Shuah