Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1773801ybb; Fri, 29 Mar 2019 11:02:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4R9S2QPbaCsm1hwEv29NtsVxsLJt6BTuav+jCUj9suir4/i8BX2Ug/8icwG0yQdagcZ8u X-Received: by 2002:a17:902:8606:: with SMTP id f6mr51884106plo.151.1553882536401; Fri, 29 Mar 2019 11:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553882536; cv=none; d=google.com; s=arc-20160816; b=v3WyeGHs9eL6aheLNTt+FEfM8i5S95/+DpJyvNbNLNV65CahiW5nH3ff/D3Ek316t/ 99rLYUiNDyKPF3DTmrpshxHslSybLhFGVKKdUIe2JBgHemKZF2oMeFdLebvafxk396KV wKrjSGcJfi6sOmNpPu1I9WXcWBmvOl2H+RetOpz0M6bDebya4n5GpMpbZP0O+Pvvzb20 SBV14rSpc6xTB/PRjgy9/uxn2qo4P5BL6c1RzqRfqfFDbdmLkZshr1lYQLR8oC1IDYTD bs3kY1u/svZS+nMerJp9wx4ZJ8Q34gKwsTuuEDPwCsV3MSSSiobDyKEzCylsi2hCFT2z NYRA== 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=dd5MRiFBsN+AsSinzvLVsYwYGLT+K1KoqVgd4aICLWI=; b=AXvugDoLW8eFVFBGvyR+e4BFpk/491Vgdv+/NcDM2xgVfsCn06QiKxtNwCpQFwyt4W T3uOLyl0xUzpKDF5sOfSB3lj95G4pCabFGCorge4dMV5pLWBFQU5mfTIKKh0Z1Mo+YNW dYHRQojB3RjzJBrifbCsMH0kSFjXzJBhKA/2+OTMU4ujabHTCpDvxcY9CF04uVkOz/2Q QzqhAY0SNMQVrfJ4YZGgDUgLa6XQxOk9bVt3OpU+KYGU5H6jq+4ZRz1vpjEiUJBa5hs+ Yd9WBtaynNMGM52JLTLpQX6DqSwm6sES/fnI/rSIihUaOG7CSmYhATihQCdVZzJWV1De 9rEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=djw4196f; 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 j26si2204342pff.289.2019.03.29.11.02.00; Fri, 29 Mar 2019 11:02:16 -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=djw4196f; 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 S1729840AbfC2SBX (ORCPT + 99 others); Fri, 29 Mar 2019 14:01:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57976 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729702AbfC2SBX (ORCPT ); Fri, 29 Mar 2019 14:01:23 -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=dd5MRiFBsN+AsSinzvLVsYwYGLT+K1KoqVgd4aICLWI=; b=djw4196fs7me/2RwMmGT2/Hbm gPLkrFCdsSxgDNZ9TtT2SJuF7swl5kDNMYn97QPHtcC/PP0/5yCjIuzi4b92h3fi48pXcKVmVzhKW N/D9RlOik/hcGz836JhB7hx8EC26CNlp2t5ygx+6SuwxOl8/F4uH4Y5Vbw3h0oqbwQJasqznuthAQ Khg9Rhk6iUo+O8kLjaMuxeQa17ulfsa25amkAUdrpllUhJGNzHPsQ4kZQAnPJDrhe8fsx3WCg6L3r ilO/DhaA44rqrOC+cVIKMnlHMym7e5k7LRdY3r6B6vH+D5xafK6QT9UGKZrSsMieeUIPs8lUwtVgw UqUMs0QQw==; 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 1h9voa-0008Jr-T2; Fri, 29 Mar 2019 18:01:21 +0000 Subject: Re: [PATCH] gcov: include linux/module.h for within_module To: Nick Desaulniers , oberpar@linux.ibm.com, akpm@linux-foundation.org Cc: Greg Hackmann , Tri Vo , linux-mm@kvack.org, kbuild-all@01.org, kbuild test robot , linux-kernel@vger.kernel.org References: <201903291603.7podsjD7%lkp@intel.com> <20190329174541.79972-1-ndesaulniers@google.com> From: Randy Dunlap Message-ID: <9f1ad3e1-fad7-2fb4-31c0-d31832468143@infradead.org> Date: Fri, 29 Mar 2019 11:01:15 -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: <20190329174541.79972-1-ndesaulniers@google.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 3/29/19 10:45 AM, Nick Desaulniers wrote: > Fixes commit 8c3d220cb6b5 ("gcov: clang support") > > Cc: Greg Hackmann > Cc: Tri Vo > Cc: Peter Oberparleiter > Cc: linux-mm@kvack.org > Cc: kbuild-all@01.org > Reported-by: kbuild test robot > Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2 > Signed-off-by: Nick Desaulniers Reported-by: Randy Dunlap see https://lore.kernel.org/linux-mm/20190328225107.ULwYw%25akpm@linux-foundation.org/T/#mee26c00158574326e807480fc39dfcbd7bebd5fd Did you test this? kernel/gcov/gcc_4_7.c includes local "gcov.h", which includes , so why didn't that work or why does this patch work? thanks. > --- > kernel/gcov/gcc_3_4.c | 1 + > kernel/gcov/gcc_4_7.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/kernel/gcov/gcc_3_4.c b/kernel/gcov/gcc_3_4.c > index 801ee4b0b969..0eda59ef57df 100644 > --- a/kernel/gcov/gcc_3_4.c > +++ b/kernel/gcov/gcc_3_4.c > @@ -16,6 +16,7 @@ > */ > > #include > +#include > #include > #include > #include > diff --git a/kernel/gcov/gcc_4_7.c b/kernel/gcov/gcc_4_7.c > index ec37563674d6..677851284fe2 100644 > --- a/kernel/gcov/gcc_4_7.c > +++ b/kernel/gcov/gcc_4_7.c > @@ -13,6 +13,7 @@ > */ > > #include > +#include > #include > #include > #include > -- ~Randy