From patchwork Sat Aug 5 17:50:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13342644 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 D88E2C001DB for ; Sat, 5 Aug 2023 17:49:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C0A18D0005; Sat, 5 Aug 2023 13:49:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 86FF38D0002; Sat, 5 Aug 2023 13:49:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 64E9F8D0005; Sat, 5 Aug 2023 13:49:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 4F0238D0002 for ; Sat, 5 Aug 2023 13:49:38 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 19E6616034E for ; Sat, 5 Aug 2023 17:49:38 +0000 (UTC) X-FDA: 81090788436.10.3A18757 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by imf01.hostedemail.com (Postfix) with ESMTP id ED02F4000B for ; Sat, 5 Aug 2023 17:49:35 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=SFD1zt27; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf01.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.88) 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=1691257776; 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=Nl4rJPbf9lJRqy1FTNc3L1ii3wsmDMe6b6YFfzVSNO8=; b=Y6nGs5/j4jbDFRMxIx7tTS0hlwmAgy9uVyaTbM6Ci46Hk2+25RJ4djdaKsbDK43hP9/pf9 /u91GUtFMjh3H2MnYj/PJiPtxa9Hx/m1VAoTBmbVghov4Tul7R0o5S+BY0jSnUbondbQoV PWnKAcuv6r0vyWl/cY5EYm+FjYrm3eU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=SFD1zt27; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf01.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=andriy.shevchenko@linux.intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691257776; a=rsa-sha256; cv=none; b=b0wSkMtqv1p9ACuHtIrRsFIlsq0LNm55DoXLrvhvSK92FbK2SuWI9QCAPA7qwCPfVSB9En OgJ9X6DZohsz6DiccxoXypmgMyhxFXxAf7iNQQT2j2aUToT/oXT/D7hexvFe02nJWAa83P VIWzHBH4brCEfkeCP0WgmOqAUXAaF00= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691257776; x=1722793776; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TaWK1Xu3PSHBh+Y6Cr3TB9YkGt2K3wWn+qk8w07ZH0o=; b=SFD1zt275ImsC3npDSWExNWMrFiKljnCNbDx8pGQgUUI6WGmIyaM6sOe ODgS7BculzdgcdQX3fVLfuJUEJ/yRROoKG+vfN6JBvaYY6de77+NxZxh9 sudzEjnK6n01wn5zyKj4ASIhxneZ6nVaWud1xY/2XlCZx37QSF21ggfmn RTXlqF85/vA45g8JXjULst0yA3PAaRbwysHIjecJiFtIkcAATjQCilo7S tkIibgESnB6ZDxt3IQiLP+23rQxn/8TphC4MqVJt0sm4pd8xYU03JyajA gi+2QCFvK+C16WliiS3htlVAqWlSsMvYaRpSz1FcPSh7CunwRvPDBHGzO g==; X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="401292534" X-IronPort-AV: E=Sophos;i="6.01,258,1684825200"; d="scan'208";a="401292534" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2023 10:49:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="820494257" X-IronPort-AV: E=Sophos;i="6.01,258,1684825200"; d="scan'208";a="820494257" Received: from black.fi.intel.com ([10.237.72.28]) by FMSMGA003.fm.intel.com with ESMTP; 05 Aug 2023 10:49:29 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 905ABF7; Sat, 5 Aug 2023 20:50:29 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Petr Mladek , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org Cc: Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: [PATCH v2 1/3] lib/vsprintf: Sort headers alphabetically Date: Sat, 5 Aug 2023 20:50:25 +0300 Message-Id: <20230805175027.50029-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230805175027.50029-1-andriy.shevchenko@linux.intel.com> References: <20230805175027.50029-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: ED02F4000B X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: ehtjge7xwsaem1bw7aq6hd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uTCH52sUUbAU6kjFP2t4afRtGfhNoB4eA3A1a0UAgUyb2EDazoAReYbXux9ydhkISGmHjes652s= 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/test_printf.c | 17 +++++++---------- lib/vsprintf.c | 38 ++++++++++++++++++++------------------ 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/lib/test_printf.c b/lib/test_printf.c index 7677ebccf3c3..2ab09a0dc841 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -5,24 +5,21 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#include +#include +#include +#include #include #include +#include #include #include +#include #include #include #include -#include - -#include -#include #include -#include - -#include -#include - -#include +#include #include "../tools/testing/selftests/kselftest_module.h" diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 40f560959b16..b17e0744a7bc 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" /* Disable pointer hashing if requested */