Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1288213rwb; Sat, 5 Aug 2023 11:09:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG34luUowfbp3Vtivw5E6QfHbdMs0aMDcSi+6RaBWrzJliVPVVUQPTQZBvKayecpFgH7AMQ X-Received: by 2002:ac2:5f98:0:b0:4fd:d481:ff35 with SMTP id r24-20020ac25f98000000b004fdd481ff35mr3324985lfe.42.1691258969326; Sat, 05 Aug 2023 11:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691258969; cv=none; d=google.com; s=arc-20160816; b=nr361g5QbfFfUoSS1S8zdglUFpaIw6CDILRrjAPrpiZmMPrwyZAZXBHIk7es6x1ztW MyCXXz25HlV5x0lCpd+iP/7jzbpLHoPWBQyKUZoVCHv/kdWzTbm7yhaRbjcCJKAtR8y3 ysiTcwCrFB93+7vyR1oXASlTVcWK/dassLzSRI1z6+xxT8WT9DWPAMQ4gDp9AuzVO9kn x/dV0M5tTv8lHJ7RVmvG4g8QMEiu6pV376D11Asg0FdNvB8TIWRYmSJTxKxwAf3yUAph 9v4FbrxmyJtZtun1nXN3GICbFQS4ePkMlevRXFTXpnI0Qt2Ip3oUJWvhQWjO9idZtBjX Gp3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Nl4rJPbf9lJRqy1FTNc3L1ii3wsmDMe6b6YFfzVSNO8=; fh=RoWWTRK1ZrXNP/VtEBcCDaK18unRqwp2i1mhxrenPO0=; b=IxozfdVfSgvP9a3HFWs7kiqNdgdboVQUFEvedlox1iRBZ0y6L2kLFl4E6m5ToX9viu B2p/Bkqa+KV7mIvqIBRWQDv9cGVmjZx5t3LxQpu1MjXomRzNKYg067emSvPrUWmpsv6P Sa+MUSQXf5oDmiGe/IK3bzDt8Jo3HqVfrDl+RH9HSdnAuiXzPvTF447A13XJWZVsPfcR iVmEubzIRPEWosvHZzsbgGykOsSq6pp2hhfygcJrAj8dmi9lDVD505t8Zvaqq3C8od6S 2rCP+YuXqeusey+nKlGagmIJmiKS8dX9nLjMKthotDiZYZpZ1/f2E8e4jCcHkKWp/YB8 OpTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="g/CpRM8x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo18-20020a0564020b3200b005222fd5808asi3382075edb.276.2023.08.05.11.09.05; Sat, 05 Aug 2023 11:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="g/CpRM8x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbjHERtf (ORCPT + 99 others); Sat, 5 Aug 2023 13:49:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjHERtd (ORCPT ); Sat, 5 Aug 2023 13:49:33 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00F91113 for ; Sat, 5 Aug 2023 10:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691257772; x=1722793772; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TaWK1Xu3PSHBh+Y6Cr3TB9YkGt2K3wWn+qk8w07ZH0o=; b=g/CpRM8xlQOPLXmAGYKhV8OPTNIvdJobFPwILj/+rklUMyglYZgNPqUu snPru4u7ezWyTUsREw52VHkK4uoV7RgfCEoLRD47WIlGDeXRQyePYt0zq EU2rCTEotJDFnVYb/hgd45vM18czwYOWHeDueRWATtCKuVeGCHgbz9vrV c6KzAavNlX1ILE3lJq374ePu58n+5uiH7ae7N3Ch1+Y0eDXBbngj1HCGv c/IIbI9rB/xPvFH/vpLRt/aFR2FcdhwpRjYMtkXXUWHDmxKr/XTeNY4Rb TumKo2I+r9OCAXzGSMjp6xQJmLl6bZunI3pwfXoiQvpdUTC6xfK0839qS Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="401292528" X-IronPort-AV: E=Sophos;i="6.01,258,1684825200"; d="scan'208";a="401292528" 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ -- 2.40.0.1.gaa8946217a0b