Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp670497pxb; Mon, 25 Oct 2021 16:18:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl//MAD+jbimYo+c1i2R8LSPyjWHUOsgB6G0Bg6EC2Jtq4EnvDQrybWLlJIIsqgAYK9PmE X-Received: by 2002:a05:6402:50d4:: with SMTP id h20mr30491266edb.112.1635203930978; Mon, 25 Oct 2021 16:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635203930; cv=none; d=google.com; s=arc-20160816; b=JO1WnJrHbpaj60jYzbI8NUHc5BweZ6HKf4kt+XSg6U9R8hDQwFP+Vgmx2zhtnU0SHS Ho93GsOWHtWk/q55y2k/GN+55RBp+hzp+pY3G9cGIsdmmOgEfVEGIe7+eGoeYYb/SDjv VBrfjVIr08Ky1umijHWORbYb1xmGJjhOPxfo94bilS0j8JeBA/YrnRqCAcxbZhE3eLvo mJnh8TzhX+wdYYLAUSSC3Ig9w5Bj1VQeMaC1frOL9VTKMqMFOuvXm1/vtFldBelFhSOV dNHom/Z+up9rhVZot4Y8Wm2KPXc/CFYA7Qi191e92zI8DCOvjBJPtJ50Ifl7RidxoP+b WAfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YdhtBAEBACKbfrIE372uL7h8vKMIQNYC6RQwaNxEzag=; b=oG+Bd3Xv7ei1Qxs78/W0VDfjwZpP8kgvUwUMC95OAkla8pMgeaE83xI/h1jVx4x0UB A0EVtLZEmQncTlBEPTIFGme8XknFUFufOiRw50CszHOjN7kBRc61W+6an3XO70+XhoUI FZLGXBYwpVx/TuEtdnQ4QfSkB2yzdPMxc8TIpJiKVI8KEasozEAlEq3lDsc5PYmHHOq1 ofMeERAl4hEYZ+beverSs/qdbiwUGvuyP4zrj5R7EiKBcnYRpkcjgT/Sd20VlPVTOTJu KOBHd4mctkHQ61Sni/RYhWnQjaWt8AOapuETB6KrngYvf9k/H1LXn+vToTTaHHObsUvN Z63g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LkTDVfKe; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si6652266edz.555.2021.10.25.16.18.25; Mon, 25 Oct 2021 16:18:50 -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=@linuxfoundation.org header.s=korg header.b=LkTDVfKe; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234193AbhJYTYx (ORCPT + 99 others); Mon, 25 Oct 2021 15:24:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:37694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234981AbhJYTXJ (ORCPT ); Mon, 25 Oct 2021 15:23:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E416E61100; Mon, 25 Oct 2021 19:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635189639; bh=xPORa5NBRmvXy/WNEhc6nsuoOJuoOBvLh8HI7MWt5nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LkTDVfKeY6MQCEldCxaz4mWr5G8+IGtCpugrwTwlJwEIluRNbSHYRfTT9BsFzsdxZ 4hFffjr8F6T2ata1puPLyXzv5ZIPysRfbwBy17sMPooBkR1/stHHV4Lntqg2HFJVIJ KqrEumpnZUZdSTZzDhsIdFBsub7zkhcBVMct7bUQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lukas Bulwahn , Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Catalin Marinas , Barret Rhoden , Andrew Morton , Linus Torvalds Subject: [PATCH 4.9 36/50] elfcore: correct reference to CONFIG_UML Date: Mon, 25 Oct 2021 21:14:23 +0200 Message-Id: <20211025190939.446228216@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190932.542632625@linuxfoundation.org> References: <20211025190932.542632625@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lukas Bulwahn commit b0e901280d9860a0a35055f220e8e457f300f40a upstream. Commit 6e7b64b9dd6d ("elfcore: fix building with clang") introduces special handling for two architectures, ia64 and User Mode Linux. However, the wrong name, i.e., CONFIG_UM, for the intended Kconfig symbol for User-Mode Linux was used. Although the directory for User Mode Linux is ./arch/um; the Kconfig symbol for this architecture is called CONFIG_UML. Luckily, ./scripts/checkkconfigsymbols.py warns on non-existing configs: UM Referencing files: include/linux/elfcore.h Similar symbols: UML, NUMA Correct the name of the config to the intended one. [akpm@linux-foundation.org: fix um/x86_64, per Catalin] Link: https://lkml.kernel.org/r/20211006181119.2851441-1-catalin.marinas@arm.com Link: https://lkml.kernel.org/r/YV6pejGzLy5ppEpt@arm.com Link: https://lkml.kernel.org/r/20211006082209.417-1-lukas.bulwahn@gmail.com Fixes: 6e7b64b9dd6d ("elfcore: fix building with clang") Signed-off-by: Lukas Bulwahn Cc: Arnd Bergmann Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: Catalin Marinas Cc: Barret Rhoden Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- include/linux/elfcore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/elfcore.h +++ b/include/linux/elfcore.h @@ -55,7 +55,7 @@ static inline int elf_core_copy_task_xfp } #endif -#if defined(CONFIG_UM) || defined(CONFIG_IA64) +#if (defined(CONFIG_UML) && defined(CONFIG_X86_32)) || defined(CONFIG_IA64) /* * These functions parameterize elf_core_dump in fs/binfmt_elf.c to write out * extra segments containing the gate DSO contents. Dumping its