From patchwork Fri May 19 09:27:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13247973 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 CA97AC7EE26 for ; Fri, 19 May 2023 09:28:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 51A1E900004; Fri, 19 May 2023 05:28:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4CAFD900003; Fri, 19 May 2023 05:28:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B9C7900004; Fri, 19 May 2023 05:28:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 28C8F900003 for ; Fri, 19 May 2023 05:28:26 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EA61C809AA for ; Fri, 19 May 2023 09:28:25 +0000 (UTC) X-FDA: 80806478970.25.79C0977 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf05.hostedemail.com (Postfix) with ESMTP id B793810000A for ; Fri, 19 May 2023 09:28:22 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RSXpt6Ib; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684488502; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=cpw/NUFswrYiWWCk7SNj+4W4pPcjXeFrDogiMre1ubQ=; b=5PTU2pK/SSNBiGLlsmgrgG7nCuoTs7sh3SB7uODM5j4+GH7iNtVX/PjFpx1c71s5PWXGfn rkn2wYO3WDOaY0jkbmV0BWqFrnpUo9J34sY2TqU/1IjGtDlHyq0cIazMrH1GsXQhNAwvqY KhNc1k8ff9TCVJyzpTqXgmNa7Eicb6g= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RSXpt6Ib; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684488502; a=rsa-sha256; cv=none; b=rEm1PO+gzmn295c0RVmzD4VYJta+Z1kDmEKPQYMsQSvD7/iFaFGe+PCjcTN2YPX8F6lxAV VYodfJKTHbYLxQTXpJYvtpcbZNluShLn7Ho5rmElg152W5ZWCy7xAb9KZ5JiC7Mseb9kts WVV7C0q2oHPo9qY1gOKpCz6jnwPLdWM= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AC8B361521; Fri, 19 May 2023 09:28:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B8DBC433EF; Fri, 19 May 2023 09:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684488501; bh=oqaxusc9buD7w2Ddys91pietI0uocG68+c+khpbA3To=; h=From:To:Cc:Subject:Date:From; b=RSXpt6Iby9HAjPxnV5GqCjOfqn643OHr3L4k3vxbYnukfGCAjM8QvcsWOHa7GEPGd VmOzown06OswYEEihZXC1G30nLZA/aHpwM8SDpNdo7bO+cwPACVkrQy4nz/yizbGXw 0G4UvKWb07imYX+alpJ8DYT1n3rQk7VL8XH6fS0cS+3wi0SAk7mo9PtYiR7za2OshX LlKTQRtQAmBzc0zF3s1N4J8jdEX1tktBv6yvysz42HZCIldxKsBAEZGL4/kGg8zuLo HANvZ3FDY+b/Hw5CttK0f7sRDyfP/H5k2OZAzTBQfGupho9LQ/vW58DGGuS73rQYTN TKi+vOzAyre4w== From: Arnd Bergmann To: Andrew Morton , Oscar Salvador Cc: Arnd Bergmann , David Hildenbrand , Vlastimil Babka , "Mike Rapoport (IBM)" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm,page_owner: mark page_owner_threshold helpers as static Date: Fri, 19 May 2023 11:27:43 +0200 Message-Id: <20230519092800.3772196-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: B793810000A X-Stat-Signature: rmza3xre4mxomu6rr7wwfft9uoohshpf X-Rspam-User: X-HE-Tag: 1684488502-682505 X-HE-Meta: U2FsdGVkX18OoV2cTHR/+OUFbmqqWRCVJEkTkxDGYc0ovxUyVSQtH/6O4hm+uz4FjmrJxP6qDOIqRe6EY7xdqR/Q4RS4FJktHjvx//OCe6GaXfzoxIbl+1o1fPQJTk4t80lb7fpEmeNcHqXkxHwPX8YZPAngxVMs+oqutFRei1Ofh7TQ8icI3e+QHb0Rg/1XDmsZujHiuNV6PmkF6f1/4ohM8mEuJuHIXKhxbl8ad2mnsAciCM+FLu40vzTl9VoaohCiJTZlS1DuK0KvcassneOpZSybkUbTcyM2zzhm0b786xJC3JhlSXQLHalObU1LRlmXE8verQ1QMjnO/jX9euuUKeFK5SdjU2cGyUqmLy0vF6PmxApPWZ2Oye3Wt3QcaFO6tAXz1QyIQLPImCbHFSD0Y5jOyBh3YgceWWXZMlQKEivbfVqSEyKG7rl9QGadiPJb0esKFyP6zPxirsmMpkIxCFOYbJbRVt38VZyEbK81GCt8RzadotwJ8L2n9/YFjuKDohOBVKuhqg0vfNSU/BW0ZbFxnfKURp/jXCkUjQdS4FdYUg9OmiB7hmz3MvSfJOEmxNbyt2fUIl2u9EGNV3dgQ2hS/VZFqNCD0Z8X/fVjo6jbyNaWmu3akuRMhLTnych7ItQOmTMXqdr9adj1BR7O2UXJcJ8cN7x1Vo2L5thFgPjIRn+7LLOMvMBkcVJX0ODs70ko2RPTnFQZyRu/6liyS+/uDGFPHBlexTnu0mR9EcmlI6K4kl1K7ghshqT+4e5kkznBIXsIQlJgWn776t3PwwAyy7EdxoxrUPE9YWk9kX8lBthNkxWXaU/BO0IbGL3WsTuSbnpIp7AEgl872lNhOLWCzG0YfR+18LLkb8mPouLLYfZxkE7VmjWc8P1QiYqLsjb1QdlBxqRLykuZKue1I/hDgh80OQ0NUxllt5PntDn8iIwoLfpKGN32h8XGpjYg9w6UDKv1ODMzBpY 8i1VAatP zyCxH+oNBHHjk7bvkWGbpDFQTxi7sTvNno26/4B+5BCguDvhzJdg955YaJa5bF6/JSzX2IIysDCgriuWSXPWULnJ20KVk+8hDSGBk7+Oyw40uAV1tZV2JMJCnmmCf5h72frgT8BdTP4/itCYsbKbeGDkOzSVNQioGhEiO3r/TdTN2SbGjmqF+6Jl1/sr+b0UxrJXkJmy+fd7P3uXKw6H30Y57VsQZhKdNUeC37HqWv4TZkJU4ZEFujJKAcFSt5XW4h6+0sGtpNBy1AGD5j1uFr1fDGq/R+IIj0ERpRuIZEG+w6vAr+HcyIWln4V8lKjQoegON 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: From: Arnd Bergmann The newly added functions have no prototype: mm/page_owner.c:748:5: error: no previous prototype for 'page_owner_threshold_get' [-Werror=missing-prototypes] mm/page_owner.c:754:5: error: no previous prototype for 'page_owner_threshold_set' [-Werror=missing-prototypes] Evidently they are only meant to be used locally, so just mark them static. Fixes: daed0e400a81 ("mm,page_owner: filter out stacks by a threshold counter") Signed-off-by: Arnd Bergmann --- mm/page_owner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_owner.c b/mm/page_owner.c index 28c519fc9372..bbec66cd1b72 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -745,13 +745,13 @@ const struct file_operations page_owner_stack_operations = { unsigned long page_owner_stack_threshold; -int page_owner_threshold_get(void *data, u64 *val) +static int page_owner_threshold_get(void *data, u64 *val) { *val = page_owner_stack_threshold; return 0; } -int page_owner_threshold_set(void *data, u64 val) +static int page_owner_threshold_set(void *data, u64 val) { page_owner_stack_threshold = val; return 0;