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: h1aszzttix7e8a998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yEKtPovknQnX6ONDzy57exNCkjVlY4EJX5gCdr1syTv1+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"