Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp678509pxb; Mon, 25 Oct 2021 16:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhB7nT910tQh0COdcBSFH2jXoThyG/01LM4fRWH3oOb2cXJj/bJ8tZLIzmQrvEUOhXSif9 X-Received: by 2002:a05:6402:1644:: with SMTP id s4mr29099121edx.181.1635204641806; Mon, 25 Oct 2021 16:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635204641; cv=none; d=google.com; s=arc-20160816; b=piv+YoPg0TL6ybS8hpCXZSv/yVkv53NHJp2yfYRgKiNgIs1KX3AtFC5EV1dtxF35K6 M5OQ5uH0O66LWd+SiuoZDKIdRFonMt4x3heT/PGLrGorvB0JyGGDxqOisNyWep7xfTyV gBxuQP5h6E6EPZJRjg3OfgB0+i2IccgOH9vrTynOwBoef41k5cJSdU0PYe0PE3G3chzh Xrt6NMAMTRQrOZD/PSDJoprBMgm5hxDggj1/A6SSq+5BSFtoW6u1yOiXCB96CUXgWOPr 97pHQfDc7agv44R05+4pjEb8Gvfew+BD4CFVZLVM2xjrR9bIil78K9nWw4+fv+Dsopck v4gQ== 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=bko6uXfUKHhtZPcotPFwyyIPb/zbhu9c8rujjgKFxOQ=; b=iPoBS8w6JSVKNQjH/1oQe7sC77KTqotPTNn0bJfreZ5YqC+EoRoZuB0nwEP1h4INMv kXSk7LMuyNEhHJj/LAxgkL+++qr2Npagr2ushAoVnZaKiCtpbtLbwX22uOTxVbNlVqPA 4M08AfWKvaIh1+anU0GRmTZD1B9Mtb8BHBjkaRrhIUVR2JpfP62KKxjlJfazHL1GUur2 1rTCi3rptMl6au/USXwjnSt/nXSLEgnxHWQK8dAN0ci2Dtzo2Pl1lulFJ5dbTIz/3VCI BD9o0udr/jEzdXK4mmKSVwhvmGeV5FRJXLVJ0AzgE+N5PvWRk0fCLKak9poZn7qDkmIU FHwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fD2uAeEu; 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 nc15si2070776ejc.443.2021.10.25.16.30.17; Mon, 25 Oct 2021 16:30:41 -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=fD2uAeEu; 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 S235117AbhJYTbl (ORCPT + 99 others); Mon, 25 Oct 2021 15:31:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:42394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231442AbhJYT1A (ORCPT ); Mon, 25 Oct 2021 15:27:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9ADB06112D; Mon, 25 Oct 2021 19:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635189828; bh=0wFitQqf99HsEpCzMQH91BM2topCFOK6sfiIcLLqbFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fD2uAeEuP5azRCFueOPKBszJvi6Q7GkhNEo1JYZnwupL4L7d9YcerYRaFwTTPhwwc iUxE8nLGfs291eMVKu6QOjfsTIwQ9Vc29UX+V4hL5EUeMNkyLeVtDJg1AMdCDOl5QL rIkahGr/VBxyR1+M+URmT9/0ah0/kbTmZCVRQjV8= 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.19 17/37] elfcore: correct reference to CONFIG_UML Date: Mon, 25 Oct 2021 21:14:42 +0200 Message-Id: <20211025190931.764531467@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190926.680827862@linuxfoundation.org> References: <20211025190926.680827862@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 @@ -58,7 +58,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