From patchwork Thu Jul 11 20:46:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13731055 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53A39C3DA4A for ; Thu, 11 Jul 2024 20:46:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE3926B0095; Thu, 11 Jul 2024 16:46:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B93A26B0096; Thu, 11 Jul 2024 16:46:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A5BE56B0099; Thu, 11 Jul 2024 16:46:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8092D6B0095 for ; Thu, 11 Jul 2024 16:46:32 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 2C8161C13D1 for ; Thu, 11 Jul 2024 20:46:32 +0000 (UTC) X-FDA: 82328655024.28.D0D205B Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf28.hostedemail.com (Postfix) with ESMTP id 6D038C001D for ; Thu, 11 Jul 2024 20:46:30 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=UkeaBzBV; spf=pass (imf28.hostedemail.com: domain of 3pUSQZgYKCKocebOXLQYYQVO.MYWVSXeh-WWUfKMU.YbQ@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3pUSQZgYKCKocebOXLQYYQVO.MYWVSXeh-WWUfKMU.YbQ@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720730773; a=rsa-sha256; cv=none; b=xMPqCITRspmpt+XV0snvkmJT3c488kAjWUdF3rWUPM9jdHtVvr2NfF6H6D/ZvDv1buetKZ jDOcJqvZiYKeNUbg8XSu1fWIX5KqvnYuZmtJdkyMyKuTEnBbVBQgFzSTpLwLqi8nTlpKjA kP401RnIDwkC7IU5VB2/SDuiAvPnDO8= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=UkeaBzBV; spf=pass (imf28.hostedemail.com: domain of 3pUSQZgYKCKocebOXLQYYQVO.MYWVSXeh-WWUfKMU.YbQ@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3pUSQZgYKCKocebOXLQYYQVO.MYWVSXeh-WWUfKMU.YbQ@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720730773; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=Iqw7bB5EtRZn2HsYQyPavRWErefeL3ZC3fHJdpwKJ1M=; b=M9it4MuIyNuA+9Sm7lsexLK0Se3GnwNC5u5J/90yQUiTJZajKty7ILXR8i14/k5kCpyZx3 vZisniMO2M8cdnKm/Mwhj8LEXyiZpfG2tk4nfBehaYIg4MXe2JoCeVY6HVC0RzA0uq96iI VGl2PeCAIo+NzQexuqdg6s+EV61CXMQ= Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-65bbd01d146so18733047b3.3 for ; Thu, 11 Jul 2024 13:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720730789; x=1721335589; darn=kvack.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=Iqw7bB5EtRZn2HsYQyPavRWErefeL3ZC3fHJdpwKJ1M=; b=UkeaBzBVPDkU2a6nNSnHYFQ2lWk+xp5xa4ISVAbmNW/g577cgbjB/xUZfg9x6K5NoS VqgxgT65cg+e/apeD26ZZRbneMVP35w3vVFq/fZ+aaoHHdYIghpFCtpqTKgod1M8yL1H x4uHXlJVkSkU0t5GhUWlSeH90U5Sr2zQenJG1gxf49IuET27H7S0TmiYIop59QUjgmxy gebPYbh2p2DhD1Itz7YQ4G/jmh2LP7w2CDMEpjC4QV2uoNqHK4xnekfvqrGLkpc+1IY3 PbycenNQyVVVp6hcOZLYtkB257vZAO9enATLtUj4jYnPSGEXy7XP94BeZ082iTEjmQ03 LOdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720730789; x=1721335589; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Iqw7bB5EtRZn2HsYQyPavRWErefeL3ZC3fHJdpwKJ1M=; b=h+vzoGMHw+EsGwr8z21Ie23RQAdDY37/4nbh0wo5PcBTX8bmXI/dHSMR+GkvyC1OiD vF56vppX3WdvDkd6P3x5hqHDSfkebT2G/FF24CR2dKlV7zpsOEN8ryArO3fJNkP3sOJO JAYRSkqehL7Q0QE9WcmFou/hxxODAGwFHxk4BWeK+RenMY/W3wk3/oi72gb5v3Mjy7D/ VuZP6fk46LoW1Wh0j9fE3lo+sRiAhLe1f1bguD4Jj6XhS/ytiIhjvi3T+rjfmneCPH7y af1q5m/CqfhUmgEdyTuGKAChwusc9ov9+F0kRYlvQVu51CaKgQxw42RZcGv+eb5UxlF+ XeSA== X-Forwarded-Encrypted: i=1; AJvYcCXEBkfuiV4/gweHc2UK6LD5ltwaul6j8z4qZVe+5GzQHDd5Gr43/rF4mPvGUz3Vj7z11jelEKrdge7HUEP82YdFjFk= X-Gm-Message-State: AOJu0YziGJkq+x6MX8u6gQUwpp1IshpRamsDIMYiO0NgG+NBfVhMjDbV ERn8d+R4jf6EEgwm0degfwcx2kH0aMExvas2baPf708rw1UTYcnCWx9KIPUwvQsr82A0QTGKTsL KuA== X-Google-Smtp-Source: AGHT+IH9ZEUDCCO5kgiHI9GxlPSQWXi9xocUYKs1UWHjubk4cXKtT5i5Mw1fHi5ZkC8TDC/xgJpMaTn6a0s= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:3f97:69c0:dd80:bd4a]) (user=surenb job=sendgmr) by 2002:a05:690c:c04:b0:61b:ebab:ce9b with SMTP id 00721157ae682-658eea766f7mr543127b3.3.1720730789420; Thu, 11 Jul 2024 13:46:29 -0700 (PDT) Date: Thu, 11 Jul 2024 13:46:26 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Message-ID: <20240711204626.1669138-1-surenb@google.com> Subject: [PATCH 1/1] alloc_tag: Export memory allocation profiling symbols used by modules From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, vbabka@suse.cz, pasha.tatashin@soleen.com, souravpanda@google.com, keescook@chromium.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, surenb@google.com, kernel test robot X-Stat-Signature: 9daz31z63h1q7mi7k7w5m4xykbf89ytx X-Rspamd-Queue-Id: 6D038C001D X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1720730790-967014 X-HE-Meta: U2FsdGVkX19Ki0+zeLYfLBxy3jAu4p9eSgx+dHZzZXUf7akg0hOywtsWb6EP+N2aq4EpY6u5+97Af+yKGyGsoGaummdIHSkTR1wFsoo2vRQS5P6lYnelDYM6tN+km6zqUS34Wc1nmyiuxkPS7nBA6rwtFURX8hTYx8Ah+69xvYpEeQyaNAN6X9qVFtNr2KqXxVJiz9WNIAzoy0AX07JsuWFzC31WobjFV/aCtmmogu/A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LGL9mOFPIZFMK4NfBnBkxZew3CVS+fLgtGpJuGt7Lin8FvwY2Ltu+TQrrv5G5C85tAt6mmeD0UUjUsRTUl57fzu9/9EFC1+RcEmQYcsY4j8SHYFCKHW/EAQUws6DY5YLSsRQ3sXP759Qu/oA5LwzW9hscfnMf9uheZJK6uwlam3mlPWAfSgKRTqcHKTAOY2BxTokbxKElpdoyp9sGOQnXAuATEafHc5ywN3thpzAs6gmO++bwOHmGXL7c4o4GA7NYslG2vwI6qoQdnOcEGoUPryzc+I8HWK+w6fJQ9YGeTfW6LkWlXnzNi/v1MHX3RHm/CQq18= X-Bogosity: Ham, tests=bogofilter, spamicity=0.329711, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Export mem_alloc_profiling_key, page_ext_get() and page_ext_set() symbols as they can be used by modules (mem_alloc_profiling_key is used indirectly via mem_alloc_profiling_enabled()). Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407080044.DWMC9N9I-lkp@intel.com/ Signed-off-by: Suren Baghdasaryan --- lib/alloc_tag.c | 1 + mm/page_ext.c | 2 ++ 2 files changed, 3 insertions(+) base-commit: 9d9a2f29aefdadc86e450308ff056017a209c755 diff --git a/lib/alloc_tag.c b/lib/alloc_tag.c index c347b8b72d78..c01f9f4e92f2 100644 --- a/lib/alloc_tag.c +++ b/lib/alloc_tag.c @@ -15,6 +15,7 @@ EXPORT_SYMBOL(_shared_alloc_tag); DEFINE_STATIC_KEY_MAYBE(CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT, mem_alloc_profiling_key); +EXPORT_SYMBOL(mem_alloc_profiling_key); struct allocinfo_private { struct codetag_iterator iter; diff --git a/mm/page_ext.c b/mm/page_ext.c index 95dd8ffeaf81..57a198c70f98 100644 --- a/mm/page_ext.c +++ b/mm/page_ext.c @@ -527,6 +527,7 @@ struct page_ext *page_ext_get(const struct page *page) return page_ext; } +EXPORT_SYMBOL(page_ext_get); /** * page_ext_put() - Working with page extended information is done. @@ -545,3 +546,4 @@ void page_ext_put(struct page_ext *page_ext) rcu_read_unlock(); } +EXPORT_SYMBOL(page_ext_put);