linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: kernel test robot <lkp@intel.com>,
	llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [akpm-mm:mm-unstable 209/215] mm/mmap.c:2430:29: error: assigning to 'lockdep_map_p' from incompatible type 'void *'
Date: Tue, 18 Jul 2023 10:21:05 -0700	[thread overview]
Message-ID: <20230718172105.GA1714004@dev-arch.thelio-3990X> (raw)
In-Reply-To: <20230718171025.vn67ydtjifawkvqo@revolver>

On Tue, Jul 18, 2023 at 01:10:25PM -0400, Liam R. Howlett wrote:
> * kernel test robot <lkp@intel.com> [230717 19:36]:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> > head:   75ac3c8cee9c94691bc9001fcfb6214ae812bfa8
> > commit: f40b24c7c416b304b93115d66d02dc54e5d2f7d1 [209/215] mm/mmap: change detached vma locking scheme
> > config: um-allnoconfig (https://download.01.org/0day-ci/archive/20230718/202307180750.Dk6xL6nG-lkp@intel.com/config)
> > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
> 
> Just a status update on this..
> 
> The above config works with clang 16, I will reproduce it with the
> periodic build of clang 17 once I locate a copy.

I can reproduce this with LLVM 16.0.6 that I publish on kernel.org:

https://kernel.org/pub/tools/llvm/

  $ curl -LSso .config https://download.01.org/0day-ci/archive/20230718/202307180750.Dk6xL6nG-lkp@intel.com/config

  $ make -skj"$(nproc)" ARCH=um LLVM=$PWD/llvm-16.0.6-x86_64/bin/ olddefconfig mm/mmap.o
  mm/mmap.c:2430:29: error: assigning to 'lockdep_map_p' from incompatible type 'void *'
          mt_detach.ma_external_lock = NULL;
                                     ^ ~~~~
  1 error generated.

For the record, I see the same error with GCC 13.1.0 from kernel.org:

https://kernel.org/pub/tools/crosstool/

  In file included from include/uapi/linux/posix_types.h:5,
                   from include/uapi/linux/types.h:14,
                   from include/linux/types.h:6,
                   from include/linux/limits.h:6,
                   from include/linux/kernel.h:16,
                   from mm/mmap.c:12:
  mm/mmap.c: In function 'do_vmi_align_munmap':
  include/linux/stddef.h:8:14: error: incompatible types when assigning to type 'lockdep_map_p' from type 'void *'
      8 | #define NULL ((void *)0)
        |              ^
  mm/mmap.c:2430:38: note: in expansion of macro 'NULL'
   2430 |         mt_detach.ma_external_lock = NULL;
        |                                      ^~~~

> The llvm repositories currently don't have 17 [1], so this is delaying
> the reproducibility and fix for the issue.

As Nick said, they should. If there are issues or something is broken,
please consider filing a bug on LLVM's issue tracker under Packaging:

https://github.com/llvm/llvm-project/issues/new

https://github.com/llvm/llvm-project/labels/packaging

Cheers,
Nathan


      parent reply	other threads:[~2023-07-18 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-17 23:35 kernel test robot
2023-07-18 17:10 ` Liam R. Howlett
2023-07-18 17:14   ` Nick Desaulniers
2023-07-18 17:21   ` Nathan Chancellor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230718172105.GA1714004@dev-arch.thelio-3990X \
    --to=nathan@kernel.org \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox