From patchwork Mon Feb 21 10:53:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyeonggon Yoo <42.hyeyoo@gmail.com> X-Patchwork-Id: 12753434 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 6D848C433EF for ; Mon, 21 Feb 2022 10:54:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E963A8D0005; Mon, 21 Feb 2022 05:54:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E1F308D0001; Mon, 21 Feb 2022 05:54:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C98DB8D0005; Mon, 21 Feb 2022 05:54:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0007.hostedemail.com [216.40.44.7]) by kanga.kvack.org (Postfix) with ESMTP id B4F798D0001 for ; Mon, 21 Feb 2022 05:54:02 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 74B58A15D7 for ; Mon, 21 Feb 2022 10:54:02 +0000 (UTC) X-FDA: 79166477124.14.8E82C53 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by imf20.hostedemail.com (Postfix) with ESMTP id 0B3041C0008 for ; Mon, 21 Feb 2022 10:54:01 +0000 (UTC) Received: by mail-pj1-f46.google.com with SMTP id qe15so14800853pjb.3 for ; Mon, 21 Feb 2022 02:54:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a0dsHEkkjYMDgDk/stCFwxaKiFUsmcZuEuqNP0XmmQ4=; b=KQWzIh6iHJeXbHTKWVjQ9D41ZTsqUYpa1zh7KmZnFyY8LTHgMsfbPldAhLtHRazhbF iyJ2tHidCoinbQysLDxGZ/K9/DSJmfxe+VR28huzDlGIgyZNW+M5fJNFDxTodOZuIoA7 o7F6WpsjI5aJlu4Ixla5LTpCWx4oKE+SVEbaMjEJ5oCbRqmSAMywCddBpedDxZMcmznC SVjT2Eo3CdxQkHjEG5HCPm/iUKUF3BBORX0eRVMh+8DzOq+ZkzsconTuqcuubqDFfL+/ jZ0iM1Zi/NHOm+Fds1x1RfGt0SNXPgriZU6gQGSCT6GfnJbKY/HC8BJLP00wkdC/Rl0g uHOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=a0dsHEkkjYMDgDk/stCFwxaKiFUsmcZuEuqNP0XmmQ4=; b=Z8y52jpJd58OAUGOCC87nPVbrfC9+oWoHyNpJPUm27TPsfa+nYWj/cCwac/CKMLneu 3i2fc6jEqz4oWDypQ4hIW1rzocfr4awhxNwn/oQCWe2FrdJBD7lIEFc2lfe8/bT8IOkR HD26iu/yhzq3FI5kQPq6NKxJ5mYPoZMs2bRoML/flbm0088IeFFPKFL52kRQJ1yP3gIJ a2dyDA3aY5ZAS6tkmg2zfsjKrrPc9RLIT3bJI7wA9sRDMGZl2/Cyymdv1FoYE02w3yE3 NZP47lmcYAohnTUmrIsfxT1wAPVphIFRAqt8jqQGxb6DLYEf3ziuZpM3E8wMlxtTnJNH 4L/A== X-Gm-Message-State: AOAM530bch1YP4UJNYfObowH3tUj6UKYxXZW+1OIuFw6MMJ/Af0fpBxv NgiQPqS4gHj4jpJ8EdSQfc5/S4Wyon7/gA== X-Google-Smtp-Source: ABdhPJykGrMP/3jkaSti52P2kS6FzFtdySBLx2jd5Kbdy9BLiESNB++I0iuWS6uFkrxzJj+Drnww5g== X-Received: by 2002:a17:90b:1c83:b0:1b9:caa:8230 with SMTP id oo3-20020a17090b1c8300b001b90caa8230mr25247369pjb.26.1645440841051; Mon, 21 Feb 2022 02:54:01 -0800 (PST) Received: from ip-172-31-19-208.ap-northeast-1.compute.internal (ec2-18-181-137-102.ap-northeast-1.compute.amazonaws.com. [18.181.137.102]) by smtp.gmail.com with ESMTPSA id u6sm2214725pfk.203.2022.02.21.02.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 02:54:00 -0800 (PST) From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: linux-mm@kvack.org Cc: Roman Gushchin , Andrew Morton , Vlastimil Babka , linux-kernel@vger.kernel.org, Joonsoo Kim , David Rientjes , Christoph Lameter , Pekka Enberg , Hyeonggon Yoo <42.hyeyoo@gmail.com> Subject: [PATCH 2/5] mm/sl[auo]b: Do not export __ksize() Date: Mon, 21 Feb 2022 10:53:33 +0000 Message-Id: <20220221105336.522086-3-42.hyeyoo@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220221105336.522086-1-42.hyeyoo@gmail.com> References: <20220221105336.522086-1-42.hyeyoo@gmail.com> MIME-Version: 1.0 X-Rspam-User: Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KQWzIh6i; spf=pass (imf20.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.216.46 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 0B3041C0008 X-Stat-Signature: akske5amce81ozw4utxb1itknpk76ub4 X-HE-Tag: 1645440841-462234 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Do not export __ksize(). Only kasan calls __ksize() directly. Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> --- mm/slab_common.c | 1 - mm/slob.c | 1 - 2 files changed, 2 deletions(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index 488997db0d97..f2c021b57579 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -1271,7 +1271,6 @@ size_t __ksize(const void *object) return slab_ksize(folio_slab(folio)->slab_cache); } -EXPORT_SYMBOL(__ksize); #endif /** diff --git a/mm/slob.c b/mm/slob.c index 60c5842215f1..d8af6c54f133 100644 --- a/mm/slob.c +++ b/mm/slob.c @@ -588,7 +588,6 @@ size_t __ksize(const void *block) m = (unsigned int *)(block - align); return SLOB_UNITS(*m) * SLOB_UNIT; } -EXPORT_SYMBOL(__ksize); int __kmem_cache_create(struct kmem_cache *c, slab_flags_t flags) {