Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3169822yba; Mon, 8 Apr 2019 12:40:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQLIgkQC/qspUrFZuo+ePuUMExeNfoejYPaNr9O6k8Of5fPF0FtOWlfHHvHq+nlTNTEWlN X-Received: by 2002:a17:902:70cc:: with SMTP id l12mr32111365plt.10.1554752420695; Mon, 08 Apr 2019 12:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554752420; cv=none; d=google.com; s=arc-20160816; b=Gr6r2KD7ZWiEmGY95ulQCe1FG8VIWnGmad8GMic6jpi2jvT9iMzCi0f5kDeYAyEK3n 47PkAScvuukrbqe78dcfaJAww3NRrNoGXSBhImyPPm0hpW14BxiKHUdV5v4lLCFDYMif tqYwGqofMkX/W+Jhhph32gRtoV95AlaJq/hvwXPR/eWVYkZc7dD+hu+FrQXyBvlGeBg9 2+3fuzT4+N6NbDbMCNRleZYe3Z9b57ttqWhxlvdLvde7zDMuq50iuWgERnCxHUf13Cpn xbfDE/IOhMXcEHkzEIs+AYFHj7iY9pXHJkcjY9zQyXMLOz/fgEWki0CM+JA/A6DKV/1z YNxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gCaZtAPIdoTmL89IrJBiBqajTRyKobTSTiuIO1WebTU=; b=qUVzCtZ1IDUb+I8qJeMv/ztzbjDrJNSDaizNQXsltwXzHwMG43hzrCVCVXsPmu9z/X 3SrTcgIJHNieRHM4ekjpzHlrq8a7XY53X2Xi0kzLCJDOpkAOPJaUW8P+pKIGK5zA1deN vsHpyFSbEV/S4olr56EkAuFaBLBwbhkPcc6bUWMM5v0d3SpBJPvngsiIg3P0DDQbNzYS ZiGMD+zb4Hm3zirbYEcMJesZ+emiYIdHbtSnj+iCkpi9fiojTiTuivFwYPXN3hwLD9fC wO6wdgpDRiknreIBaOgoVGHdUgMLT6SRkS8Py5jtU/YYcRqpUjWUscp0GhT7ILVLUGvZ CTLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ea72sH7G; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si8991345plo.95.2019.04.08.12.40.05; Mon, 08 Apr 2019 12:40:20 -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=pass header.i=@google.com header.s=20161025 header.b=Ea72sH7G; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728554AbfDHSLa (ORCPT + 99 others); Mon, 8 Apr 2019 14:11:30 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44778 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbfDHSLa (ORCPT ); Mon, 8 Apr 2019 14:11:30 -0400 Received: by mail-pf1-f195.google.com with SMTP id y13so8072217pfm.11 for ; Mon, 08 Apr 2019 11:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gCaZtAPIdoTmL89IrJBiBqajTRyKobTSTiuIO1WebTU=; b=Ea72sH7GwMqTkGBzJpLIvDEoenxfQLMSfNsp+dV90t0O4AWKpb+TGWDUCZz4smapDs 7+HUVhdKUrRXCy2NN1mL5FIV07RduSMUKuVPvr3ipCFP4rAp9jNWjv1m2/pVq1/3yMDo mjTBhgRa3U6TGI6AVgsgsNPQQr5SVG+Z4ZgPwWkPgMIYw9IvOcV3YzcXdBTK+Oz8+PIM 54+hKFeXxLfApDqzlDdHC84f4J4fhPNqfC+RY0bsCxw1onCp4+M+PsNKl+1HzCmTcbRJ Q+C8Hp/+e2FKwBLkr164WhtCN+dKBf4C3VTBK5xKESDBza8N97dw+XOjVZM4pm0uEI+g koRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gCaZtAPIdoTmL89IrJBiBqajTRyKobTSTiuIO1WebTU=; b=TpzYG4sdJJkVUQd5xC7bjI9swIX7fcX90WjTn5TsuL3IlWvx8p85cPFqhHCYa/MWCr lJ+mo+JfHLmRdC2E3Rch3ObLKd9aZTrcCh9sCqEIWFC1983QyE5SXxoLgQHWMqc4QUwU FvvOSLYjHCyYRicwne2hXK+GaX23bpWJkl3jNEYhvGCSBuxj4dVPz2BF5CxLQfsT8a+3 e0fMcufR4/UwJvHriAPTWmVvTea1JtACoHyUK+g+LmTnj0yel9xiIK1bAYDg08QGklK1 s4sXKtACwWtMaGbNdS0f2w6xBaSN9woF7Wm38+rjCNAtLMsYuODIebW4GDa81fWdRtMw DKLw== X-Gm-Message-State: APjAAAXNaUNYXCz7Vlg5T48W6N8IVLri87QVjuogMNjjdDAOg0FnCfX+ +c/Az6LVFhn/LCx1cWoI7MXRccFAsEcap15G0rWXAg== X-Received: by 2002:a63:465b:: with SMTP id v27mr30350154pgk.165.1554747088946; Mon, 08 Apr 2019 11:11:28 -0700 (PDT) MIME-Version: 1.0 References: <20190407022558.65489-1-trong@android.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 8 Apr 2019 11:11:17 -0700 Message-ID: Subject: Re: [PATCH] module: add stub for within_module To: Tri Vo , Jessica Yu , Matthew Wilcox , Randy Dunlap Cc: Peter Oberparleiter , Andrew Morton , Greg Hackmann , Linux Memory Management List , kbuild-all@01.org, kbuild test robot , LKML , Petri Gynther Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 8, 2019 at 11:08 AM Nick Desaulniers wrote: > > On Sat, Apr 6, 2019 at 7:26 PM Tri Vo wrote: > > > > Provide a stub for within_module() when CONFIG_MODULES is not set. This > > is needed to build CONFIG_GCOV_KERNEL. > > > > Fixes: 8c3d220cb6b5 ("gcov: clang support") > > The above commit got backed out of the -mm tree, due to the issue this > patch addresses, so not sure it provides the correct context for the > patch. Maybe that line in the commit message should be dropped? Maybe Jessica could drop that if/when applying? > > > Suggested-by: Matthew Wilcox > > Reported-by: Randy Dunlap > > Reported-by: kbuild test robot > > Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2 > > Signed-off-by: Tri Vo > > --- > > include/linux/module.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/include/linux/module.h b/include/linux/module.h > > index 5bf5dcd91009..47190ebb70bf 100644 > > --- a/include/linux/module.h > > +++ 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; > > +} > > + > > Do folks think that similar stubs for within_module_core and > within_module_init should be added, while we're here? > Otherwise, if the answer to the above is no, Reviewed-by: Nick Desaulniers -- Thanks, ~Nick Desaulniers