From patchwork Fri Aug 4 08:26:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13341452 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 17D0DC001DF for ; Fri, 4 Aug 2023 08:26:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1BC452802D6; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0CDEE2802D4; Fri, 4 Aug 2023 04:26:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E61922802D5; Fri, 4 Aug 2023 04:26:31 -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 D782D2802D4 for ; Fri, 4 Aug 2023 04:26:31 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 9FBC2C13D1 for ; Fri, 4 Aug 2023 08:26:31 +0000 (UTC) X-FDA: 81085740582.21.5D0FAC5 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf11.hostedemail.com (Postfix) with ESMTP id 8D21B40010 for ; Fri, 4 Aug 2023 08:26:29 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YRu0pEQ1; spf=none (imf11.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.115) 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=1691137589; 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=qGsLNWMarAuuCP4hn3WhePhRn9hLu0OcSV+cI8+VfVg=; b=K0Filuhd7Ikibcg9gjmsJzuip90fUE9PO7kwMe5tFoJ6pmgW1WSpyvX6hIrIMXV4dtDu0P GXgktHxGmHpJO6mM1amJlMBlgF4M8q7eA66agzYaNHhd7uwJp/8QHNs4/Qn+xEF19KfYkC bLm1Ey6iukLUKDJe072Ay/pq7OeyflM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691137589; a=rsa-sha256; cv=none; b=OXPb+uBHXOu9S4Vo0oZjy9k5yGFKLFDVMxN9lSY8ODFwfpxOvKSDnjOxwOzm9Pl2TANizL OLmEflbaR2rePiC3q3gGbB8znvVFQPfUrtBvakiyoxPqQWtU58XZCMQqMN3R8MVpWHQxwA tI4AASvEAI8GBJqzmg4pZv9zSPQuPdg= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YRu0pEQ1; spf=none (imf11.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691137589; x=1722673589; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sHbp61XrSGUwS77joL7G3Aw3O4HqQ1kVegd85qwztzc=; b=YRu0pEQ1+VyOID4dJXCBxLrhMY0kIsCWaB8ibVUf2SvQpq/vS5qCfIUL t8cfWKLNCECn/65LGRQhqYFMcrL04tyInycvZ9AeIX5floPgTo+o7juy4 Z5pXFrsPqsdN4oZ4enniTe4zQFriYul8KRUpcwvPgsvIQLfBOdqGLFBoJ l8kxM8TFhpstABQP3L+9E38pc5G2CM9ENAe9LfcCfhhrmRpPSJ4F6O/as o2CFgNM0/WQrOZCpuji8InfU88iinrD5gXwvNJukTwWRW0pHsGtbm0FSH 0qNnXDu4aFsLObqsOxjawBWHAS8I4e9HOXOyclJ9himHO363bNLJXIEj3 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="370090205" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="370090205" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 01:26:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="733132236" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="733132236" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 04 Aug 2023 01:26:21 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6BD6FBAB; Fri, 4 Aug 2023 11:26:32 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org Cc: Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: [PATCH v1 0/4] lib/vsprintf: Rework header inclusions Date: Fri, 4 Aug 2023 11:26:15 +0300 Message-Id: <20230804082619.61833-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 X-Rspamd-Queue-Id: 8D21B40010 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: cd5jasraqstq9qnywmy1e57jenhq5p6z X-HE-Tag: 1691137589-294439 X-HE-Meta: U2FsdGVkX1/bYxehRDundw13stghXCgoHXaFQMpTSHNB7RiavF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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. Andy Shevchenko (4): lib/vsprintf: Declare no_hash_pointers in a local header lib/vsprintf: Sort headers alphabetically lib/vsprintf: Remove implied inclusions lib/vsprintf: Split out sprintf() and friends include/linux/kernel.h | 30 +----------------------------- include/linux/sprintf.h | 24 ++++++++++++++++++++++++ lib/test_printf.c | 4 ++-- lib/vsprintf.c | 38 ++++++++++++++++++++------------------ lib/vsprintf.h | 7 +++++++ mm/kfence/report.c | 3 +-- 6 files changed, 55 insertions(+), 51 deletions(-) create mode 100644 include/linux/sprintf.h create mode 100644 lib/vsprintf.h