Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp960136yba; Mon, 1 Apr 2019 22:27:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYP6AEOEpEgr3ui398LNJtgOgzfa2cNbYmc8WCDns9WT+PJZ2Gwj80agdDguFYIVfxjAzJ X-Received: by 2002:a62:e80f:: with SMTP id c15mr66064329pfi.93.1554182850815; Mon, 01 Apr 2019 22:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554182850; cv=none; d=google.com; s=arc-20160816; b=Yyi+zcETDc6HkSJXrH0+u6D0pweeISWk1itX5PpsNSBDg8j45/vtTHzcVQdpMBT+aG GacuRgwdHjsEBTGBhB+Zpd/t+2jzMoSzsZxdkPVSkOpZddstO1jC49CKfmx9/88KF6Or aKm7TaGvqCSPCDzb5VLVyffnG/5MiooQgzn6BB+SZjZln/bFlQwmvl+zITBkhn3LzfVX iI1YTPwZrvThlO7M5lMKiZ9dQy3BDDuBW1gU5ELJZSSKdFu+7mHfxkCWmQvSmIWOG7eJ GcekErXWL1qqlsQgCAM5eVfeAClTZ5wmI3LNv/GGUtnrr/EocWgMrEpK+LPMFsmtmpwS irMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aMPPfj5JnNOQrKOZmzKYJq4pNGTHYuLUKAkg9cwvBis=; b=qEHGGr2CR5487NJirM2Zq3bCLOU5WSYGH4qI5yP3+sHZFp8JHCgi4wooymcW8nf0sz qAoGkfhDIEowbiZPVOy5EeRaUen5qEL+Xabp7RtDc8KPAQNMZNjRm60JZLTpeeACUhJ8 P3wIftAn4u4i5aJ23/BeGac+C4kGZTLfUgkIezq8Cm2QwaORAVieezIwdkYXQoRXCrfi RNEXEET5nwVDDzg3lvOgt4i6HR0q2tutp8hmt3gOxJCtM74CiFyQa2uFQ52oAXuEEyJw qppO7FtGGocEbK3wDZNDP9Tbk2JO6+swtgK3Hb+WS7ZWS/nzivjx3FcjkdPc19lxrVzY KPBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NRCuIUie; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si10822117pgg.361.2019.04.01.22.27.15; Mon, 01 Apr 2019 22:27:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NRCuIUie; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726329AbfDBErN (ORCPT + 99 others); Tue, 2 Apr 2019 00:47:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35462 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbfDBErN (ORCPT ); Tue, 2 Apr 2019 00:47:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aMPPfj5JnNOQrKOZmzKYJq4pNGTHYuLUKAkg9cwvBis=; b=NRCuIUie73WIwB+IKHA2kfPsR 1eEMLtiJ3mtAnHhDZQsGtDIBPSMouSt0UyL1OroZVOZAIqEfcyfcEZPzolQxhgwsNoYw0ww6HPC5+ DwIVi5CXoyDsMzHcqwvY2isfTCbbTLyCMVCItkXkL+IGN3IqN3e6o19k5PMYkji4x//9XR8dlnqoz As9BU9+ORPZkUFrxRbkIFXqAYL2y1/279CRlF+O73Ub7YK4mfvfs086c6ZEOlGeBtikouVur8eF6k 7CNBabBO54kv6KMQFeBLDg/4djZb+HQYLBdr1oJjYMuN7nfb0L1AdxMPBy7sXemTqF6rNjvqrj3Ez NXTBQRcxg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBBKJ-00007H-9Z; Tue, 02 Apr 2019 04:47:11 +0000 Subject: Re: [PATCH v3] gcov: fix when CONFIG_MODULES is not set To: trong@android.com, oberpar@linux.ibm.com, akpm@linux-foundation.org Cc: ndesaulniers@google.com, ghackmann@android.com, linux-mm@kvack.org, kbuild-all@01.org, lkp@intel.com, linux-kernel@vger.kernel.org References: <20190402030956.48166-1-trong@android.com> From: Randy Dunlap Message-ID: Date: Mon, 1 Apr 2019 21:47:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190402030956.48166-1-trong@android.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/1/19 8:09 PM, trong@android.com wrote: > From: Tri Vo > > Fixes: 8c3d220cb6b5 ("gcov: clang support") > > Cc: Greg Hackmann > Cc: Peter Oberparleiter > Cc: linux-mm@kvack.org > Cc: kbuild-all@01.org > Reported-by: Randy Dunlap > Reported-by: kbuild test robot > Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2 > Signed-off-by: Nick Desaulniers > Signed-off-by: Tri Vo Acked-by: Randy Dunlap # build-tested Thanks. > --- > kernel/gcov/clang.c | 4 ++++ > kernel/gcov/gcc_3_4.c | 4 ++++ > kernel/gcov/gcc_4_7.c | 4 ++++ > 3 files changed, 12 insertions(+) > > diff --git a/kernel/gcov/clang.c b/kernel/gcov/clang.c > index 125c50397ba2..cfb9ce5e0fed 100644 > --- a/kernel/gcov/clang.c > +++ b/kernel/gcov/clang.c > @@ -223,7 +223,11 @@ void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) > */ > bool gcov_info_within_module(struct gcov_info *info, struct module *mod) > { > +#ifdef CONFIG_MODULES > return within_module((unsigned long)info->filename, mod); > +#else > + return false; > +#endif > } > > /* Symbolic links to be created for each profiling data file. */ > diff --git a/kernel/gcov/gcc_3_4.c b/kernel/gcov/gcc_3_4.c > index 801ee4b0b969..8fc30f178351 100644 > --- a/kernel/gcov/gcc_3_4.c > +++ b/kernel/gcov/gcc_3_4.c > @@ -146,7 +146,11 @@ void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) > */ > bool gcov_info_within_module(struct gcov_info *info, struct module *mod) > { > +#ifdef CONFIG_MODULES > return within_module((unsigned long)info, mod); > +#else > + return false; > +#endif > } > > /* Symbolic links to be created for each profiling data file. */ > diff --git a/kernel/gcov/gcc_4_7.c b/kernel/gcov/gcc_4_7.c > index ec37563674d6..0b6886d4a4dd 100644 > --- a/kernel/gcov/gcc_4_7.c > +++ b/kernel/gcov/gcc_4_7.c > @@ -159,7 +159,11 @@ void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) > */ > bool gcov_info_within_module(struct gcov_info *info, struct module *mod) > { > +#ifdef CONFIG_MODULES > return within_module((unsigned long)info, mod); > +#else > + return false; > +#endif > } > > /* Symbolic links to be created for each profiling data file. */ > -- ~Randy