From patchwork Fri Aug 4 08:26:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13341453 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 D7574C04A94 for ; Fri, 4 Aug 2023 08:26:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 53A612802D5; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4EBFA2802D4; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 27B892802D7; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 100B12802D5 for ; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C5AF580112 for ; Fri, 4 Aug 2023 08:26:31 +0000 (UTC) X-FDA: 81085740582.19.039E5EC Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by imf02.hostedemail.com (Postfix) with ESMTP id 98CD68000F for ; Fri, 4 Aug 2023 08:26:29 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KXKqQOOc; spf=none (imf02.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691137589; 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:in-reply-to:references:references:dkim-signature; bh=zA/dH5Y7WcTQ2A6+oZfsEez4kkDuyoFFdNy1mTJzEFY=; b=DCJhMO8MVggoXHc4yITuvngwc2QRPoAkGxFIr8gTWiZWIh02Be7XR1VMKNLziwbzn5MCXS b0GFwqGIY4uTugK3P5ofuPJuRWPF6wYhWE5Zg6fs8va2HqsfTH/18pjhjjJSCjXxFVYY+T R8Yi6y+7zPu9IE4ZuqDPSpOwgVBJRjk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691137589; a=rsa-sha256; cv=none; b=lJNXd/aT3t61LOja8jnl/oN26R9YlcYY/MwiF00CGgnxRg9x3gC62mLZzSby5kcoqBfbiP 1V7lngWuW0TTRFQXBqkmhCBiUUA8o8OW4nDsbVIH04FtIzFD9xL/Ojl9hkW3MWkIojy2Vc r7crM6pbxPX4cUvTHUeNMkl7AWaaNHM= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KXKqQOOc; spf=none (imf02.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691137589; x=1722673589; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uw2Ld+AeDxNhMI9Z37vKGF4a6VjahNfcrZb6asDNsiE=; b=KXKqQOOcUZARtH62v/rHSCCNP2fcGyR7mJ4V/6huTF+vZDUVimKLf58p eZl0G6BZr2oHIWJXAxXp/BCq7CRZWE0ohoEto2MShm9RhTsUi8mfU7VWC Xmm+WVvVRjjfb9dHBxLPHAecvllNSwh0uEmj37DEmuM952fDxCvv2fVFK 0KfL1s20VPbyAMPyJj/UhdmEi3SU3gPNiL7pb5fBLt0SBoKjR38M8c3Q6 RUd+yF79kc9mLYiF3KkeE8VDiUzLtg/98rNHj45kfFrt0N66rgPw3sfYq g5FHajw7tEhuroXN6yZyKfrjTm+b+gN03qfO3J62gqk7y6UcReXlJiwxL A==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="433952154" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="433952154" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 01:26:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="706907756" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="706907756" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 04 Aug 2023 01:26:21 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 78DB16A6; Fri, 4 Aug 2023 11:26:32 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org Cc: Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: [PATCH v1 1/4] lib/vsprintf: Declare no_hash_pointers in a local header Date: Fri, 4 Aug 2023 11:26:16 +0300 Message-Id: <20230804082619.61833-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> References: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 98CD68000F X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: w5ix6acp8qe5i4d1eoarh4txsnm8o7zt X-HE-Tag: 1691137589-387416 X-HE-Meta: U2FsdGVkX188xetuB4Eiuk6GpEdzPw+Mq/LqYXLW7x3IEkCQnRdbw5Yev2c+JqmF/PFscZ3Xlx0at9F5GRMphbuiMkkyxA+TY0LIoozrM23MNcWWocMXwAGWlTixPXHa61JV0AXG4m0+cmQm0BZkDvDL/l9eNftrfZSPmvWrTJf9pgQxaXrPU8RQDjGGEImujwg/bM8EHmFSJgxHDEOLBHSpPeXvJQOA6wpgzSyT+d/UaeM/nsclFmqeusd4vQSWVw31Ph2kEb/PPBH9GGCPPRJjga6x94ukWPw35X7fhMiawmn635EUOklEh1vxfdfZE1kvxf/IBkgHvz8uhzS3uNqutIW2Z3J7qXTfxfHSsQOBpx+2KpNWidalMnKgl30r10amOaa9+iU/pQEXsUMS4f9I87hI15pyH8r+X/TbdO9Ky0Q1p4ivJVrv5vXY9gkOB4kb23tQD6MmY+MAUcEok2iUASht72MYz8WFpMfh2pZ3Mp++h7mCvYHYpve/GPAC3FnCW+2T+I9nx9iyjR1sUk/lb92aQocEWxdsC2Gm8i0J6QHtCK5feVG5ZP7wf4pMsusQQiYuP4MgeEmyd2WhSPKHTb9FSMVD2vbToN3bZbmdUbHzKmYrqYt1wQR5Q6B2dA0dwDfS1zC9DuX/6kJDj6rOQgsBRkgdy9b2SNE/z0ijL7CW8FF01gUtA0gEasREJdwyuSR/wKRsCw7XSyXhAfOiyYXCHWY9ubaL+0U4a7mjdn/FShNtrYYO3UZXo0xQ+7xKxDv7QxaSdEw1DXGsHH86ZnLUCaznHMUnyZ3cyGSUOP3dG1nbHmA2ACHBSRJnaENy0RuB1ask4g7ivIex37AtWt6eSFyCB6WYTqlTtnEKIJUYCUsD7ou1s+VchPRlZooePi8ayltQeLiIhNQX/5xSRjKNybXeSiPASDA1XTKvKqYSBic2Cg6b82hItk3UP72BZ7ecGiV382N/7Um O+Ogb5KS rnIWJP5myQGtETUS0fa/sG3ynfwkT+SySwMHP74IpisXiEgb68LD5qpk5qtXtEkWKZCFS86JPLOT2bX0nHS2Vevzt1fETWjwrhqaq1jb+Y1aQSiMQ51NuJBxF3bp64wm4IpcGbkG0HmkULBdJ821F6grkHLmUmzSLTkfD4Lfe9h9kPPaaiPIW+2V0NKe0pg76X2BnI1SDXO42NXjBzOChYniVg3XKZUOCN+CU 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: Sparse is not happy to see non-static variable without declaration: lib/vsprintf.c:61:6: warning: symbol 'no_hash_pointers' was not declared. Should it be static? Declare respective variable in the local header. Signed-off-by: Andy Shevchenko --- lib/test_printf.c | 4 ++-- lib/vsprintf.c | 1 + lib/vsprintf.h | 7 +++++++ mm/kfence/report.c | 3 +-- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 lib/vsprintf.h diff --git a/lib/test_printf.c b/lib/test_printf.c index 7677ebccf3c3..9e04b5f7244a 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -24,6 +24,8 @@ #include +#include "vsprintf.h" + #include "../tools/testing/selftests/kselftest_module.h" #define BUF_SIZE 256 @@ -41,8 +43,6 @@ KSTM_MODULE_GLOBALS(); static char *test_buffer __initdata; static char *alloced_buffer __initdata; -extern bool no_hash_pointers; - static int __printf(4, 0) __init do_test(int bufsize, const char *expect, int elen, const char *fmt, va_list ap) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 40f560959b16..6774cf84e623 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -54,6 +54,7 @@ #include #include "kstrtox.h" +#include "vsprintf.h" /* Disable pointer hashing if requested */ bool no_hash_pointers __ro_after_init; diff --git a/lib/vsprintf.h b/lib/vsprintf.h new file mode 100644 index 000000000000..ddffde905824 --- /dev/null +++ b/lib/vsprintf.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LIB_VSPRINTF_H +#define _LIB_VSPRINTF_H + +extern bool no_hash_pointers; + +#endif diff --git a/mm/kfence/report.c b/mm/kfence/report.c index 197430a5be4a..fb28c6abd58e 100644 --- a/mm/kfence/report.c +++ b/mm/kfence/report.c @@ -19,6 +19,7 @@ #include +#include "../../lib/vsprintf.h" #include "kfence.h" /* May be overridden by . */ @@ -26,8 +27,6 @@ #define ARCH_FUNC_PREFIX "" #endif -extern bool no_hash_pointers; - /* Helper function to either print to a seq_file or to console. */ __printf(2, 3) static void seq_con_printf(struct seq_file *seq, const char *fmt, ...) From patchwork Fri Aug 4 08:26:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13341454 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 6608DC001DB for ; Fri, 4 Aug 2023 08:26:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E147A2802D7; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DCE1A2802D4; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C3F052802D7; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id AB2942802D4 for ; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 7A69C1A130D for ; Fri, 4 Aug 2023 08:26:32 +0000 (UTC) X-FDA: 81085740624.14.FC41182 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf05.hostedemail.com (Postfix) with ESMTP id 5D4D6100014 for ; Fri, 4 Aug 2023 08:26:30 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=VHS4pN8E; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf05.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=andriy.shevchenko@linux.intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691137590; 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:in-reply-to:references:references:dkim-signature; bh=J1mmLG9dNVbbXWxrtX+A+p/h0rMc/GZ2hwewP+0fv7Y=; b=KaiKed/96GuW+2j2eeBZuL2vvqghcw1REdZ4bwEH2Dt4gi3InGW98Nv6pCuMdNApVzrALp W5SEBe685vsZ3KCGGvd+lzuTTo1rJJrjKd6py6TVGRG7x7Du0DoiT+OUx5pzbanpwEUvB8 VvA02Oh4M6b1iteKfMh66APMfP8vUNE= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=VHS4pN8E; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf05.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=andriy.shevchenko@linux.intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691137590; a=rsa-sha256; cv=none; b=VQcgIYiPz29UuImF11LNhV8FtBhsfeVtSp/q7v0aOjzkBYxTTs6GMdOj7F/eyIUE6+NWx8 2PIdiAtVCke6ewlkSfF6Hk8heNC9KvVIUMcWhJnOZswLzTCXVkg0a/+XJOoI/I7VY6uXHf z/WHYkpMox8O3MgEbt+37DqW+Al5ysA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691137590; x=1722673590; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9je9OUfnXEviEXKQNXB4gUKmQR3Ey4mpBgwuRjMpZ5o=; b=VHS4pN8EMMgitT/O2rSuIaFkW36vVH/6t25ni08OcruIfreQJhKl86BJ Un19i6xsELsJGr22tVqTzKBpkf289wfZRkjaj3Az3R8dgDm6mBtw08xOk nh3rFKD4px2w/o0IOdsEAMX4LS1vN5+le/I6bNl/edrJ6yEn/dPKdyRgj fdR7MRPzF3tZb6V22F8IqqdELw4nSA13XO8jj2cnRSE34fU+jgmvPQKiq gegBziDLrapP7gbgfljvXkEoTFNfXvp/Rc8Y++T6Sp/6D1oG5ZKAyLgLj V6+hrLDu3GdxQA52KOCkBlh/X4RuCk6GDfP/fiCgYt8UCky3S/IlC/b9g g==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="370090223" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="370090223" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 01:26:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="733132238" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="733132238" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 04 Aug 2023 01:26:21 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 868F8F4D; Fri, 4 Aug 2023 11:26:32 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org Cc: Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: [PATCH v1 2/4] lib/vsprintf: Sort headers alphabetically Date: Fri, 4 Aug 2023 11:26:17 +0300 Message-Id: <20230804082619.61833-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> References: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 5D4D6100014 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: h1aszzttix7e8a998wg48kbhudqphutg X-HE-Tag: 1691137590-768212 X-HE-Meta: U2FsdGVkX193jtMRvfsh9oQkRTmFQtNRGZ0OVNUJPo3vjrC/qem+cu2Ob9SCieNSqhJsZxPCBW/0lKllMcnbxLX1ubOalo/eeQQhDB69Od45+1Fmczwf6UmWvW1WaiH5USPVv4kh9bfVROWKA/6tGVtOke6VOK1bhl/HqER0C7bhlP0wTUgee0AM0LlszlO4HvDAc6+orR5oFSZeQdIZGF7Gx7E//NtUytx+LEaIpNmqLlQ0aMMCSSVTbQvS/wqmX0mulQVvMzz4H0CjpOR3xen9WeVA7DB6tI+VfqRwexvUrPcsC5g3y68F4KPl2hZ5pCFd2QjiCzOtVgaLzGRMSLeJvE82UDAzMB0gdwAsrzgCGdFllSd4fGB+EuWTb+OC/09pRLERSh0m8dFcDs/YlB459FEChZKCPK40pJKyaqKIrjLbXVw+2vpQMzrPAiYWbpymypsnxrR72oZC9lofHAupIPoJzEOEg/3LqXp7cC8bGHxY+60NLnlaef8+713ABbeuVn2oY9MYGhmVkkZY+aJ8jpnvfb0EouHspuSFxQUenkL52W7KN52M308Z0PVi6zRI3iX5rVpPL2Ws4jgJjrm67jDJ7rE7XbNNrrg6lm1Xj1+/0JF9Z7SUXrJTH58s9VhNBB2uMyd9rxTYEZIJHcCu2P36f6Ls0gAjcmN/Byqm/Ygy/w8EtYImzj0qnSyOckjc4tTPqb8YVsMAgJtNxnX6FSQIiTMiF+ZE6sCnFLv+k1Oyo4yiuBSBph89Drl2RvWsElbZJ5U/OpzWbU0asrY9s4tVR7fFwo2QJncVy/EdKXqwSWAxoo9GvfhxKnJHbbkuwDKsU6Ggaq66BNic/OodwkLIFw+1GM+MxJVzMGt+MWs8/spiXh/9IgB5djAY/7aEjdP5R1pzS/4bDUOR+ebe44exO1AT3X8j+AdBlScGbUWc8M6TV9jdwomrqXXjdZfO9T9FXSes1SW3zTH Ue/ZSHbv LN0j6vA8bbgAsqfBWU0vc5SkQUnf2Aiuvm5/YL7Xn9XyEKtPovknQnX6ONDzy57exNCkjVlY4EJX5gCdr1syTv1+tJpCIIa8pCAt5jfo3tGdzlUN+XJVTExk4Ty1r+iKOUDAC7DVsnWMxeic= 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: Sorting headers alphabetically helps locating duplicates, and make it easier to figure out where to insert new headers. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 6774cf84e623..63afffab4249 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -17,42 +17,44 @@ * - scnprintf and vscnprintf */ -#include #include #include #include -#include -#include /* for KSYM_SYMBOL_LEN */ -#include -#include +#include +#include #include -#include +#include +#include +#include #include +#include #include -#include -#include -#include -#include +#include /* for KSYM_SYMBOL_LEN */ +#include +#include +#include #include +#include +#include +#include +#include #include +#include +#include #include -#include -#include -#include -#include -#include -#include + #ifdef CONFIG_BLOCK #include #endif +#include + #include "../mm/internal.h" /* For the trace_print_flags arrays */ -#include /* for PAGE_SIZE */ #include /* cpu_to_le16 */ +#include /* for PAGE_SIZE */ #include -#include #include "kstrtox.h" #include "vsprintf.h" From patchwork Fri Aug 4 08:26:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13341451 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 6B105C04A94 for ; Fri, 4 Aug 2023 08:26:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E3B988D0002; Fri, 4 Aug 2023 04:26:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DEAA62802D4; Fri, 4 Aug 2023 04:26:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C8B018D0013; Fri, 4 Aug 2023 04:26:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id BCC9E8D0002 for ; Fri, 4 Aug 2023 04:26:30 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 958BB1408AA for ; Fri, 4 Aug 2023 08:26:30 +0000 (UTC) X-FDA: 81085740540.16.769D93D Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by imf02.hostedemail.com (Postfix) with ESMTP id 6987C80015 for ; Fri, 4 Aug 2023 08:26:27 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=LK86CKOJ; spf=none (imf02.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691137587; 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:in-reply-to:references:references:dkim-signature; bh=LiQZHN/gFI7kOzFyx0EOhyFHwRC/sfDcBQ2mnTPX6fM=; b=gzSk6xgvO7bQxMaDjdD5jJnkTMdjpAU3cIx1vuH/cICLEE9NLhR3Dgvt9gseXYckvQM4Hv orEDWp7QKSIhiZBYqrIn1JoUKqKE5JC7htbysAFcdAgFIEsPfImIWskVOYSzxhFzbaSAZb B88eq44yFGt7vqc/TdqC+xyaVLe+eOk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691137587; a=rsa-sha256; cv=none; b=7cWb9zD3q41xeeeNW8R5f7bKHaX4RbT84ZcXZI2nYsovhuN4Cj+vfDSJWQA7mdxE0bIylF FsySiuQOmCUwmR782D2Oyj3o9aYXLC9FG/KhuodQWixbjR/VvazklLXhKiwM4Vv0NrYZ/u BRbqRTe98D9IGwfK1/JPgKYBXumhCsw= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=LK86CKOJ; spf=none (imf02.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691137587; x=1722673587; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GrsynOg2xgorKiT0iE4UnCXSWHQ9xboHF2x1Jg9/Yuk=; b=LK86CKOJjzgIs5ylME9YVbqixUVTCj0xjeCMI2JA8KO7IbMutQW9YNiC QeHxkHvpxAGwxweQCVtdIdGMmZQoEOFrkImhi5DY12Wx0NXK4l/U4mfu7 XJhirmGYD1mmRfEbRHp3jOMqpu3IOHpCPc/XYeIiPDAKmGnFaKqRxlCZf JWe+OjPeX2gE8x2KNT0c616SCEzemPAIV3+U0W9zUAJsUeZm1di9S8fyf h+21KmupxrB9B1TAs76ijYlHTKySjNqSxPIDtQz4bK0ARA9cyPtKn/95I yr1Tf8J7MEBIsmIFIdxbeCF8peZQfOerS7ZJBS4FBNxfaGTCc4ua82xmS A==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="433952163" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="433952163" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 01:26:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="706907757" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="706907757" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 04 Aug 2023 01:26:21 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 8F3DF1341; Fri, 4 Aug 2023 11:26:32 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org Cc: Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: [PATCH v1 3/4] lib/vsprintf: Remove implied inclusions Date: Fri, 4 Aug 2023 11:26:18 +0300 Message-Id: <20230804082619.61833-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> References: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 6987C80015 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: g87derbn9h9hwd4ys6153nieq51pm9zg X-HE-Tag: 1691137587-900168 X-HE-Meta: U2FsdGVkX1+w+w4f73hGdwa82zQTtoTuv4+HTUSolM/rIYLOMLHjDHv9wP/j87/N7esGTeDNgYI5ipEkoZ/hkKTlSJK7eYUm70yB+zI2NkVhC+3CaQnz4thrbq4KGeKaf9iJNfyTAYy/vsxnPPUn3s7b6RZuyJG3Xai/p1xu8fLXGMw2AZwoKDA6tN4nnEwEsVN005u82iHCn/2lkpArYtQwBg5GVGLcxn5H51uN6s6XORHHe9qk1vhZhR3Bcv3eX3My+R/blukq6c/9EPmKPKub9XjPOcwqgsxkj+PZ2xvuT9df5jtCOb4r6+isb7Xnj5xO05LadS8+LI6n0NR2/+WbOLri2GNrOofqoV1VCxmRHiYT5QI9nj/smxVa3/F22upKeYuDvnpTOZKdi7Sr5ak/G6TW0X8SULyfZ6mRkJgrbT6C5RgDrZ7kOiU7bXr6W4wGjxPpgbqk9vsN4mW2X0h1deH+rZN+E0P99qtSe3TSw0Ux1KowPAdyRVep5wMO0OPcf3FuDz6DCjXELmQlj/Zuai+ojB084FTlzUKnxC1XByeHlQo1lA6eEVfFfUxcMycIsLMMF5w1qh6ZTFSJ1XCEIA1nuCQigiMWsJSIkaD8sVjOOxzE5uWbghAIiTYJNwyctoYS7mVHD8rmCImX9BvkjlYvkxBOOzn6YCIucOy1uPT2qzCoJXUVkMoRvm3tulEF0422a1KEm7ZLCvgICoNyubO3TmkEUENTcqruYEwAWzvew47drHzdRaYvWeUJN5ddKcYrpOopchrJ95VVHxNDPYQINvLmD99binW5ssR+lGmYh9xzPFHz7AW9EwK6A52MP6ReMU8RdX+7zDx0beOqf/eN7+HSwEDQhkXxZComstvbMebV4oaNItliqDOXNJ/FbYQfG6PKyxmybkoD+SiEMx7PC7NRGm/g/PfeMiHD99UqrfpvbOvtb3rK/KH6gUdiE8kVWy5UL6PJLdy SpwLxd7m 1Qlf4ZOmr8D29nVmZd7vuz1+u7NGLlbc3sV4lm38GZLoSVkEKVI1sv/76oSmQhB7vuBbPwi0uDJSL3DWng8nYkKjOMqoc0UhBtktTrwHI4m6fO4fLiwxswGO5Gt+SHqSb7yoPKPh8MXzyZio= 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: Remove inclusions that are implied and guaranteed to be provided by others: compiler.h by types.h string.hi by string_helpers.h Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 63afffab4249..eb0934d02722 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -36,7 +35,6 @@ #include #include #include -#include #include #include #include From patchwork Fri Aug 4 08:26:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13341450 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 813A8C001DB for ; Fri, 4 Aug 2023 08:26:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D4FC92802D3; Fri, 4 Aug 2023 04:26:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D001F8D0002; Fri, 4 Aug 2023 04:26:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BC7A72802D3; Fri, 4 Aug 2023 04:26:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id ACC1A8D0002 for ; Fri, 4 Aug 2023 04:26:29 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 63FF012137B for ; Fri, 4 Aug 2023 08:26:29 +0000 (UTC) X-FDA: 81085740498.13.ED8897A Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf11.hostedemail.com (Postfix) with ESMTP id 958F840010 for ; Fri, 4 Aug 2023 08:26:26 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OWjUces5; spf=none (imf11.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691137587; 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:in-reply-to:references:references:dkim-signature; bh=xN1TF/cqSYy8egconCIVN+MATNViZmMKhKgDRHlEMBE=; b=uX6K+iFXA/Udp5Uaqh8i7msLL19rchL6FYMQkFYzlLu6LJwr7kMxJUhBlC31YfYsdigQia DApehvijW4Iv5pGPuBJgbcnDjDsE89x0MuBUgO3XdBDthPpVZ7MvTNKadwbQJNRtFkYr1x h4oFJbVIm7Ufw7ldapQ+fdClx+4RrBA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691137587; a=rsa-sha256; cv=none; b=peJG7in7L16C04LV3KoLLcj1zK4D0OPKJDnQyUlDzbGB14hCGoirsBvjj/Tii1yc/PVjQ+ UzHdnH9CxuvPXWlSXaeTU5MY9uSKItes5Cfc6wAxYN4/DVvpPXLYEX/b8rXabkYbBumBKG xHqq7pc4Pg5skYO/lzazUoRdqNVXI+8= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OWjUces5; spf=none (imf11.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691137586; x=1722673586; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oOKhR2UGvbPRHxNgYwLaRfSIwQ0Gyd6LYZcMKMFhKWQ=; b=OWjUces5p2+trDsCFfKDjSPPA7epI30+daOS7LGSXYxbPeBqFlXkf2YB dlGk3M22d184D8kTKQtXSv6zfUavWVfsbrD212eFmXY7GS1c5dBxaTqvx 4WbrcaODCPqNzYnyAbkmco7SC25F9tdfdmmAVOTznkqr7beICx1rA/oIm 4IOdzNikTZdzm9DDS5HP8gJ3rz0X4zYETJofI1jFOHac2CJnKy9zLPubR WLj7Fatb96SKyDdwzDqf1RSNGbxdUgaHEvuQ6d4xtKPZzwzfc4JV/zwLV 28MPNHadPAE/Bvg5bn7Nati+N7EkM0cKEoF3CKxFPmPfDQvaOf5SxDo6u w==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="370090214" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="370090214" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 01:26:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="733132237" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="733132237" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 04 Aug 2023 01:26:21 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 99899F12; Fri, 4 Aug 2023 11:26:32 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org Cc: Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: [PATCH v1 4/4] lib/vsprintf: Split out sprintf() and friends Date: Fri, 4 Aug 2023 11:26:19 +0300 Message-Id: <20230804082619.61833-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> References: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 958F840010 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: ikcr3dbgok9qgqfyhxxpytcw71im3k1a X-HE-Tag: 1691137586-731896 X-HE-Meta: U2FsdGVkX19yk5C4uXuSisalGkPoSIK1dJ1rs72MJ8puaByDawt+D+wFTrUp9pb2yyzCn/cjV6tmvX8FcUZMXaIIAMRghZ596ROJZd2eaSyRDAHVY+5U7nt7DFJPfHzPjG+QkjNvl0t43f0PKxJBpPZFckAmKQ1SnB2dg40E5eubkZi3D/q3KB2T6vO8uwLl7gULSvWwC/0XinEjVlbDq3BWtxCeVJ59Sj/9ibxLqJE79ELWRfF+p6mc+IX//deB/9GxqPKdFg5R9NDQexi0AAfcijtyGa9DEZQoiTRcT0Ao7Q0PNHIPNr9S7Owsd1TvFeZJSc+F0iGHOTu1mFLeOmi+oad7D9EdJY2s4RfQ1YJ439RW9ho3xudeAo/vKOp0Y/+x9Fixxnk2ksTsDg46bApcgJ7JH3KU4jvyGay6cHo+S4yRm+RcNw/fhrVaDXi3Qh8cdmlUljElrbJayi0k8yNXj1bsTwGq/NGgvgZ4p3+DZb75dR05TiqzzOnIOlKIy5zeafUqG3DZSuQK1/0LgYkniXFqgEDktGSaV8IvlolGyVVe59/zqy5iE0OdpZrbMJZaPyWOL6VaR5y6tP8HcZR3plmi0vTXgmcGs0c0lCd6SIAm35JuAbcOT4+k9XTHCmK/rdv2s6USy89UAUkZnGgrXh+T54g9PfoB7ozdxwPJsKBUaxjp08Wj0pouxlqh0ySuvpJvBbG5X8+buW6Mu87b7pa74KxOVeB1UENNHMaouliPDBzW79C2NGEX/b4ABQ1wi8zWtfIjJe7WfWdANQON2zPxxRaNndCHz7qnd9aoGWA3O++JnXEE4YFPtY8x6IaBtxpM5A+YS97cT/lTqPGv+FlK7z2UTg7XzG2S7utxOBPkVLBmB5M/tE3rM3OH7jcqhy42mxw0lr1PSk86sLzkrt1MCcw/JSaIIBZiR5HDGyb7Vbz98TgPQjhhgF9FtcAqvNrQQ5FMuahnkhZ WHI4HTel iTgsJkEspaRho5ad6p9IwrZn1WD+mSHxQosMTnA1Z0rZ7RzfhWP8Jyqj08ug2VfviCT4jN5UuW/3iAw5sGGuNUey9FMU5m8wU3MxzdO+JhMYT3ZPdr0yMNViDD65hSRgqrZoZiQVtmdt+lE4= 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: kernel.h is being used as a dump for all kinds of stuff for a long time. sprintf() and friends are used in many drivers without need of the full kernel.h dependency train with it. Here is the attempt on cleaning it up by splitting out sprintf() and friends. Signed-off-by: Andy Shevchenko --- include/linux/kernel.h | 30 +----------------------------- include/linux/sprintf.h | 24 ++++++++++++++++++++++++ lib/vsprintf.c | 1 + 3 files changed, 26 insertions(+), 29 deletions(-) create mode 100644 include/linux/sprintf.h diff --git a/include/linux/kernel.h b/include/linux/kernel.h index b9e76f717a7e..cee8fe87e9f4 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -203,35 +204,6 @@ static inline void might_fault(void) { } void do_exit(long error_code) __noreturn; -extern int num_to_str(char *buf, int size, - unsigned long long num, unsigned int width); - -/* lib/printf utilities */ - -extern __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); -extern __printf(2, 0) int vsprintf(char *buf, const char *, va_list); -extern __printf(3, 4) -int snprintf(char *buf, size_t size, const char *fmt, ...); -extern __printf(3, 0) -int vsnprintf(char *buf, size_t size, const char *fmt, va_list args); -extern __printf(3, 4) -int scnprintf(char *buf, size_t size, const char *fmt, ...); -extern __printf(3, 0) -int vscnprintf(char *buf, size_t size, const char *fmt, va_list args); -extern __printf(2, 3) __malloc -char *kasprintf(gfp_t gfp, const char *fmt, ...); -extern __printf(2, 0) __malloc -char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); -extern __printf(2, 0) -const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list args); - -extern __scanf(2, 3) -int sscanf(const char *, const char *, ...); -extern __scanf(2, 0) -int vsscanf(const char *, const char *, va_list); - -extern int no_hash_pointers_enable(char *str); - extern int get_option(char **str, int *pint); extern char *get_options(const char *str, int nints, int *ints); extern unsigned long long memparse(const char *ptr, char **retptr); diff --git a/include/linux/sprintf.h b/include/linux/sprintf.h new file mode 100644 index 000000000000..00d1fdc70a3e --- /dev/null +++ b/include/linux/sprintf.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_KERNEL_SPRINTF_H_ +#define _LINUX_KERNEL_SPRINTF_H_ + +#include + +int num_to_str(char *buf, int size, unsigned long long num, unsigned int width); + +__printf(2, 3) int sprintf(char *buf, const char * fmt, ...); +__printf(2, 0) int vsprintf(char *buf, const char *, va_list); +__printf(3, 4) int snprintf(char *buf, size_t size, const char *fmt, ...); +__printf(3, 0) int vsnprintf(char *buf, size_t size, const char *fmt, va_list args); +__printf(3, 4) int scnprintf(char *buf, size_t size, const char *fmt, ...); +__printf(3, 0) int vscnprintf(char *buf, size_t size, const char *fmt, va_list args); +__printf(2, 3) __malloc char *kasprintf(gfp_t gfp, const char *fmt, ...); +__printf(2, 0) __malloc char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); +__printf(2, 0) const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list args); + +__scanf(2, 3) int sscanf(const char *, const char *, ...); +__scanf(2, 0) int vsscanf(const char *, const char *, va_list); + +int no_hash_pointers_enable(char *str); + +#endif /* _LINUX_KERNEL_SPRINTF_H */ diff --git a/lib/vsprintf.c b/lib/vsprintf.c index eb0934d02722..e553bc9e18f3 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include