From patchwork Mon Aug 14 16:33:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13628 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2886361vqi; Mon, 14 Aug 2023 10:15:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJjC65YjJgX4p1lgINjyaDwvQttbQa4ne58dvE+WkjIlfpZ7ftkjcv/Jq8CNKrrLmynKsc X-Received: by 2002:a17:903:2301:b0:1bc:6861:d746 with SMTP id d1-20020a170903230100b001bc6861d746mr10839362plh.58.1692033352238; Mon, 14 Aug 2023 10:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692033352; cv=none; d=google.com; s=arc-20160816; b=fSXNaTAbHryiNJyJH9LKkQdeoNhU5pbDDceESYIENMnbXCarSIlhcZpYGUfGuJ+hx/ /jHJAF0wPG+d1BvpgogXsP8ZEvMhRCwMTD7NlVqgxeK26GD/PgDN/+mlfWRfMKBwTSq3 wF6HoXu2ueSg/IJU7zfaaastgC4AD97fsJhLGQ0pHaY7V+1bHKx3E3/Zax2Rpc5Wy54W Myk1jLHdpjGmv5MHvdxq+RzsgEZv7fPLSABtw6x0rWcr5LsvDBSi5kGY6tWCZdbt8afc 5xBXx2xonnNFvTUWFjwYWVbgshVPvCc0eVu0v5mHpDBco41OZToGW3qTH6pQIhjJZQu7 Blvg== 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=Hh6xyFX3lrWtHaAHe9l1sscLDUJokypxYBHgPvN98Gs=; fh=RoWWTRK1ZrXNP/VtEBcCDaK18unRqwp2i1mhxrenPO0=; b=ByKL9rqZoHqR0UAStXG50Ynwe822inxe8G9xTQRTO6HQAepd9YlinloKLY3eYoWgSA LYaB5kJNqd+bGtleGYkNxe/iv7J+pIjzGGOfipgnqgqrjxlCHfhFuHjR3aT8KlCwGvAu m4VURt7N5FfHL2TCnkihfn7XYhCjfN8sFdNF+mHOH2oCaIVGObr+pwV/S0137bWEktLI iAYrpYvCbptoiyj4BDb5NXmu+I7rCMzQlNrcVM6FiwST4Fa6rR2laahUA1iLk+uUE11j vNj8W5J7AvHk2123asqapaLjJ38G1iqFLe6Acs85oVluXix7Z6VfpXU+ujF7lbg1cFVA ejcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hkjSKNjx; 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 v1-20020a170902b7c100b001b8a3a8d707si8333348plz.573.2023.08.14.10.15.14; Mon, 14 Aug 2023 10:15:52 -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=hkjSKNjx; 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 S232004AbjHNQ01 (ORCPT + 99 others); Mon, 14 Aug 2023 12:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231262AbjHNQ0W (ORCPT ); Mon, 14 Aug 2023 12:26:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E3F1A8 for ; Mon, 14 Aug 2023 09:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692030382; x=1723566382; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=71NJka35PGxaNCojRiQGmwNxYzKOVeUK2drhv3jA3vA=; b=hkjSKNjx8bgI6AHfLOZ+9YG1FuOjtU4Xzfq2Ybvff0EfXzKA7Fi3FWuQ qpIVAuSGrZNOjfSz26NDN5FuFxpXcMG0EkqiHbJ1TunOxB6vAtyJhc/g5 R3+Y8Kxd/tAAp71MsJIvZ9NnOrYrBEpwyCGTPzBrtWGRl1zAmi6I2PGpK LL6vBUaf2FDilWQ9zWA1P4DT9hLCDvIB9DHIQEGzniqOsQciX8hP5eex5 ewtlk33G31+rBfEOgTiPKrRCH5bgZupqqaGHrnxlf6On6KmBGzyx93/F7 v+4UGQsss/bKFG70HU1NTNL9vn0xjnkFMnG52+lIjGAcahqCrTWiLbfd2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="374852960" X-IronPort-AV: E=Sophos;i="6.01,173,1684825200"; d="scan'208";a="374852960" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 09:26:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="762991299" X-IronPort-AV: E=Sophos;i="6.01,173,1684825200"; d="scan'208";a="762991299" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 14 Aug 2023 09:26:18 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id C15EB33B; Mon, 14 Aug 2023 19:33:47 +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 v3 0/2] lib/vsprintf: Rework header inclusions Date: Mon, 14 Aug 2023 19:33:42 +0300 Message-Id: <20230814163344.17429-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 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: 1774225564558079467 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 v3: - dropped sorting headers patch (Petr) - added tag (Marco) 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 (2): 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 | 3 +-- lib/vsprintf.c | 1 + mm/kfence/report.c | 3 +-- 5 files changed, 31 insertions(+), 33 deletions(-) create mode 100644 include/linux/sprintf.h