Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1657065yba; Sat, 6 Apr 2019 19:27:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxczu+MzUbJk3sYGyJLkB2P0Ry3fgfMZv+AmqzWYrLN7lMkFt8pRgJ7JNqByXABNRSPqVN6 X-Received: by 2002:a17:902:2b87:: with SMTP id l7mr22379302plb.38.1554604059048; Sat, 06 Apr 2019 19:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554604059; cv=none; d=google.com; s=arc-20160816; b=HHAaPQyJcQ2o108n6r7qN3V98qyk9ywk1C0HJzF4UhPVDPSbw2OJD4FSbyId3TKDRg TsRvphleRVMwC7+E9z1pu58CSWCKI2ChpINDTzsVcFSmLbp841fj0F/+GWpjE4ntef2h rWETFmYzni4BZTIbcFvKPvTK3QK2oPKIiEq4m5Jh/1enI3RuMVd/kvmqYmtsjWBH2TkM L1b4ji8c1iOPK+AGaHfmu09TjsuPA0a3JSPgHsenathW5FUHv6bAmk912EnzMh/jMx9h jXCFbbk4hl4djC3zT0E3WK9+sv9RQ75b11VLN/H70ULgUgOoeyJiUwb4MowMPJ2v3PF8 DvkQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pbFiHEf1JRX3q/KJ7+SXhCuYiieeLaagT2MKIRh7feU=; b=DscSBIpWqU5OkaN1i+PJc8fGrrUjFmOP998l/rcJ88egEOjy7f4h59Cpb+t/gdTACW QyizixkW7iv6ybwh3qcEst8AkR1pMjNKSre7RBwwdA1R5T1oRWwJuAu27t+GAMcpByjb +J3dKbN5HckXVEPDS+xOKLjc9+Af7bfKzkXr0rxxkPHNg8yoHtp/dP4/TVAw5gpbcjNX pvVRGh4uyY9INDKJ9eFR3pnxJnFY4Z7sg7h6V3hXhHTyz8BqGaeghfOMEO6mwyBftPr/ weQ/KYzPPhwFehQXYzPMmAo1+Ve3Fw78LXszMi50Qh9AScdKBi8AZOuAQpK0rYtSNq0B 6HeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=aJODF+9G; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y70si21305740pgd.359.2019.04.06.19.27.23; Sat, 06 Apr 2019 19:27:39 -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=@android.com header.s=20161025 header.b=aJODF+9G; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbfDGC0u (ORCPT + 99 others); Sat, 6 Apr 2019 22:26:50 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33223 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbfDGC0u (ORCPT ); Sat, 6 Apr 2019 22:26:50 -0400 Received: by mail-pl1-f193.google.com with SMTP id t16so5238590plo.0 for ; Sat, 06 Apr 2019 19:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pbFiHEf1JRX3q/KJ7+SXhCuYiieeLaagT2MKIRh7feU=; b=aJODF+9GDwNrJJA3vaeBNXIQnT08LEI7aw7UDRbuPPI79BaOZ4n+enGT8hf4x02OtZ G1luMZfHQgAgy60D9Wr3P/aL2B1ZC338zJdc4itOVWJQd1JP1dLypwbunA0tDe9Cj/Go fpvR1swPTanzB1/oOMEN9SIKfnN+HCtu7yOgS6wnp/wXF95x73FHoJWJE7f5zYEoqvkj 0cXUXYGoScwjZ8wnT1Kco1pZsDyxceVjlwOS1X7An01ljLPBKvJQGpDfSSN9n/BZod8r bE8qcH1dJAgmul0kS3lWgZql8YbHBtYOiFpA9eMj7SEwXObYqVHmad9HkXKC9CSEJNF7 5UhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pbFiHEf1JRX3q/KJ7+SXhCuYiieeLaagT2MKIRh7feU=; b=YqsQmwfXE1MaOnOPog+Xd59/oWHHCP74ZVZVZSlQzY9SiPup3A8sXp5sjhN4J4s2jY w6jNq99B9Wd/EYkqPwwrZdxgRBbj96mCV1adlzJHEaSZrBjFyT3PtMP7LSk0jiDzA/zO lR+EeXoK3+tiCCVdvbrQ2/NEIBAuCWu3HLkD9l0t4HexlEOCSCXxUODN284VljMdsiqW u6qtcsMk7DbdJy1FwOgv1Sx5WP84YHAEH/iD2v9Flv8HXigk/63cBMdlatoPBp450z3n 9MMJy94gzj18VnYiX4ZkQsk2TsubLrhi0rtp3vV6QL5WllTFtiJFaK+0fA9e/GFIoZ/O KZxg== X-Gm-Message-State: APjAAAV+Bt/LEu3BgSpy3PwkWxU6C/FAhmUdUfR7bjffB0cKdmpIOo7L XYgt+f9/QhtSDDkfDl42Z5qoiQ== X-Received: by 2002:a17:902:ec0c:: with SMTP id cy12mr769plb.291.1554604009667; Sat, 06 Apr 2019 19:26:49 -0700 (PDT) Received: from trong0.mtv.corp.google.com ([2620:0:1000:1601:c43f:8c1b:f6ef:3dce]) by smtp.gmail.com with ESMTPSA id f7sm50240345pga.56.2019.04.06.19.26.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Apr 2019 19:26:48 -0700 (PDT) From: Tri Vo To: oberpar@linux.ibm.com, akpm@linux-foundation.org, jeyu@kernel.org Cc: 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, pgynther@google.com, willy@infradead.org, Tri Vo Subject: [PATCH] module: add stub for within_module Date: Sat, 6 Apr 2019 19:25:58 -0700 Message-Id: <20190407022558.65489-1-trong@android.com> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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") 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; +} + /* 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) -- 2.21.0.392.gf8f6787159e-goog