Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2206976pxp; Mon, 7 Mar 2022 10:22:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4uzG5J7jAYhzChh7Ee7J8gdHgjnwaawrHivnzeMUAN/3zVy/FlKnxtpK/5Ggad0uAxqFf X-Received: by 2002:a17:907:6d82:b0:6d6:da31:e542 with SMTP id sb2-20020a1709076d8200b006d6da31e542mr10289606ejc.135.1646677370859; Mon, 07 Mar 2022 10:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646677370; cv=none; d=google.com; s=arc-20160816; b=XJqU1ULMG4oGZ6iMaPsp43O9UIanTKAgOu77UFjM0vRQY3wKXcE/nibuRoFP2n7LTR ovAeMr61WpvG0r918e5Dx1XrUsu+NgArcsb4dhfj+yhK/dgDzhbUEjSZsa8JiqWiehG0 p+xrQAjyVeC10StAyFXqRtlpuAwAbMwLAiC6RCprSOvAIPkEM4f9JCqxPD1i4qInbMya dXvIVRK7h2E/M3E/OgFNlsUxh7Z/cseJJSeRqVS81PKmjQZdXxC2fBiCvuCmTAks5b+q QOJ0mBbypvvrueU7cWhRrPJeabZGSXjtoP8NjU0AYW/gY4fjIqlZ9T4Nb5lC3WkkaI/a xJxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=spwDtQzqov6xdiTHgUF8tLqNnixH1cAZ4fX4lvN00K8=; b=Iw2j8lyGmBwgK46oGgwVCVdUeYu2JrHH73/h7qYXpOo2+Qv5qsHUZcfL6G37pWFuSY xznE4aB7IZLdlQHzmlo+BETjhOaAUpoT+CA4uHkMhD10gLXh+XYRiv7duLNaolCbFLeu uqrzH/QFIBZJVX9H12C7Ku0/lmk+Td1Md4Rxt5cFOq4Xg/XU+85J15ruKGte0qodIuos aSlmA5cOJxvCeAQOGLE48JnwZwzLiq7wESxdCFEZjtbcIsw/Zc5Mow/7wumXfOlQHpGG UDueS0X0ocKG+bQXNesWwQfPUKPJgq87JFv0b2k6jia+YqIy2u5JCjLetcWDd/JvwQJ7 Wluw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YMW8qBai; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a170906059700b006d004034a58si8114392ejn.227.2022.03.07.10.22.27; Mon, 07 Mar 2022 10:22:50 -0800 (PST) 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=@linaro.org header.s=google header.b=YMW8qBai; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244065AbiCGQRA (ORCPT + 99 others); Mon, 7 Mar 2022 11:17:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244105AbiCGQQt (ORCPT ); Mon, 7 Mar 2022 11:16:49 -0500 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AB4F673CB for ; Mon, 7 Mar 2022 08:15:52 -0800 (PST) Received: by mail-yb1-xb2e.google.com with SMTP id u10so12168730ybd.9 for ; Mon, 07 Mar 2022 08:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=spwDtQzqov6xdiTHgUF8tLqNnixH1cAZ4fX4lvN00K8=; b=YMW8qBaid5dvLq5OwhT4QKS7JaLl4pwVUvKdJuM8oLuDEXzs3Ja8XsVC3LmRUmBA5L XixXz1apmC69SdQdg75afaQvgrXvXW64tVEJE5rDIYGcxaOVtrvwz0HQt4nz2ryVBjkf MOh+u6+W3QpVSxVH7Fb4G6NuD6XAdUgrVqJVd62a1C08QYUvmofdAEtD5Bw5B03qWrI8 Of3ezMFve7k3YnARANbLVma/aTo2XxuRycQye7xkXZ4QTGluJ535teRfPWinMlZnqdC4 cA5Slvdh63OrJGgvgBiOW4qBq+SI96rqP8i1S1ZUI1jiQxPRBPr95ecXkcP0egXFjSlJ mdVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=spwDtQzqov6xdiTHgUF8tLqNnixH1cAZ4fX4lvN00K8=; b=RWKTBZgS/6AIfrIsQQ0jB/KcCqw7/sCZWoenY+Rr92GVyyjHsa8dNfonDRqhKa2KEp RKELwYWG5x40YSwp2Jp053lxXepLRJo1Hc1QPcozDUiJUjgoqkjIuDaVxyDsP5HCbqOh aRuTXaeMs+lDkWWzr/04H0Rs4G2ezvrp9JTnILG/iyXPGcmCCZxmg7vbp69VQFQStk7f jMk6w+wUDxfJzK2MewmYshJ7Ht/dG/QlRFplOMpwXzFxBbR5PADHFUBdp9l3Jae/+Xgv JrPwgsygalRx4WNiCI5FY1hSJNmbvRQldJdS0kqEDaAFqnfEvhvX33iW085lnzB22JOv NpjA== X-Gm-Message-State: AOAM5328asHCMTiQkwjnlifJXvS+Rb32AemmNciF80kwv+LVLk+vtybS Y0U8CmSdIagJge4fXlXVzl6Uf+scqmAw2+THJimL6W1QUE7puvhq X-Received: by 2002:a25:5090:0:b0:628:b76b:b9d3 with SMTP id e138-20020a255090000000b00628b76bb9d3mr8777009ybb.128.1646669750789; Mon, 07 Mar 2022 08:15:50 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Mon, 7 Mar 2022 21:45:38 +0530 Message-ID: Subject: [next] mips: madvise.c:55:7: error: 'MADV_DONTNEED_LOCKED' undeclared To: open list , Linux-Next Mailing List , regressions@lists.linux.dev, lkft-triage@lists.linaro.org Cc: Stephen Rothwell , Andrew Morton , Michal Hocko , Mike Kravetz , Shakeel Butt , Vlastimil Babka , Nadav Amit , David Hildenbrand , "Dr. David Alan Gilbert" , Johannes Weiner Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Following build regressions errors/warnings noticed on mips architecture on linux next-20220307 build. make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=mips CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc' 'HOSTCC=sccache gcc' mm/madvise.c: In function 'madvise_need_mmap_write': mm/madvise.c:55:7: error: 'MADV_DONTNEED_LOCKED' undeclared (first use in this function); did you mean 'MADV_DONTNEED'? 55 | case MADV_DONTNEED_LOCKED: | ^~~~~~~~~~~~~~~~~~~~ | MADV_DONTNEED mm/madvise.c:55:7: note: each undeclared identifier is reported only once for each function it appears in mm/madvise.c: In function 'madvise_dontneed_free_valid_vma': mm/madvise.c:789:19: error: 'MADV_DONTNEED_LOCKED' undeclared (first use in this function); did you mean 'MADV_DONTNEED'? 789 | if (behavior != MADV_DONTNEED_LOCKED) | ^~~~~~~~~~~~~~~~~~~~ | MADV_DONTNEED mm/madvise.c: In function 'madvise_dontneed_free': mm/madvise.c:859:47: error: 'MADV_DONTNEED_LOCKED' undeclared (first use in this function); did you mean 'MADV_DONTNEED'? 859 | if (behavior == MADV_DONTNEED || behavior == MADV_DONTNEED_LOCKED) | ^~~~~~~~~~~~~~~~~~~~ | MADV_DONTNEED mm/madvise.c: In function 'madvise_vma_behavior': mm/madvise.c:998:7: error: 'MADV_DONTNEED_LOCKED' undeclared (first use in this function); did you mean 'MADV_DONTNEED'? 998 | case MADV_DONTNEED_LOCKED: | ^~~~~~~~~~~~~~~~~~~~ | MADV_DONTNEED mm/madvise.c: In function 'madvise_behavior_valid': mm/madvise.c:1129:7: error: 'MADV_DONTNEED_LOCKED' undeclared (first use in this function); did you mean 'MADV_DONTNEED'? 1129 | case MADV_DONTNEED_LOCKED: | ^~~~~~~~~~~~~~~~~~~~ | MADV_DONTNEED mm/madvise.c: In function 'madvise_dontneed_free': mm/madvise.c:865:1: error: control reaches end of non-void function [-Werror=return-type] 865 | } | ^ cc1: some warnings being treated as errors Reported-by: Linux Kernel Functional Testing steps to reproduce: # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake tuxmake --runtime podman --target-arch mips --toolchain gcc-10 --kconfig rt305x_defconfig Build log [1]. -- Linaro LKFT https://lkft.linaro.org [1] https://builds.tuxbuild.com/2639g1Qugd13m3pgWwKp4I34Cb1/