Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp750604pxb; Fri, 22 Apr 2022 10:21:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAzzgpTiQr6xQbsaFJPteXJrly1SJCdUCKz/DXsby5gGV88drj1Oix6fpvmA1Q2uGOsgl+ X-Received: by 2002:a63:28f:0:b0:3aa:8453:c362 with SMTP id 137-20020a63028f000000b003aa8453c362mr4800641pgc.506.1650648089539; Fri, 22 Apr 2022 10:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650648089; cv=none; d=google.com; s=arc-20160816; b=IgBdIzghffY35JxLrJqNdg5RoNHoemq4z13RsK9AO8fpgeVtz+AfJ2odep4DWbbys7 F8oEs0ZwWYFo8iUV0I/QPR6kX565oaYvqPghT9hJgrUo/WKLyi/71jvWVaSAAkIrCN7j zrn5eYm2vBNLi2DPJ6ijImejwgQayUoL8b3O4DlP2XkRRxtHWeBt33udVhjmN+X0/Nb/ 6euNXaNrkdfpi5ZkoIl2AFaVf08r8642dJNT2nwQJtYUplF9R5wAkWSV6A2H6iA7TVHE 9s6G5BE8A4R+cdJoBapH5BAbZZGnNtPUYIYjHzg5rqJ/kmLK0GzWyO6n6Oqte3srrQD6 3o5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=99zPGQDcBvB2eneXnR+UDPkr2FlkHpg0OSrd18ZV4Fg=; b=yMAWVOVvBfGPGTv+G0+hPoW7JuyzKCV1N/1BGX5Ve42g1KuehFG7PCmUHvAn1pn0W/ UoT3+w98/HAnjIb5MXPD4//NBX7PON6Ox2OjQltOBhPzZIV5qpMPxEZ0luORVGiMvYsq Jd+LJaBYPq70IOHeKPV1MK1DWW3U7FTE/Z6S+AnaJLm1tS4UvgNCEnFJJsdohrEDP1Lv pD1YIN88GFYqmomkNcU/bd2cqLltCqbkjEh/3U3aIrDIV/GAT+ScX3h9P/mQn7I3VDl0 IPT2GpqlQy6BMGUIQvbCFNDavRNCV8RxziV+1xO6n4oKrmzG8ReyF4zRQR6JXMcmBN+x PeKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=VLywufJW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p22-20020a63fe16000000b003816043eeeasi9302236pgh.223.2022.04.22.10.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:21:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=VLywufJW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CFA8E9F3B1; Fri, 22 Apr 2022 10:16:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390318AbiDUPvb (ORCPT + 99 others); Thu, 21 Apr 2022 11:51:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390302AbiDUPv2 (ORCPT ); Thu, 21 Apr 2022 11:51:28 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 649F51AF2A for ; Thu, 21 Apr 2022 08:48:38 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id s18so11009683ejr.0 for ; Thu, 21 Apr 2022 08:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=99zPGQDcBvB2eneXnR+UDPkr2FlkHpg0OSrd18ZV4Fg=; b=VLywufJWMlVFxqcfNnZ5LLc0KyAM4UcVKWw+3U/dmyzmkYUl66eNLXln+J8wdYeFib TFyQctG/3jB/BbqgBgIkmvyVe+j+kUwysGydwnvXU5g4OFlIiLrRR8CbwW/1kcOqrDS+ k0cjhjdEuKA9oz6o6ZI4+lhEkSrErxxRSEcNrzW34RIWL52UoIMChNYDRaHpCNE9iMIV 60vSWFF+QCw7DM/nHF6PHQih9JoZHz7nKTTuQuC2JzA1lYWsULBpVaziblXAfpywWIj6 7dnAXZKJS1yem3+vHGn6UQEIyt4JSgqGoBuYdFziAgX7DDF3NJAd76xP+qrOxF4jsiZD kJgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=99zPGQDcBvB2eneXnR+UDPkr2FlkHpg0OSrd18ZV4Fg=; b=Ha2Dyc4OBQ9hutuCyFNOr/WeQDeIcYv0EwEf+8Rc71uf3CkPbUiRXHsIVHrPztuDV8 k9dGaHzA5sOMWQ1RIKa9gBvhjV6W8bgfi9PnZ+4ELxoB1ez2ifqiX7c1JGC4O6+xMcpM 510P8RezuWwQZ2RDOhqA4GT6aM/Ye5csNpiozcfW9/OcV+nrUw1vT0HlxqkgeduNgUz0 k6BG8qIxdFwJ7gYvb+BEydC0ZRwH+iEXNlVHa+MWvjbERix7CUxMl/q6YmmGHIxiCCCy LpIy5tLLQTWe0ZKxH9IzbnYhZTbb/jmnorKeDqSZYiyriySPBRqd5kauED2G0FQgsjFc Shlw== X-Gm-Message-State: AOAM530nN5tC0swClcnxfLwoqR9nrmYhUCTIh2nhdK7X+oSAU2MYWioy FEN/RfJ53HoDIFe192dgPr6ptSVJ1jTbdfdqugLph2r3DUxisQ== X-Received: by 2002:a17:906:1841:b0:6e8:872d:8999 with SMTP id w1-20020a170906184100b006e8872d8999mr162746eje.492.1650556113446; Thu, 21 Apr 2022 08:48:33 -0700 (PDT) MIME-Version: 1.0 References: <20220421070631.1273879-1-anshuman.khandual@arm.com> In-Reply-To: <20220421070631.1273879-1-anshuman.khandual@arm.com> From: Pasha Tatashin Date: Thu, 21 Apr 2022 11:47:57 -0400 Message-ID: Subject: Re: [PATCH V2] mm/page_table_check: Drop all redundant EXPORT_SYMBOL() To: Anshuman Khandual Cc: linux-mm , Andrew Morton , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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 On Thu, Apr 21, 2022 at 3:05 AM Anshuman Khandual wrote: > > Function definitions need not be exported via EXPORT_SYMBOL() mechanism. In > this case these functions just get called only inside their wrappers. Even > __page_table_check_zero() gets called without such an export. Just drop all > these redundant EXPORT_SYMBOL(). > > Cc: Pasha Tatashin > Cc: Andrew Morton > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Acked-by: Pasha Tatashin Thank you, Pasha > --- > This applies on v5.18-rc3 > > Changes in V2: > > - Restored EXPORT_SYMBOL for __page_table_check_pte_set() per Pasha > > mm/page_table_check.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/mm/page_table_check.c b/mm/page_table_check.c > index 2458281bff89..627c5025d786 100644 > --- a/mm/page_table_check.c > +++ b/mm/page_table_check.c > @@ -167,7 +167,6 @@ void __page_table_check_pte_clear(struct mm_struct *mm, unsigned long addr, > PAGE_SIZE >> PAGE_SHIFT); > } > } > -EXPORT_SYMBOL(__page_table_check_pte_clear); > > void __page_table_check_pmd_clear(struct mm_struct *mm, unsigned long addr, > pmd_t pmd) > @@ -180,7 +179,6 @@ void __page_table_check_pmd_clear(struct mm_struct *mm, unsigned long addr, > PMD_PAGE_SIZE >> PAGE_SHIFT); > } > } > -EXPORT_SYMBOL(__page_table_check_pmd_clear); > > void __page_table_check_pud_clear(struct mm_struct *mm, unsigned long addr, > pud_t pud) > @@ -193,7 +191,6 @@ void __page_table_check_pud_clear(struct mm_struct *mm, unsigned long addr, > PUD_PAGE_SIZE >> PAGE_SHIFT); > } > } > -EXPORT_SYMBOL(__page_table_check_pud_clear); > > void __page_table_check_pte_set(struct mm_struct *mm, unsigned long addr, > pte_t *ptep, pte_t pte) > @@ -223,7 +220,6 @@ void __page_table_check_pmd_set(struct mm_struct *mm, unsigned long addr, > pmd_write(pmd)); > } > } > -EXPORT_SYMBOL(__page_table_check_pmd_set); > > void __page_table_check_pud_set(struct mm_struct *mm, unsigned long addr, > pud_t *pudp, pud_t pud) > @@ -238,7 +234,6 @@ void __page_table_check_pud_set(struct mm_struct *mm, unsigned long addr, > pud_write(pud)); > } > } > -EXPORT_SYMBOL(__page_table_check_pud_set); > > void __page_table_check_pte_clear_range(struct mm_struct *mm, > unsigned long addr, > -- > 2.20.1 >