Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6F8AC433EF for ; Fri, 17 Sep 2021 22:45:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 84B2A61152 for ; Fri, 17 Sep 2021 22:45:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236562AbhIQWrN (ORCPT ); Fri, 17 Sep 2021 18:47:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232201AbhIQWrM (ORCPT ); Fri, 17 Sep 2021 18:47:12 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E57C061574 for ; Fri, 17 Sep 2021 15:45:50 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id i13so11892642ilm.4 for ; Fri, 17 Sep 2021 15:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=s8oIHj/9NV18y7Efw1SPbOXztrTlc/2JIRRHKj00s8o=; b=GEV1lp1FWsl9aCGq/lYX6WjdxzlGJNJNJk+XXeP6TBFDv+1s1hMpLwhVbIHBX0gHW1 KFfu6nrtKr92XGR18HJu6nD5t1fy0ZSB8+ofV5t9GKDpCVxoAP2JLLNLkO2DWtFcyY20 PwbGDYD+DVnKDRV4qIez7x9rKcI7s8GLMThQs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=s8oIHj/9NV18y7Efw1SPbOXztrTlc/2JIRRHKj00s8o=; b=AZ9BKCJ4EBuz5joyqhdT42e9Ll5sqBOOGDhj3OfQyiqihK3jkRzWK/dlwe9XZ2vzEP uIemKjXtlqq3JMwfd3tH5aKU8aJ41q5OQEa9+tbGJY1c/jCLM6YSDLwz4lQ5VFwwSvS6 X0SPvggeSod2p7ayRzAyodj643t3w10kWIIGsR8Twd0UJhlnSwSBiFz+pt+M3fQ/XA3Y c6D2K4S5ZgyaHSOKqnapL1VWrIX3ivwNwfidm2cdF/7lqn7otH2ffr3B9eaNZ/VXXsEi 5GGKvA7M2bu6enUzbC+X3pMR3nHGVfoCi6zuJxPQ3x7np1OxlvOTGbS6jddJdgdVkTd9 9onQ== X-Gm-Message-State: AOAM533G0V2WfcueBtrPSapX/llq1A5Hxa1XibrJcI0RxHQih8FxppjO 8pSdOv17YJv4csckKhg6+iZ/LPJhYZp/mw== X-Google-Smtp-Source: ABdhPJylHR3n8gVPmxcCHcbnvnfV/4UGWy0eJTkCtam3aFRjDRpd5MsCL0miGgcspW8EJqzJSJFxNw== X-Received: by 2002:a92:cb43:: with SMTP id f3mr10037558ilq.261.1631918749788; Fri, 17 Sep 2021 15:45:49 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id s12sm4474952ilo.70.2021.09.17.15.45.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Sep 2021 15:45:49 -0700 (PDT) To: David Hildenbrand Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan From: Shuah Khan Subject: selftests/vm madv_populate.c test Message-ID: Date: Fri, 17 Sep 2021 16:45:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Hi David, I am running into the following warning when try to build this test: madv_populate.c:334:2: warning: #warning "missing MADV_POPULATE_READ or MADV_POPULATE_WRITE definition" [-Wcpp] 334 | #warning "missing MADV_POPULATE_READ or MADV_POPULATE_WRITE definition" | ^~~~~~~ I see that the following handling is in place. However there is no other information to explain why the check is necessary. #if defined(MADV_POPULATE_READ) && defined(MADV_POPULATE_WRITE) #else /* defined(MADV_POPULATE_READ) && defined(MADV_POPULATE_WRITE) */ #warning "missing MADV_POPULATE_READ or MADV_POPULATE_WRITE definition" I do see these defined in: include/uapi/asm-generic/mman-common.h:#define MADV_POPULATE_READ 22 include/uapi/asm-generic/mman-common.h:#define MADV_POPULATE_WRITE 23 Is this the case of missing include from madv_populate.c? thanks, -- Shuah