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: 13353068 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 EAF43C001E0 for ; Mon, 14 Aug 2023 16:26:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E5936B0074; Mon, 14 Aug 2023 12:26:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 395DF6B0075; Mon, 14 Aug 2023 12:26:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25CFD8E0001; Mon, 14 Aug 2023 12:26:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 07BFA6B0074 for ; Mon, 14 Aug 2023 12:26:26 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C387E1A01EB for ; Mon, 14 Aug 2023 16:26:25 +0000 (UTC) X-FDA: 81123237930.30.794D6B5 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by imf05.hostedemail.com (Postfix) with ESMTP id 9ED0B100014 for ; Mon, 14 Aug 2023 16:26:23 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ZEAYzzlk; spf=none (imf05.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692030383; 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:references:dkim-signature; bh=Hh6xyFX3lrWtHaAHe9l1sscLDUJokypxYBHgPvN98Gs=; b=BSxAuL9FQF7T6WiT7LpdzCyj4GhoxABWDnxI+Ml5X7Xwu8qAgef2uRoNGB0TQkeq04/Bhx cYlk2sp5y1A3lu0XUKBcDFnfB4Lr2nen3y0/YBmneedsXwpymSE2QQY+YQeCSgkp0VmFpT GV1LMqZNIu5LqWjCv2eeq2zZ9OZM+xM= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ZEAYzzlk; spf=none (imf05.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692030383; a=rsa-sha256; cv=none; b=a22WJhgWfr+srgFFPLsdMKbOx3BUv/oi6zOk/TIIH+LliTWH0fPm/hF+34+RC/Wf3hGi/B 2IGBAXXCIAmYs9GpRShsv61IcTXkgyDWE+DygDIkfT8EE3/9T20q9DTy6eC7c1Tz4pnjWc /hUyViqBwQYIBtZzttx9nHrxMuLbBec= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692030383; x=1723566383; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=71NJka35PGxaNCojRiQGmwNxYzKOVeUK2drhv3jA3vA=; b=ZEAYzzlkMKyQtR5iS3IdhLI3jsek18SWzpwbnyqgdtYt6hVx9e3uAa5H eTpiyZgOh8buLiNx3QxpMkuczWYlegmwxQtQhVLhwmjJADYvIVn9MFcef LImW/kQA3Bn55nkqlYfK5gVLYs87IuJleolUfrN8PPT0ZhVcmfzRjsg/e UO4D+M9MzGLdR9Hmq1TTVN3cAUEnIrGTCaN8C8ejnWxdx6Xh75kdGwWqP IbsqVSMEMVMciq25GnECz1B4jyFVUVwA6lM9ScEoJtHeYwGo/QKR5hxgg SQuy2kgXmqvdbrCox859TpvsKjN94Huqu4DxIiM3qZ8tU71vm5pmtfsjl g==; X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="374852962" X-IronPort-AV: E=Sophos;i="6.01,173,1684825200"; d="scan'208";a="374852962" 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-Rspamd-Queue-Id: 9ED0B100014 X-Rspam-User: X-Stat-Signature: d8g4oqpnqinufn6m5pq5ewmdfpre5rw8 X-Rspamd-Server: rspam01 X-HE-Tag: 1692030383-451177 X-HE-Meta: U2FsdGVkX18mCT9p6p6HSHr5veFR8i7GDiBs3Abb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osity: 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: 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