From patchwork Sat Aug 5 17:50:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13195 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp577040vqr; Sat, 5 Aug 2023 11:06:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyAhgU2dk7pxO2i/Qz7zmW2CYxmLbH/PUCnowVukLk1nejFRBTzq3Q4gVQxKfnm8NEgyoS X-Received: by 2002:a17:906:cc12:b0:99b:cd1a:a453 with SMTP id ml18-20020a170906cc1200b0099bcd1aa453mr4583591ejb.3.1691258811879; Sat, 05 Aug 2023 11:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691258811; cv=none; d=google.com; s=arc-20160816; b=GgbwgV/4DR1VH7jT6IBSB/WSWEXzzyPybNgLk59Y1N9ClPXtebwD4zC2O4AXqua49N mLXtQLLELqMQgKi5Luhx9fCbuR6eAUUZf98ZMo+gO2fi437EPjRtxhXJiwYRoqvROhwp 2GOY70gI2KPcFF7SGKy006iK7T35pTWSPgD5QPMI9NqOlmQIsa0jVpE4POTtURtpiRTn o1RqZORyoY63uAW2XY/NmCAP0MKikP52uquO2m1I6oSvi5Nn29dVUSqkl6ZKv6i0niK8 zOoKKLzu6kloJgIMvt+hf99KgHYiIFNlHdzCyM9PPIpTTrXz/SIyT3bUweFThnJ8rQkG YxwQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=M7sJ9gGeF49op4HZCyGN9WO14IstQT6js5K5KrYBSYM=; fh=RoWWTRK1ZrXNP/VtEBcCDaK18unRqwp2i1mhxrenPO0=; b=sPzGK77ksN6a2HLg6lgXjJ5VWazOJKBXTee4oYOLKW0ayorN+9vJdGLehLVXIKkQG2 ujaOsQjN1/G8/lEumAT9UryrZ8tq9shzJ50b5nex29FgP8qqlvktGHvULuy+ZUFwGiO7 iIjj4kihDUvE8PA7A+qsoM8xCpwfX3Sg9kJPvGpBcYWH27e/aI1jF8zrDG3tTwTyvy4k 6ojFKCBqHe1oXF/y0zlOSpHdHBCosKmHwNFHiXAGI0UQT94jPzDsA2CFlo02+YkA9xld 4HvPHZYDRbuo+tw+LuloyyefiZ9lWpbd3UZVSFbI7vnuuSrvV7qNl6w73I1wSbqxaeqi LaHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mPOcPHfp; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p26-20020a1709061b5a00b00992dcae7002si3522947ejg.365.2023.08.05.11.06.28; Sat, 05 Aug 2023 11:06:51 -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=mPOcPHfp; 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 S230029AbjHERtn (ORCPT + 99 others); Sat, 5 Aug 2023 13:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjHERtf (ORCPT ); Sat, 5 Aug 2023 13:49:35 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D869DD for ; Sat, 5 Aug 2023 10:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691257774; x=1722793774; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rEpi9TPxaBsioRbO+12MR2A475UUbDQs5Dep4NW21jM=; b=mPOcPHfpLas4OMdog/mVAB8wYjmO4pSDvWPjFhsT7n3qa9qnuCXRzX/f 6Vu6ZEwOT/9/8buG4Br5fVMj8Q2m0Pf5F/6BfMrm/OQkhYu1dNDHCBxWT EZ+VuqH7UXaUiiXZGJcdY94Vu8PaoSZ09yVelilGnsbv1H/zKLX2D8kOH fQFp+k/aI6BGBtarDC781RVi3PCAAXEdKgfeI8Om9xDEzT1RMbHzgFrYS qrfpjBCViDOB0Lbh8yw+QV87PeAqWnjJS8teiynPMrOuQ7Eai9O6Q2Fww onRJIMf33b/EUTi/6AFjywYr9kxghQT0G7MrMZldm6SERTajcDrSFg4o3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="401292519" X-IronPort-AV: E=Sophos;i="6.01,258,1684825200"; d="scan'208";a="401292519" 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:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="820494256" X-IronPort-AV: E=Sophos;i="6.01,258,1684825200"; d="scan'208";a="820494256" 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 87E94241; 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 0/3] lib/vsprintf: Rework header inclusions Date: Sat, 5 Aug 2023 20:50:24 +0300 Message-Id: <20230805175027.50029-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773413399789235379 X-GMAIL-MSGID: 1773413399789235379 Some patches that reduce the mess with the header inclusions related to vsprintf.c module. Each patch has its own description, and has no dependencies to each other, except the collisions over modifications of the same places. Hence the series. Changelog v2: - covered test_printf.c in patches 1 & 2 - do not remove likely implict inclusions (Rasmus) - declare no_hash_pointers in sprintf.h (Marco, Steven, Rasmus) Andy Shevchenko (3): lib/vsprintf: Sort headers alphabetically lib/vsprintf: Split out sprintf() and friends lib/vsprintf: Declare no_hash_pointers in sprintf.h include/linux/kernel.h | 30 +----------------------------- include/linux/sprintf.h | 27 +++++++++++++++++++++++++++ lib/test_printf.c | 20 ++++++++------------ lib/vsprintf.c | 39 +++++++++++++++++++++------------------ mm/kfence/report.c | 3 +-- 5 files changed, 58 insertions(+), 61 deletions(-) create mode 100644 include/linux/sprintf.h