Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp273128yba; Wed, 3 Apr 2019 08:29:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP5Yw1/RQWd8u7FwSzEbpnIj5nDpEN68bFVO9iuzbdoAkPxn1pqPGddi+AXSOffovxjoQC X-Received: by 2002:a17:902:9a4a:: with SMTP id x10mr536503plv.113.1554305380152; Wed, 03 Apr 2019 08:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554305380; cv=none; d=google.com; s=arc-20160816; b=MINBK6F3i72aRK7KOrQABXFzPJukFuSg4Q2tzxM0gdNbKntbyzioosqxJhGyDizNFw hWfuOcLtHcXFjH+IDAkvOBth9OkhrpX95tQ3ep/guSLpezcDsPIoGoKJEdd5aQCVKJEM BWgB2E5l2ckROYKVJ+QnGmxaGFlDbl+G/Jd4mGWoyZjrQbQ7BOqmdzuJ5ENwAfeQM/Kj tPP3iVctg1KQvuzZgIkLR9hFc9Dp42GHP/nFwib9NDZEtgxFaEFTCGCguJRQHDu5XMV7 n/83UZJlaHLJ/y9PJW+EKyI7gXLQP925Oo6YPdATE206kucuFAg6hsVLu/A+sJpTBPyn DUwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S6NYoJrZ/veLL2w7VR6EZsl0qg+PNL9w8W7cjvQvY6Q=; b=aNB0qMi6y39TJtuUqufm6TXGAmUQ8ssbvR2/MIOTPnT6byBZOveznVTmK/Y1PftOlu GPlSb5xhbuf0cdOxm30siaLzbl9XKmenbRZZRQlFG2ZIRUMKox7a58ldW4pOOCW3J0Uf 4Rbz436GVX7OiFNwa2AnYYIcJQ7HGQfgyXfGx5iNiN4Cyn7fqOGceC5q5dXB/AiauebF Iw51X6cSQHjEjFjo6r0MzAtgFQO5jYGVJWMUx5SQ5gbcvDVNnVl+oWrOXK3DdauhXFSD TZGon8ZdN2jjN4c/4MiAfh7y4NKCuYQc7ryHjnHolNJPe37AYagqWoTdaey7BavoGNj8 jCcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="FnGJ92n/"; 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 b15si13829846pge.349.2019.04.03.08.29.24; Wed, 03 Apr 2019 08:29:40 -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="FnGJ92n/"; 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 S1726188AbfDCP1W (ORCPT + 99 others); Wed, 3 Apr 2019 11:27:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55396 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbfDCP1W (ORCPT ); Wed, 3 Apr 2019 11:27:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=S6NYoJrZ/veLL2w7VR6EZsl0qg+PNL9w8W7cjvQvY6Q=; b=FnGJ92n/3MH+49wCKz493YBAj cZzxZoKEF/Vxv3SSxwUUS4nmmTIj9KouBb17sJllgaFCVqSzlOFt6+yOKgD34OlozgiNfDZOTNFYs Hrvcvii4cOYLLKNi94P/7bHznuhNChihDoWaPDOaGe2Aj3Ys1yOF1NBFTUH0XEbQ2HGfBiBM3/V4i fWT3drdY57OrIRucCxUNm/nzP81Q1+wluKlK4Vyuew1VKjyNATjRBYkaM0vNMASnFlZnGIRPcsTsB mT0TOIraxW01HkCTCL7Va4nvn2bJaMPtLmfmyFQJKQTGpGlz/bxe5B8vEJpmMRho7Ad+tHrBQXqxl ywWZhavWA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBhnL-0002Eg-7L; Wed, 03 Apr 2019 15:27:19 +0000 Date: Wed, 3 Apr 2019 08:27:19 -0700 From: Matthew Wilcox To: trong@android.com Cc: oberpar@linux.ibm.com, akpm@linux-foundation.org, ndesaulniers@google.com, ghackmann@android.com, linux-mm@kvack.org, kbuild-all@01.org, rdunlap@infradead.org, lkp@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] gcov: fix when CONFIG_MODULES is not set Message-ID: <20190403152719.GH22763@bombadil.infradead.org> References: <20190402030956.48166-1-trong@android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190402030956.48166-1-trong@android.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 10:09:56AM +0700, trong@android.com wrote: > From: Tri Vo > > Fixes: 8c3d220cb6b5 ("gcov: clang support") I think this is the wrong fix. Why not simply: +++ b/include/linux/module.h @@ -709,6 +709,11 @@ static inline bool is_module_text_address(unsigned long addr) return false; } +static inline bool within_module(unsigned long addr, const struct module *mod) +{ + return false; +} + /* Get/put a kernel symbol (calls should be symmetric) */ #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); }) #define symbol_put(x) do { } while (0)