Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2495722pxp; Mon, 7 Mar 2022 17:08:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ6MyEHnbRtZvbMMQ8VeuUJJVoLCXdc3Hp4OcEqkIicd4ssw6AwTI+sM9eHpXqRt+k1+zh X-Received: by 2002:a17:90b:2303:b0:1bf:7dc6:bc7f with SMTP id mt3-20020a17090b230300b001bf7dc6bc7fmr1915871pjb.162.1646701698015; Mon, 07 Mar 2022 17:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646701698; cv=none; d=google.com; s=arc-20160816; b=zxmQQlS6eGpO6IhXR/PZXWr9w1X/I6b3ZYXT4rExjKV32bkCIIJPyfVjvmltzi8uym EfYUcP95DME2dUnrqprE/h334Yaj6JwNxxKQU2fwesLvpENx3cguBsd8Da1tSUbgEHgX w7oE+TPIYq85YqlUMBCtg51vu+2DNBsL9ATq3CFNTgbzZ07qdGgsL+UEmZeZp3eWqiRT e45YfFJRqa71eXZZf+LKzztwZhNJzUBd7VOnwBuoYtD7hCW0okjSPJqDHL0T34I8izDk bwJ9XPzbkG+AqqIXmgrR7NtrlnAl3G2lKpIPq/0ckdzcmA1kSySd8tSAJjdZkZNK3dHe HoIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WxlXZbKegotTRphKHmCehZpEgIJ4wMzTilNUVs/+5nY=; b=N9yFsiotLHudRysvwMznTDEi6s9vdSbDlVrFQNZ6aBRS3/YRWflffoOBYFHfmEV37e PYrJV78MgSMLz6jl8v4VtCAgR06/Kg6Mg9rGPTaaCy7JQ16cNQrL7lpg3jdjVJRALgv9 osBtrGFamIEpSFVFJ0Fn7cBZ+FnCcOHiaGzkIa1w6Zz4WVOxHOwE+n4aDyABgDIDu8Ws UFAGL9OW/OcnRGqFZxuCXrPgMJ5lJJzJ0RYnVBfE8ka4pP5TzDm3XThfhwI0fHrBJ4V+ yS6JNymWnvnewP2O3/tlLEmoCc64JpYpGXifR/DfypHMqj7lxG0uu2xBZ8oaWhRi7SYg uBOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b="8J+stYa/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a63dc17000000b00378a97f1310si13541374pgg.807.2022.03.07.17.08.00; Mon, 07 Mar 2022 17:08:17 -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=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b="8J+stYa/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242562AbiCGQoX (ORCPT + 99 others); Mon, 7 Mar 2022 11:44:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241851AbiCGQoS (ORCPT ); Mon, 7 Mar 2022 11:44:18 -0500 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 896516E8DF for ; Mon, 7 Mar 2022 08:43:23 -0800 (PST) Received: by mail-qk1-x730.google.com with SMTP id bm39so12453975qkb.0 for ; Mon, 07 Mar 2022 08:43:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WxlXZbKegotTRphKHmCehZpEgIJ4wMzTilNUVs/+5nY=; b=8J+stYa/ocPVv4jvR8jIsD+/+b5SachD9ks6Kn+B8F/whEu+72+yI/G6t+314zdcxd Df+s50+d8n2lhyrpKZXDxkiH6o/PZj8inwflMIuKRKBkEjpZ9GhjKmsZqCRQfiaEkkB/ /DGdHIeDv/AAfifFcb1K1Ci3zrSPR+1em5+roDCBfagbueoLwJOj2IehLzQ/2I9SBUf4 UApXBg7gBCypq1vebggjm1qWM8lomACQseQGiRbLtWf8vZmCOolN5bgBwPqNFrxKiuXa fSddDQcgI12TtMdFR1JjQpbKaFb2oVfG/4P4tV5KGrVdAPPfVj7vMQ8u0XaeNcdVUy6E JZCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WxlXZbKegotTRphKHmCehZpEgIJ4wMzTilNUVs/+5nY=; b=ybv6VnYjmtTt0PaCzdOJSRSVobgVzGZLJs/MQyZ0cck3zPpApRWLAmia1K9Ng0I34u lpuF9I4F7lYdpfVaIoY2IqOUP3T6yTXy81dk4SKh0HGcusBUhbOruhNZWQWmK9n8Tw6d vG9Uo/I9zJpHRGOLy4KGzDjYcEcSMRy1je4dA6Uo5GGZfRSW0aEjqYU0mH9iBD42gCMx Xq4ziyeCgw+8ByfJnvpUKQKgNJQhhvTKdu/TxYYQrBTQMF4f21O65kHFcSLZ27K6BKye oW4bY6quhSypkPHsk4XyNOCylSOjhosDUnv/71lXI+9zZ+dCcbRWF3QbfFcRPY6KaWkR J5vg== X-Gm-Message-State: AOAM53289Hs93ZSrr2ztdgdzBll5QiuuL48F7LC/Dt5fgEEqFdH0BvmJ gfacLPUromLA5AvnREUwNbREYw== X-Received: by 2002:a05:620a:4706:b0:67a:e619:8615 with SMTP id bs6-20020a05620a470600b0067ae6198615mr7474264qkb.775.1646671402742; Mon, 07 Mar 2022 08:43:22 -0800 (PST) Received: from localhost (cpe-98-15-154-102.hvc.res.rr.com. [98.15.154.102]) by smtp.gmail.com with ESMTPSA id j11-20020a37a00b000000b0067b436faccesm622651qke.122.2022.03.07.08.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 08:43:22 -0800 (PST) Date: Mon, 7 Mar 2022 11:43:21 -0500 From: Johannes Weiner To: Stephen Rothwell Cc: Andrew Morton , Linux Kernel Mailing List , Linux Next Mailing List , Linux Kernel Functional Testing Subject: Re: linux-next: build failure after merge of the akpm tree Message-ID: References: <20220307215530.7c981424@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220307215530.7c981424@canb.auug.org.au> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Sorry about that. This should fix it: --- From a4d90a5faa418d98f925abe47b1a4fcffc4283f9 Mon Sep 17 00:00:00 2001 From: Johannes Weiner Date: Mon, 7 Mar 2022 11:38:42 -0500 Subject: [PATCH] mm: madvise: MADV_DONTNEED_LOCKED fix On MiPS: mm/madvise.c:55:7: error: 'MADV_DONTNEED_LOCKED' undeclared (first use in this function); did you mean 'MADV_DONTNEED'? Define MADV_DONTNEED_LOCKED on archs that don't use the common mman.h Reported-by: Stephen Rothwell Reported-by: Linux Kernel Functional Testing Signed-off-by: Johannes Weiner --- arch/alpha/include/uapi/asm/mman.h | 2 ++ arch/mips/include/uapi/asm/mman.h | 2 ++ arch/parisc/include/uapi/asm/mman.h | 2 ++ arch/xtensa/include/uapi/asm/mman.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/arch/alpha/include/uapi/asm/mman.h b/arch/alpha/include/uapi/asm/mman.h index 56b4ee5a6c9e..4aa996423b0d 100644 --- a/arch/alpha/include/uapi/asm/mman.h +++ b/arch/alpha/include/uapi/asm/mman.h @@ -74,6 +74,8 @@ #define MADV_POPULATE_READ 22 /* populate (prefault) page tables readable */ #define MADV_POPULATE_WRITE 23 /* populate (prefault) page tables writable */ +#define MADV_DONTNEED_LOCKED 24 /* like DONTNEED, but drop locked pages too */ + /* compatibility flags */ #define MAP_FILE 0 diff --git a/arch/mips/include/uapi/asm/mman.h b/arch/mips/include/uapi/asm/mman.h index 40b210c65a5a..1be428663c10 100644 --- a/arch/mips/include/uapi/asm/mman.h +++ b/arch/mips/include/uapi/asm/mman.h @@ -101,6 +101,8 @@ #define MADV_POPULATE_READ 22 /* populate (prefault) page tables readable */ #define MADV_POPULATE_WRITE 23 /* populate (prefault) page tables writable */ +#define MADV_DONTNEED_LOCKED 24 /* like DONTNEED, but drop locked pages too */ + /* compatibility flags */ #define MAP_FILE 0 diff --git a/arch/parisc/include/uapi/asm/mman.h b/arch/parisc/include/uapi/asm/mman.h index 9e3c010c0f61..a7ea3204a5fa 100644 --- a/arch/parisc/include/uapi/asm/mman.h +++ b/arch/parisc/include/uapi/asm/mman.h @@ -55,6 +55,8 @@ #define MADV_POPULATE_READ 22 /* populate (prefault) page tables readable */ #define MADV_POPULATE_WRITE 23 /* populate (prefault) page tables writable */ +#define MADV_DONTNEED_LOCKED 24 /* like DONTNEED, but drop locked pages too */ + #define MADV_MERGEABLE 65 /* KSM may merge identical pages */ #define MADV_UNMERGEABLE 66 /* KSM may not merge identical pages */ diff --git a/arch/xtensa/include/uapi/asm/mman.h b/arch/xtensa/include/uapi/asm/mman.h index b3a22095371b..7966a58af472 100644 --- a/arch/xtensa/include/uapi/asm/mman.h +++ b/arch/xtensa/include/uapi/asm/mman.h @@ -109,6 +109,8 @@ #define MADV_POPULATE_READ 22 /* populate (prefault) page tables readable */ #define MADV_POPULATE_WRITE 23 /* populate (prefault) page tables writable */ +#define MADV_DONTNEED_LOCKED 24 /* like DONTNEED, but drop locked pages too */ + /* compatibility flags */ #define MAP_FILE 0 -- 2.35.1