Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1122008ybg; Thu, 4 Jun 2020 01:21:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxuREZboJM6FGzY8uBqkjb84xZISzbHD/PQ93dnspYmHCbxgeO59Y9Z6oQl6fhhDYuehzL X-Received: by 2002:a50:9b42:: with SMTP id a2mr3249814edj.57.1591258860628; Thu, 04 Jun 2020 01:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591258860; cv=none; d=google.com; s=arc-20160816; b=CbD3mewdcN3eC0pZ+2lqtEkEqmUgciykW25ieZzmJT6G3ToN6+Yb5Muvo0vWV4+ZA9 Ixk2MyEWgFLELx3Mloq8w2yFgEUMDaaRHWP3Djp/xDqjW+6vDr3EtLQguDUxpSj8PDO7 VuhExZ2wNRcm5RUboMIhSV8hkxjqrrj3w7wjgKIPnIkl5UIMYkZhJgLfsO63+KVSxnfj J4JC43ppEm5OP/a/LTx97pbyCkg9yQrUHvrMz+vnPyhq7U/qFAldBEVlvwsEPm0ng0aB i93OAuN0dO9H/wE4XbSa+OlPXE2eMHYzd2vuQIbEW+0ZCuVotyEvSLkgd4hiYCb4e8ef QJFw== 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=kjjlTnSa7zCVTFiJJ897/S5uuNv1Eo5hAY1pnGGn8sA=; b=ps24mVZn0cQsQnF6MFUxcFzx53ZLvt97BKeq5E3rHcYHInHAX1bPu6OA4Ms9eo1Nii Zbp5DiJ//CBx7VUcwiQHpVovEM5I+JtT+IFOFtEjFGMnBBZk8sKDcK0QLtQc0hU5jHMj IsO6POnMMhtu4Z+o6N2sDtUJ0WajRXOWuEsblaROw/7KZXiBVIlnrfawTTm/l/EmZkvI 1StIuwScmlwZH/w09q24EcopT/QdpBRQLatcSzRoW1dxTwfCgoTKyVtucMqMfAITSeQh taJyxQsUq8c59OVqHUVjjpq4rVY4cZcsTmAF2DRA62N0Pb6Qnlq7D2AaEPP8miNOAyFC Qkqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nabm25sR; 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 s3si1216123eds.446.2020.06.04.01.20.37; Thu, 04 Jun 2020 01:21:00 -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=Nabm25sR; 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 S1726996AbgFDIQK (ORCPT + 99 others); Thu, 4 Jun 2020 04:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbgFDIQJ (ORCPT ); Thu, 4 Jun 2020 04:16:09 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8849C05BD1E for ; Thu, 4 Jun 2020 01:16:09 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id t8so5203239ilm.7 for ; Thu, 04 Jun 2020 01:16:09 -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=kjjlTnSa7zCVTFiJJ897/S5uuNv1Eo5hAY1pnGGn8sA=; b=Nabm25sR4PLNEV7zV1UPUPkYNimXTKjp+dGu60tvTZNRb8dv2u/4hl78eSIISghSTr vtY7oYkZ5I3LZUZcTi048QdGyKiPWLnSlqSR6RADlgtzYpRgolVWIzrzV0bVt5k4YZCS 53+UAJDwhqvzBfflpoYV0nwjk+8UNIKfXuEOTzr1Cco8JmTXyp4RZcFm+7i4uzt5Vtq0 e5FixZ94ygf+D02QbGyKss+tFI9np7MOCWckaDPPR7+fF6tvK4FjfoqKwy8jH+Vfwhkd MAjMvcQuPfBER+beuccuav9azQVIEvlzrdAqlUDUTuF5XLUC/uRkqSHZ35EKT1ImeO4Q S/lw== 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=kjjlTnSa7zCVTFiJJ897/S5uuNv1Eo5hAY1pnGGn8sA=; b=ffIcuurWHNp1+XmzydWcOuXswKmYBhNtGE390ihhZCnq5HkXaX5udY3c7LcvJJfxbj 0LCxzUfmIy+iLbrg/z1/SLh5RdzleXIygEXduDPqQHGtSXoTocfaJ892N79yoCtQhNdr BpfzRptbgjHbo8i9SdXeffIDBAvXXRkG6ujm5q1869N2VDTNqvHcLUTXSWqNhzBfRDV3 GvKas7oD03C2ZDyvSzyT3iF1A0MbE1TMYZgYYB18imlBl05q4G0rW5/IZP7RnC0yR+21 miO3MKxKcNtQegNyKKBqEIUFjhcwQNgUVDA1+fOvf+pPXUBb3iA0drdmSJDK0j+AXyCh njAg== X-Gm-Message-State: AOAM532eqMfz1qU3Y6kj24tRBMrwpT2UyGXElKnUpdJ3cG9RXCX2crdC qQ7I4GcHjEXMiwUJpq8NoSX/iqe9rvg5y5n9z1E= X-Received: by 2002:a92:9a5c:: with SMTP id t89mr2939515ili.280.1591258569224; Thu, 04 Jun 2020 01:16:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:d54a:0:0:0:0:0 with HTTP; Thu, 4 Jun 2020 01:16:08 -0700 (PDT) In-Reply-To: References: From: youling 257 Date: Thu, 4 Jun 2020 16:16:08 +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 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 ? I build linux next-20200603 tree have the kernel/sys.c error. > Thanks, > > -- > Michel "Walken" Lespinasse > A program is never fully debugged until the last user dies. >