Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1984752rwd; Fri, 2 Jun 2023 03:10:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LrUOT/PdC4Z1dbINXwa4iCQ+ep0S32K3wOQ7ri1er7XYkg8JoQMqggr/iKJaz85Z1u4UD X-Received: by 2002:a05:6a00:c89:b0:652:7b99:df30 with SMTP id a9-20020a056a000c8900b006527b99df30mr3608051pfv.25.1685700646700; Fri, 02 Jun 2023 03:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685700646; cv=none; d=google.com; s=arc-20160816; b=ZLiQpSg04aJLHP/JPULr3GCVoBN78T7sJCDdvCeRGg6mL5ulsAWgpPqPlxotcO386t XIrSNDZyJrrMYMujMPXglB2cfIvGlRj8a+LzqStmDV55+x4x/XRDTjZw09JiyXgzqxH0 15hZH1qnr4ljIYS3MKVtL2zyvFQ9dCBVvHZCSX5PKf5QrunmBe2FcEWtAY0SsznXiHC7 2LG4BccfAW3V3NV1P2zVKGChgbrQ51wYoBKZDfvsixRN6Whq9eiZ5ltlI9w5+fwpjIaD ehDL4zN1PGL0bZhbpUtL+CcgP2t/fZP9bh6jdYBaaUHo5U/xeeQieyf6NJVWxuXQDRJl mCDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=8LeN1ZvKWASIvuhMUn/h41k33ceNTGk2ayxE3JMg58g=; b=lhttfGOYOlfauCQzvOViuD4JUfiIPiHDysZf0LJ8hdkspaMntJ5GsZO2BrdYwZ8SXJ 7wFJGPc8uyaJQ3wWqI6IYFQ/ceCmmsCJxBNOE0nKpNZK0ZX6y7Val7QS2hwwElR14103 kHYmOKNjR13eC8UULOQZ9FnaL2M7efdMDti8oL3N2qsnugvdqGfMNGddHjmFg0GrvmJs E5R8RWZlrTK3NFDFlJxgtpNwtvVJSZvz27esD2n9Pz3+4ByTIGBCxA3fc8G3DxeXZJb3 AYRUMDKbp7y8EIfvZu6VTIndbRZdnuzozbtuFlOGiWWqplS2XgUURYkRbIUSJN4fnMqU UEgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iGf7G9F4; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a639304000000b0053fbd5f51afsi762944pge.643.2023.06.02.03.10.33; Fri, 02 Jun 2023 03:10:46 -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=@redhat.com header.s=mimecast20190719 header.b=iGf7G9F4; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235161AbjFBKCx (ORCPT + 99 others); Fri, 2 Jun 2023 06:02:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234402AbjFBKCv (ORCPT ); Fri, 2 Jun 2023 06:02:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2697A1AB for ; Fri, 2 Jun 2023 03:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685700125; h=from:from: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:in-reply-to:references:references; bh=8LeN1ZvKWASIvuhMUn/h41k33ceNTGk2ayxE3JMg58g=; b=iGf7G9F4skyx5qym0oMza4ZoFYtRierK8cBdW6Q04pn2B6pHfSB72ra3YyNu+xZu5n+YT+ 6eHLVE9LmncBuXTgFoitup7IHfoc+fTS3BAGUej9hqe7T39KFuppk/0HM5B0oswizSnfc6 2jCUbFdTjdRp3dfuuBw/Xx0xA2QGt3Y= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-271-tI2Z-u-qOH-CXAFYYdxvbQ-1; Fri, 02 Jun 2023 06:02:04 -0400 X-MC-Unique: tI2Z-u-qOH-CXAFYYdxvbQ-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3f5fb41bc42so10510255e9.1 for ; Fri, 02 Jun 2023 03:02:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685700123; x=1688292123; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8LeN1ZvKWASIvuhMUn/h41k33ceNTGk2ayxE3JMg58g=; b=Tlm3K24sDl6UJo4Fni98s9BOPnF2d1RVrWu6+tgn1/eYYLB7VrzzrZYo21v+TNRYWO GLlgcOdrebGm3w/ai7zqqrHBzFrtHnCw3bJ2m8r3vX4PhtDMhMmoa82pXDslmGVWOtw/ 9UyUhD+6DX/PD2jPlb0IocolhtsfX2vme2QbiVbCeTK7QsqVPMmTsZB1dvS2xSW4gm8A V4NSK3xP/3ESq3co/3VR0rDRQ3drSrIORtY+xZR795gi8gIhIq3BiVEgwRJduCDh2h2d o4QfyjWxcHpmappht+m+VBUwrXiBVywL7gwKlK3exw+6mqzxNbqo+LwEBxU6im2A5M4e 2Bsg== X-Gm-Message-State: AC+VfDzgpGYErGs1CXOHndc6RGdNYR+3Bleu2EL3yGpVtz6L3LojWLpz I6x3ckGhjXVXXy+kFmNaEia6cjzXXJ5DqO06kBCQa9S086FpSiNWW0N42K480Qoykf0Iii3QVEV l7oj9HfP62xJza8L52P9/hQ7W X-Received: by 2002:a7b:ca54:0:b0:3f4:ed25:8aa9 with SMTP id m20-20020a7bca54000000b003f4ed258aa9mr1402118wml.36.1685700123016; Fri, 02 Jun 2023 03:02:03 -0700 (PDT) X-Received: by 2002:a7b:ca54:0:b0:3f4:ed25:8aa9 with SMTP id m20-20020a7bca54000000b003f4ed258aa9mr1402106wml.36.1685700122662; Fri, 02 Jun 2023 03:02:02 -0700 (PDT) Received: from ?IPV6:2003:d8:2f2e:ae00:f2e3:50e0:73f7:451? (p200300d82f2eae00f2e350e073f70451.dip0.t-ipconnect.de. [2003:d8:2f2e:ae00:f2e3:50e0:73f7:451]) by smtp.gmail.com with ESMTPSA id a10-20020a1cf00a000000b003f6050d35c9sm1417655wmb.20.2023.06.02.03.02.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jun 2023 03:02:02 -0700 (PDT) Message-ID: <075c6a32-3829-b7fe-685e-0c19851788eb@redhat.com> Date: Fri, 2 Jun 2023 12:02:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 03/12] selftests/mm: fix unused variable warning in migration.c Content-Language: en-US To: John Hubbard , Andrew Morton Cc: Peter Xu , Shuah Khan , Nathan Chancellor , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, LKML References: <20230602013358.900637-1-jhubbard@nvidia.com> <20230602013358.900637-4-jhubbard@nvidia.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230602013358.900637-4-jhubbard@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 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_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 02.06.23 03:33, John Hubbard wrote: > Declare the variable as volatile, in order to avoid the clang compiler > warning. > > Signed-off-by: John Hubbard > --- > tools/testing/selftests/mm/migration.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/mm/migration.c b/tools/testing/selftests/mm/migration.c > index 1cec8425e3ca..2dede662ff43 100644 > --- a/tools/testing/selftests/mm/migration.c > +++ b/tools/testing/selftests/mm/migration.c > @@ -95,7 +95,7 @@ int migrate(uint64_t *ptr, int n1, int n2) > > void *access_mem(void *ptr) > { > - uint64_t y = 0; > + volatile uint64_t y = 0; > volatile uint64_t *x = ptr; > > while (1) { Same comment as for previous patch. -- Thanks, David / dhildenb