Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1174225ybg; Thu, 4 Jun 2020 03:03:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqm7dKFvo8a7ywUMlVD+KIWfEZufbAc1GSAAS6vJZ4ptReV+GBUvYyCcvDTzIIgUqH9RcT X-Received: by 2002:a17:906:4944:: with SMTP id f4mr3172214ejt.3.1591264985019; Thu, 04 Jun 2020 03:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591264985; cv=none; d=google.com; s=arc-20160816; b=t6zz7lLCQ/mJCLbKa6+rpHy1DjclJmyFH2rhBXwaRoT2YCaxHLCX4dJ/zUEiH4kx7k rH/X/hMSF4tA36R/woXTSxnP+G/uI2wT0Wtx6vr6HZZUaJR5DC7pvkscW3Sxpew8Dkkn xJVwJiZreWjb3V19LosL79Prd30MHliiyQ8oFRTFzZXh3/ylBJ2C8f+DWitenYB9dBkA u0GH9WgxjRwnKEuWNZTq9jqSu5bOlfPO2HDusYfvFOSjb+XjElSTEm86bp3PQJwTe9/U JWth+GWv0vRDJ2Zhswl/UbdvgbdYZUpatN9Iu59Ic5CT5HWFlqQncsdl1+NmcBvuWPTL KSSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature; bh=30zbvCSiUNFC/4JC6r6s08hU1h5yZMzf9vYI5wggAUk=; b=Tbui5e285tjhu4B2rxSOfYtgPBckffegEDoheAQilII9yW7wh0k914gHMiIZpW9r8M 5o7bXLZvKFEKH3AMn/GwG+cz8Il0p48pZOnciQluT/A74WrApg2tqak38BrrDFAC7YLE KppiC7J2mNMwmGZryvoXSAMhqHtMXGnr3xzbW6Pcg43/I4WEMe7n5KFtRJ6wkK/PfYnU Ovxm+ToKgoMW8WhVUcAaPMpVdzfLOogpIqtcxrMPUzKAZ1JD3FY/iabHI3Te4sKzI3q6 S2N6vXM2+4fug/3GkX3WiJBA7tJnzW6CJU8Rgu5Kn5faswK23dsiUrTp8+y5PZojshzz YzTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X1ULfBB6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si1855931edz.444.2020.06.04.03.02.39; Thu, 04 Jun 2020 03:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X1ULfBB6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726604AbgFDIGv (ORCPT + 99 others); Thu, 4 Jun 2020 04:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbgFDIGu (ORCPT ); Thu, 4 Jun 2020 04:06:50 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B669BC05BD1E for ; Thu, 4 Jun 2020 01:06:47 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id j8so5290873iog.13 for ; Thu, 04 Jun 2020 01:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=30zbvCSiUNFC/4JC6r6s08hU1h5yZMzf9vYI5wggAUk=; b=X1ULfBB6m9lNFEUzzxvnEzyoXzk+e9lxy25yEd0WsJ3q60vDpYJVIdXq2FaaLXmQvM sayG59JEagjzc2FRuRVVh1IhEOqCytQlvMyB44xHizQOnuaKAZdWjT9q1tAz9BnWL9tb LLRtATBme2H8jMWw3PeDk309pUT2zvOOCq46f5GYJdhNX8xyOLkIBZoL6eBTtCTcBPc1 wHkOYwMacy8xX6OdYGPWuAS+WMo0b64pwKAqpMj81cwNE2IRkHvFk7XNFlD2PYZ0UOM+ UI6W7R4vbH68xHT4VHiuCb8x537MhsSnDQuajblLnQsnMEatwZJNkDnaEC7WerA6sTaJ +fWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=30zbvCSiUNFC/4JC6r6s08hU1h5yZMzf9vYI5wggAUk=; b=C4tXFMLY1a/3/6CNCgNaYuIu6CYF6a3cbhK+Tx+KLY7MiEkvxAairU2c1VIASI3kpf by4xo4H4t+kcl+GuO+wouy89xl4uuGIJN3x+39Ew0ERvna3f5yK9E4A1VZridLULMUwn l6p4Ly7SESJrFRhJb+jq2XS9UpbByau2idkiVK6tCw+kThUlxl54Bt7k3BY6WTFj+dPA dnCO2ovG6FDHIrIgAO8MK+TEiYpJo4JBma1LjAj2FW0A2ecvTd0tDI/n4mIQRZGRa6Ur YYtNTRrab+x6QjIzOGrYERIMYo8wRJA+CQ5KGFkBKMO16zPc0aZl+ggm/iqIcM16In7V M+3g== X-Gm-Message-State: AOAM531y3WyR5qSK61MH/0q2HhOIYJjGTMJ3F/rgr7hKQlGG1p26gNwc lA3kKu638NGFWj1ljQNQluNIKTOnMOteNjh4TZc= X-Received: by 2002:a6b:5915:: with SMTP id n21mr3050044iob.103.1591258007026; Thu, 04 Jun 2020 01:06:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:d54a:0:0:0:0:0 with HTTP; Thu, 4 Jun 2020 01:06:46 -0700 (PDT) In-Reply-To: References: From: youling 257 Date: Thu, 4 Jun 2020 16:06:46 +0800 Message-ID: Subject: Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock To: Michel Lespinasse Cc: "Liam R . Howlett" , Andrew Morton , Daniel Jordan , Davidlohr Bueso , Hugh Dickins , Jason Gunthorpe , Jerome Glisse , John Hubbard , Laurent Dufour , LKML , linux-mm , Peter Zijlstra , David Rientjes , Vlastimil Babka , Matthew Wilcox , Ying Han Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org i build linux next kernel have the kernel/sys.c error. 2020-06-04 13:57 GMT+08:00, Michel Lespinasse : > On Wed, Jun 3, 2020 at 9:35 PM youling 257 wrote: >> I have build error about kernel/sys.c, >> >> kernel/sys.c: In function =E2=80=98prctl_set_vma=E2=80=99: >> kernel/sys.c:2392:18: error: >> =E2=80=98struct mm_struct=E2=80=99 has no member named =E2=80=98mmap_sem= =E2=80=99; did you mean >> =E2=80=98mmap_base=E2=80=99? >> 2392 | down_write(&mm->mmap_sem); >> | ^~~~~~~~ >> | mmap_base >> kernel/sys.c:2402:16: error: >> =E2=80=98struct mm_struct=E2=80=99 has no member named =E2=80=98mmap_sem= =E2=80=99; did you mean >> =E2=80=98mmap_base=E2=80=99? >> 2402 | up_write(&mm->mmap_sem); >> | ^~~~~~~~ >> | mmap_base >> >> why not rename kernel/sys.c mmap_sem to mmap_lock? > > The proper fix would be to use the mmap locking apis defined in > include/linux/mmap_lock.h instead. > > However I would like more information about your report. Did you apply > the series yourself ? If so, what base tree did you apply it onto ? If > not, what tree did you use that already included the series ? > > Thanks, > > -- > Michel "Walken" Lespinasse > A program is never fully debugged until the last user dies. >