Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp253238pxj; Thu, 20 May 2021 08:39:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0w1Vvl+jrzk97OMhQWdgY8g1ak8e7O8a98AoXRVu6wY8xKCQnK7UhRbalphogedxrXMg5 X-Received: by 2002:aa7:d893:: with SMTP id u19mr5769609edq.258.1621525141385; Thu, 20 May 2021 08:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621525141; cv=none; d=google.com; s=arc-20160816; b=WNIyjyUYW+KF4NLreCYLPjjfoeeoPm/lyUJ6MOsU6QWd02+4Vqzi3S91ikKm5MMpsU YGqcYfQzhlQx0aJ0a5SDpRB1dbWTuGHGXiIv2i+PiW6fsi5SexpumT8X2kGqNMRYu/pZ BHEbCVVbsYVNN/VlSYZWK4CL5cv/M1BBlKP5B4ObcaHcNN6dlPcvJ0mqj7GvHDsXql6R 1FE4lubUdOpHhNvcElu1XXxxUD2uw3daDktnax6hsRDA48vVNw5aVqT8I8JEJNPOMjgH xDk+tVCa1KXjHTM2diQMygNrONvtYccTR7BiAYd6DAWcKKP1ZULV4iHL3AFOXs4+wSGH 5oaA== 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=G4+ZyqXMKd/QoAWE9uS9kfzdwRhedjCqnJh+EUl6O3s=; b=Xa+Eg0DtNh2WGcbi9D4Mv1FfhdK0InZqAnjrvLPsWdOoKnt8CvNN01avQbzBlkFM0D gjYpPBSagv7j87h/xcz6vwm2xW2CxHtZ8kQmh+bUZTV3NGDqS2GI+T7oW2bVFOj6QI1o rLCO9VqpGHfK4On9cQGIMGCPtRy9xgMgLamxx2xGkhPr+JLoFmr8noJqL9+Jtum/DaCF /J48DL9UKwAAkqJqFjZeemY6p//5Gesm71TOpTuj4/6k1OZ0nmEtGcJytCzCDUsjw3ne Nj1lAaa1QUo7gLpnuU7PnbgMrXSPX2NxR66K6yzooMIBBgDVNXVMIw2o9VliKjV4r1kD VKTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zul2zRA7; 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 de13si468741edb.343.2021.05.20.08.38.37; Thu, 20 May 2021 08:39:01 -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=zul2zRA7; 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 S231895AbhETJgN (ORCPT + 99 others); Thu, 20 May 2021 05:36:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:35870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231867AbhETJd5 (ORCPT ); Thu, 20 May 2021 05:33:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D9109613FC; Thu, 20 May 2021 09:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621502940; bh=rpf7cwl2Ri7h/8RGVYEo/sowX/WykXW286bVHGABWgI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zul2zRA77lJor/lftVMGSrWx7d6hjIBMK6Sx8nZeLeS5nCQWrX/Tr1jEg/7tdhizo s4CnJOveSMnJTzjyIsxSyKsW+cOMiAqyNo1Cck8jqvJBbF+q3vXrwaUnfNBZtWwtpa xb+hzM9YK71TPvxAoUedRSWN9ZgFJBFfM6XFGf6o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Richard Weinberger , Sasha Levin Subject: [PATCH 5.4 17/37] um: Disable CONFIG_GCOV with MODULES Date: Thu, 20 May 2021 11:22:38 +0200 Message-Id: <20210520092052.842992229@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092052.265851579@linuxfoundation.org> References: <20210520092052.265851579@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: Johannes Berg [ Upstream commit ad3d19911632debc886ef4a992d41d6de7927006 ] CONFIG_GCOV doesn't work with modules, and for various reasons it cannot work, see also https://lore.kernel.org/r/d36ea54d8c0a8dd706826ba844a6f27691f45d55.camel@sipsolutions.net Make CONFIG_GCOV depend on !MODULES to avoid anyone running into issues there. This also means we need not export the gcov symbols. Signed-off-by: Johannes Berg Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/um/Kconfig.debug | 1 + arch/um/kernel/Makefile | 1 - arch/um/kernel/gmon_syms.c | 16 ---------------- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 arch/um/kernel/gmon_syms.c diff --git a/arch/um/Kconfig.debug b/arch/um/Kconfig.debug index 85726eeec345..e4a0f12f20d9 100644 --- a/arch/um/Kconfig.debug +++ b/arch/um/Kconfig.debug @@ -17,6 +17,7 @@ config GCOV bool "Enable gcov support" depends on DEBUG_INFO depends on !KCOV + depends on !MODULES help This option allows developers to retrieve coverage data from a UML session. diff --git a/arch/um/kernel/Makefile b/arch/um/kernel/Makefile index 5aa882011e04..e698e0c7dbdc 100644 --- a/arch/um/kernel/Makefile +++ b/arch/um/kernel/Makefile @@ -21,7 +21,6 @@ obj-y = config.o exec.o exitcode.o irq.o ksyms.o mem.o \ obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o obj-$(CONFIG_GPROF) += gprof_syms.o -obj-$(CONFIG_GCOV) += gmon_syms.o obj-$(CONFIG_EARLY_PRINTK) += early_printk.o obj-$(CONFIG_STACKTRACE) += stacktrace.o diff --git a/arch/um/kernel/gmon_syms.c b/arch/um/kernel/gmon_syms.c deleted file mode 100644 index 9361a8eb9bf1..000000000000 --- a/arch/um/kernel/gmon_syms.c +++ /dev/null @@ -1,16 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) - */ - -#include - -extern void __bb_init_func(void *) __attribute__((weak)); -EXPORT_SYMBOL(__bb_init_func); - -extern void __gcov_init(void *) __attribute__((weak)); -EXPORT_SYMBOL(__gcov_init); -extern void __gcov_merge_add(void *, unsigned int) __attribute__((weak)); -EXPORT_SYMBOL(__gcov_merge_add); -extern void __gcov_exit(void) __attribute__((weak)); -EXPORT_SYMBOL(__gcov_exit); -- 2.30.2