Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9257000ybi; Wed, 10 Jul 2019 07:16:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvj/qgv56BNYaY1TGnaxaLsUA0mjeTC0j+0ewR+pvkaRB6iPRoJzCu4yfWjHwC9cOhDUZ7 X-Received: by 2002:a17:90a:206a:: with SMTP id n97mr7387573pjc.10.1562768176022; Wed, 10 Jul 2019 07:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562768176; cv=none; d=google.com; s=arc-20160816; b=wVKHXlcq8xJS5d6uCM9wjqVLYAV92gy+dItj9+585HJRc7vaC6Z0Qi10LaDno7evO7 AKsmeD681A+EsC8sVVxfYKtusAoWqMrkIfykL9fM0GmD6S8ahOIIol8YLB502+PLaJMo EACQIn6/V5KPoaY74b7BXIWYGgIU8Fn78aCS90kaOBJTTRUyFqVAcwmooZIOgy7/WpH3 mDuwtGnywymo/JaUrVAOkcbvOOLEgDnH030JVKQOoQHgK7HoFiUAWGqtdrUKqhaCGNyn xZGO+htbWPhsDboILJJDjpKi9HgJWxDAK9Lk7WTrzaMZPKI4Opkcx3rMSV/v8u4WGy0l VAyg== 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; bh=TY7yY/Is1vsoNm98cSnkNJrjSVQKwiCCI3+J5kse7IA=; b=crkEA61B9t9eXXVTa9/SAwh0GsTWmZ5KeMzRXMNBXbSzJvHR6bo21aweIKG7zGpN0C I96M30hbwIB050LJR1kgMVGYN5Hs5RSk62nsmAy8yCERQISjHUf51gcEmtmslCjv+Wh9 9DI7VvJVVBqv4CHbNZobJ/p1FpivXhA+gq2s+fgr5WYY1mtyb2qfQohdjIxh8L8lJmD1 ZI8PmUfjP92v2lx/mpa4utvs4U4OWq1IKWYnc5q55k7+KOjdMaMQoJjmwuz8yOwt4Hpj q3UzY9ca79bZgNG7di1JwuN5S+796OqjCfEaeLogquZAwFb1jJHhoh3K7N46q1qLatTR MZkg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si2191963plq.414.2019.07.10.07.15.59; Wed, 10 Jul 2019 07:16:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727788AbfGJOKi (ORCPT + 99 others); Wed, 10 Jul 2019 10:10:38 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50632 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbfGJOKh (ORCPT ); Wed, 10 Jul 2019 10:10:37 -0400 Received: by mail-wm1-f67.google.com with SMTP id v15so2499686wml.0 for ; Wed, 10 Jul 2019 07:10:36 -0700 (PDT) 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=TY7yY/Is1vsoNm98cSnkNJrjSVQKwiCCI3+J5kse7IA=; b=ruxCm5woU8gpAbi9vBWzm9CN0HuvcUR11/k11TOblNunYgbdcuIYMdwmiOGKTMhJsU cuH0Wp95fKG6TI/CfrWUvdomNQ+P/2ih5SgQYmxrP+WuFMbwBsJRRZcCzrtsc8z7ryJK d9ZMqZkYKT8vPupDZIr++4DY8B07MV1qNnLlouDJNzI27JBFBLk0u7PlnIWP4Bf72aQ5 tCfpqL+/LZpdYsub9SOji/Srv+4omJfE+Ny1A95l8IF4/JpsIvm/qkcLgOAhC5KdTSJV 8cHOejD9QoGIB00OPx2r7iZHCkfk4UhSyjC8+6+kYDZzJBnTpVmcIZccrsy3oTVBKWG6 RTHg== X-Gm-Message-State: APjAAAWTw7OueTPeBlSC7WaC3eY+4CIFn9W1Vnv9WD8fu7kO3zYMtqbz Fn9PENiTvahG5K13Kip7M7U= X-Received: by 2002:a05:600c:2245:: with SMTP id a5mr5603409wmm.121.1562767836208; Wed, 10 Jul 2019 07:10:36 -0700 (PDT) Received: from localhost.localdomain (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.googlemail.com with ESMTPSA id v5sm2733206wre.50.2019.07.10.07.10.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 07:10:35 -0700 (PDT) From: Denis Efremov To: Arun KS Cc: Denis Efremov , Andrew Morton , Michal Hocko , Vlastimil Babka , Oscar Salvador , Pavel Tatashin , Mel Gorman , Mike Rapoport , Alexander Duyck , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm: remove the exporting of totalram_pages Date: Wed, 10 Jul 2019 17:10:31 +0300 Message-Id: <20190710141031.15642-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 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 Previously totalram_pages was the global variable. Currently, totalram_pages is the static inline function from the include/linux/mm.h However, the function is also marked as EXPORT_SYMBOL, which is at best an odd combination. Because there is no point for the static inline function from a public header to be exported, this commit removes the EXPORT_SYMBOL() marking. It will be still possible to use the function in modules because all the symbols it depends on are exported. Fixes: ca79b0c211af6 ("mm: convert totalram_pages and totalhigh_pages variables to atomic") Signed-off-by: Denis Efremov --- mm/page_alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8e3bc949ebcc..060303496094 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -224,8 +224,6 @@ int sysctl_lowmem_reserve_ratio[MAX_NR_ZONES] = { [ZONE_MOVABLE] = 0, }; -EXPORT_SYMBOL(totalram_pages); - static char * const zone_names[MAX_NR_ZONES] = { #ifdef CONFIG_ZONE_DMA "DMA", -- 2.21.0