From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D92DEB64DD for ; Tue, 18 Jul 2023 17:21:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C3CC8D0015; Tue, 18 Jul 2023 13:21:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8737A8D0012; Tue, 18 Jul 2023 13:21:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7624A8D0015; Tue, 18 Jul 2023 13:21:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 66E318D0012 for ; Tue, 18 Jul 2023 13:21:12 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 7C24F40316 for ; Tue, 18 Jul 2023 17:21:11 +0000 (UTC) X-FDA: 81025398342.20.ABD3E38 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf04.hostedemail.com (Postfix) with ESMTP id 3C40540003 for ; Tue, 18 Jul 2023 17:21:08 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jmHkoD+M; spf=pass (imf04.hostedemail.com: domain of nathan@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=nathan@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689700869; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=5HfStFvv07BVAtqJhmeWaPkQKPdOouIdpwtllBNsHec=; b=5khKLy9OurHx6qPUwqBh6qh8UjgJtrtzcYJ5Qn+uk2+0jCPmCujpUwJEKKYseyZZx3jYvm 5OM5oU1O9s0Jf9oHroUhGB0SsfrT0S64NMC17BXgIFoyx+zxC77Vh27jELOiGcZrhKg6lq 8CAbxZArDqeoBye8iUh/ltO0YBJ4rvo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689700869; a=rsa-sha256; cv=none; b=GuJn8Juk1mlK6UFLDISUPBqKoWdkcJ02WIr0uBw49zJV/tLHxxUzFwaesBbl+tO4HaSsEB yQ5S9rSJr0+HQXmYII6BAoRArXQPEDLXOMClOU7/Tnas37tWPLULpDfTzoTFzrBAknmjty BS+f0ySCKOWPcVlpUJ+r/C5QS0uz+wY= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jmHkoD+M; spf=pass (imf04.hostedemail.com: domain of nathan@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=nathan@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3A86F614CC; Tue, 18 Jul 2023 17:21:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47820C433C7; Tue, 18 Jul 2023 17:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689700867; bh=HFx3XvwtmZevU4+dFDo0gIWAy1biJ4z6q/z9dt7sNY4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jmHkoD+MOkP23yrL1ziSiUw6xABb1zAi4C+cpwrT2TLPHEX+ljwzvp1JfeVP8h5KL NnTAgC+D8odyxdzwmLVtmMUnnEbrC8IOfyHxWGfvElcoY+5Q+dueCdX8KVDPx00SsP R4rZWW5yx0V7GXzcecenC9F5hzbxZLSJClZW7l7H4X4qcXKoPBqWEy+LfLVqlgNw9Q YJps5KBY7IOAzKYHeuU7/8Tt43tQXz9nPROJzJN1RCUsVZxa6fnF9OmcgMvYKkli4B 0cSyFjNfbOuAYxHQZWBwxxMOZcu9SCupMuy2IjCRmYI5ndq+wvlhIcABunHv+KR8r+ 0NWUGM1FNjAFg== Date: Tue, 18 Jul 2023 10:21:05 -0700 From: Nathan Chancellor To: "Liam R. Howlett" Cc: kernel test robot , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: Re: [akpm-mm:mm-unstable 209/215] mm/mmap.c:2430:29: error: assigning to 'lockdep_map_p' from incompatible type 'void *' Message-ID: <20230718172105.GA1714004@dev-arch.thelio-3990X> References: <202307180750.Dk6xL6nG-lkp@intel.com> <20230718171025.vn67ydtjifawkvqo@revolver> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230718171025.vn67ydtjifawkvqo@revolver> X-Stat-Signature: 1a4zjxm4diq8i7nq1cgjkyw4xx1x5pj8 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 3C40540003 X-Rspam-User: X-HE-Tag: 1689700868-536295 X-HE-Meta: U2FsdGVkX18QeZSIVrcLU+HKzatTrOQ0uD5kzLrEQpZT2f22utxssDRDPkpWCeuHSDAqg/lEYwR6Xc9PAIIey+MqqVcc0z8visVKCckxgJqU2B6OVngZvXkptAmva9CX6hW0mvWIIA7fFKdVWuHXPfSb0qAJmXXtALqX1SQwlQAMFX63qBU7BMs0HoSoHi5+xGBWbiFwQDj33MUWa4WE8gEa+/I22haBP3BjZref0s5yqVrQPq1X8onJvdSNGEs28yhZlU7/1Tb6s9MAp80z2qSw21wp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IaQ3d+4GP9q/1ic9pIGlss08eGdAVp0yTgFDps9Td9uVrCPicU6U0OEz32D+v4rZ3OpZYawPvSfBhtPghPD0mSt+r+ycOStJnjgBW89hcU13dw/48w== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Jul 18, 2023 at 01:10:25PM -0400, Liam R. Howlett wrote: > * kernel test robot [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