Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4226368pxb; Mon, 21 Feb 2022 15:20:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJylfHUvuy7+YJaVFLPtda6HsdD/sktT+wLiEXROFZdC+xx5sd3J6kHN2ROOUF83ZeV5VLrI X-Received: by 2002:a17:902:d103:b0:14f:a3a5:3974 with SMTP id w3-20020a170902d10300b0014fa3a53974mr9778525plw.74.1645485637811; Mon, 21 Feb 2022 15:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645485637; cv=none; d=google.com; s=arc-20160816; b=EbfF/RV7G+T/u6DRUoCpcPyzdFACZ8PupZ0ZnH76/qNAuxm1DbcuJ2BpM52qYhGG5x g8y54lg2rBiTjqazzuGQKNdYxlxJa5PlYlt0t/DPefLEzvjB2sMPXtTiju3yPtatkHkm 98s88hqUersq//thtUmVA4LTP+dQ1zGV7VCgNUGjRvZyIbv1cd8uzsvqsuQNwR+IVKon uQtCx5mYV8wz/Jg12ctHHDbH/G2OqxYAB4vCx4e5rCYd17i61AEGWOvKq0fO8Rov/iEE S4Mr/1/qPuJE50rZJZSMTssqLcVwrU0WeXbaDiCPQkCtIa9LBD4JHimTwa704bvhZ7mM Hw3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=a0dsHEkkjYMDgDk/stCFwxaKiFUsmcZuEuqNP0XmmQ4=; b=ZctxGqQt/bVAlz/AKbCW5uT9fYQHNHk1Oblcs/jz1ihd9AFkqrJzbjJg94qqt3CwVy kUIuZbACn52k87i2OKw79P/jwvY1rpsKU7zyV6ALw0aoDqdQb6tp0CxaATXnCBvlddKJ QBwO6JASrRBZHz3blD2YQDzEq5YY8ubNsEOLMXgAghStO/zk09PW3LbUObUzA6KYhCZZ WU0zcsOQd9kP/qYeYPMvQwSh7UCuEWL94PbyKi3GjzKhjPz08CQhoeGeWTTzqK4oOERK 6WRmTpAVGYHAgEZ4YjQOvvrB7lEyyQfZHgHZCZQ7OO1Ryoaj45V6ApnSQs+ZOd1wB3rz tvFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KQWzIh6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k74si4707336pga.591.2022.02.21.15.20.22; Mon, 21 Feb 2022 15:20:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KQWzIh6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356032AbiBULSX (ORCPT + 99 others); Mon, 21 Feb 2022 06:18:23 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355944AbiBULPS (ORCPT ); Mon, 21 Feb 2022 06:15:18 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACCFBB29 for ; Mon, 21 Feb 2022 02:54:01 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id x11so12577214pll.10 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=IQH/uI2Zr4b2PSa/D23QtNSG321LHfEhp40CV+XjRYKgD+bRF7viI/2m+xPsg21WDY LPtrKl1zBHpbCMDsC/g6eVUYKmDhfTunu20CryUUkSvgxJJuB6482bV5puLnz0BB8aj/ WSxffEBF4zExp29vnbkx6dzjPfpxypIWHUjGYgJjrEsQlaXLP3VqYoJHSZ533F1iUHb1 GFhUjteH66pPe/ynf1LhnrfLvIfTd++B2Wqw5+8W9lNKDLrp5pBvTJZewqRQLSklo7Yp j0CkutvGxkgdTcKg48fjz71ZleDqc1Vyvx+T6BfoS+XpsFrtzs14UpJ31VOx8iNxbtzA FA/w== X-Gm-Message-State: AOAM532JWxYDUWaxlmgvOqqLFKNMQSO84ngdyeNaTwN3jJJ5IL5x5OEQ XxNRsZVRBVfAtvdkjYwH05Q= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 2.33.1