From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1362C77B73 for ; Mon, 5 Jun 2023 11:37:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232526AbjFELhQ (ORCPT ); Mon, 5 Jun 2023 07:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232513AbjFELhN (ORCPT ); Mon, 5 Jun 2023 07:37:13 -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 E790BFE for ; Mon, 5 Jun 2023 04:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685964986; 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=1OkG9olqH5PYoud9/38E7Kg0uccFHuOTuI1AZcy25Yc=; b=Tg3hbupjduTMCNpF5izWPeU5HxZusadaIkfaPMvWC6TejNiwRPWA3O7445/N7YdUbiQ9uY EiwxiN0bruRN5npVLhiXDYpShbxaDeKjd8dWnJR+5TJTlyb+Oz0SUJlKa1BYC+3UDC9/v7 KZxRnR1kX07qyRn0T9VmRUU9mXWw4V8= 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-141-aMNyFDGGOEOo-pHSDdrfMw-1; Mon, 05 Jun 2023 07:36:25 -0400 X-MC-Unique: aMNyFDGGOEOo-pHSDdrfMw-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3f41a04a297so22772055e9.3 for ; Mon, 05 Jun 2023 04:36:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685964984; x=1688556984; 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=1OkG9olqH5PYoud9/38E7Kg0uccFHuOTuI1AZcy25Yc=; b=RL702hRSbcNgqY9DP203utxIeCev5OF8cEw9OUWBbmxh2LVJHkzq+6v+uOWXX4Szjs XDfGJ+R43gsn0SYn7t6+afXBrdgsghBB5AjEkp3/JRBDx0PawwmrDq7kbSWGCeOlPogD SLg6gnz/kE3Dkd9lWKfqUQ8RcBpgcDZI5f8hPbJrjA3S3znT9eMVfgJLtamDGU+az91l O9xodm7vlCJk2nyqeIa4wOOlJ1+uNrm+tcD8el9sfyR19YcgwZhnyuE80m3kqPSwxYTI f2m0uHUXPJghoLj6NR7gQO3gwhItol5yb6ebI3odpSd8v+JkKoLrI4Tv5I2XjEXs1+vx 51CA== X-Gm-Message-State: AC+VfDzXQy1gi2KJjhea8xLW82YwY9Op+WD9UorhqtMY8DyzUIwQvjL9 v2w8kMO5mvxnqiRLBSOvDh6dvgzvQZ9xZnyHFaVlw9C7jt1B/Z5huLGLqcLWU9eFiMW3t6pLFWq HAUxNfJ/bbkfVtgCtBmvIwDKtx886 X-Received: by 2002:a05:600c:22d4:b0:3f4:28db:f5ff with SMTP id 20-20020a05600c22d400b003f428dbf5ffmr6047803wmg.35.1685964983938; Mon, 05 Jun 2023 04:36:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ730wx1qPM41cxYciesFUjVPXLwung5A2wk66PQ+XPHH3tXLqc84LkCheTb8+lJicuJyZ239Q== X-Received: by 2002:a05:600c:22d4:b0:3f4:28db:f5ff with SMTP id 20-20020a05600c22d400b003f428dbf5ffmr6047791wmg.35.1685964983736; Mon, 05 Jun 2023 04:36:23 -0700 (PDT) Received: from ?IPV6:2003:cb:c737:8f00:ed9:16b8:4e22:5820? (p200300cbc7378f000ed916b84e225820.dip0.t-ipconnect.de. [2003:cb:c737:8f00:ed9:16b8:4e22:5820]) by smtp.gmail.com with ESMTPSA id z10-20020a05600c220a00b003f42a75ac2asm10536563wml.23.2023.06.05.04.36.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jun 2023 04:36:23 -0700 (PDT) Message-ID: <4a47fbdd-c8dd-d20f-bc13-08a56dc05647@redhat.com> Date: Mon, 5 Jun 2023 13:36:21 +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 v2 03/11] selftests/mm: fix "warning: expression which evaluates to zero..." in mlock2-tests.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: <20230603021558.95299-1-jhubbard@nvidia.com> <20230603021558.95299-4-jhubbard@nvidia.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230603021558.95299-4-jhubbard@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 03.06.23 04:15, John Hubbard wrote: > The stop variable is a char*, and the code was assigning a char value to > it. This was generating a warning when compiling with clang. > > However, as both David and Peter pointed out, stop is not even used > after the problematic assignment to a char type. So just delete that > line entirely. > > Cc: David Hildenbrand > Cc: Peter Xu > Signed-off-by: John Hubbard > --- Reviewed-by: David Hildenbrand -- Cheers, David / dhildenb