Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1780298ybb; Fri, 29 Mar 2019 11:09:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPstSi4sOxJOcWrI/miy2JnZgNqZtPwwPUPk/lcI0hR0JdeoVuAqVAZ5EVXZzdSKSY3+1r X-Received: by 2002:a63:2106:: with SMTP id h6mr46662863pgh.441.1553882949741; Fri, 29 Mar 2019 11:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553882949; cv=none; d=google.com; s=arc-20160816; b=rh6ynXZdo0SxjLEGspoXf3/heWt1ZgyT+tXyldX79L93zoB+AfIhVxvYDfetJ37J/j ts9iRUZ05HQcxvfgUebxfuSY+uEKk2UBgy7DAr9q0CPtrJmrvg/iNXDbHUyKyqizXTh9 CstYiBfSuRiuP4TbAyZKRRapsAmNAOLfAQrztm6B6+bNnJVmIiGW1zq2OO/Cpm0z0+gj ZksLv4TUpgkWfQmzKn/igqynpKqbVu8u2UzQo3nEEpm6d2DQ4gZ8B1BnP/+08rIWsYyO LcEzEU1hapyxjOKi1T+kMmg0BUlj763Pn8CukB9pYWs2l7WfBCk/e9Sw8pwga64tfV0U XVmQ== 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:references:cc:to:from:subject:dkim-signature; bh=H/PoRPC1lktHX4182NbmlBZcudeaZE+Xbszx/F65dUQ=; b=xwUsq9lozXgAzt46uFLR2fE7HuAwiLcsI9RmdOWG9L+Pbd4LgdqMoYBfzsil+J6f2h vFCRWt+KtTEJpsWgFNe98zGi67JxGJ2v7MXUBJV9zYrsRtv4WsrH4w3lTXOYxalD9bO4 3dLaP4/lLShVjRdwZWujuWkNWauiEMQTX/9Xj8nZTDpS7rPg1tnsHRjCpnG3atHR9FLR hO0BfMG5EsU285dRnQwpi5oKHW87k6RfezTFpgA1oNhw1Pg5YmomYeRXIej1Ru5QOWtZ ggXg6kJuPu0VeU6z1YYm9IWVRptLMEAp30xWtrEhSEL19rgWg567apQoq6C4kP5jO1Xp SHWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Eb5dQL4J; 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 d1si2503478pla.243.2019.03.29.11.08.54; Fri, 29 Mar 2019 11:09:09 -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=Eb5dQL4J; 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 S1729951AbfC2SIK (ORCPT + 99 others); Fri, 29 Mar 2019 14:08:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58064 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729746AbfC2SIF (ORCPT ); Fri, 29 Mar 2019 14:08:05 -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:References:Cc:To:From: 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=H/PoRPC1lktHX4182NbmlBZcudeaZE+Xbszx/F65dUQ=; b=Eb5dQL4JNedsk9Xw6+iVOelqg eAnX8G1j+knYyrWzdWqSBa0WC7UkL62NxgXrXRCxezJ/XVF3WBGkj2Jm3aBy1/siPPi4ODJXvNHtn H0XArkbXYD3erwTNkhmzqMx2Huh+w+Vs94UjwrkEUjLqSH/+ievYFVSx6sqQll8gADaj+u4tM3LjY +FWXe8Z8iz1iJC6a/lBciM8KlvebP1i2LuXY0wisohrUVNkVUn3TjT3yFKNzduTuwSUpuNxUae7QM wH7evI68tOlFuqDsktUVB1Ewf/1en7L33J+jkvA39/cBhBhy/zsShGUqDQVFxKG9jN5ogl2zMF/NP QYTWg9yFg==; 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 1h9vvA-0001Nd-FU; Fri, 29 Mar 2019 18:08:04 +0000 Subject: Re: [PATCH] gcov: include linux/module.h for within_module From: Randy Dunlap 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> <9f1ad3e1-fad7-2fb4-31c0-d31832468143@infradead.org> Message-ID: <16a9f1b8-f937-7350-968e-36c5b3f838a5@infradead.org> Date: Fri, 29 Mar 2019 11:08:01 -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: <9f1ad3e1-fad7-2fb4-31c0-d31832468143@infradead.org> 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 11:01 AM, Randy Dunlap wrote: > 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? No, this patch does not fix the build error for me. > 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