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: 13342642 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 E08A5C001DB for ; Sat, 5 Aug 2023 17:49:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3DDCF8D0003; Sat, 5 Aug 2023 13:49:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 38D3F8D0001; Sat, 5 Aug 2023 13:49:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 239048D0003; Sat, 5 Aug 2023 13:49:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 1149A8D0001 for ; Sat, 5 Aug 2023 13:49:36 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D31491A0209 for ; Sat, 5 Aug 2023 17:49:35 +0000 (UTC) X-FDA: 81090788310.02.2F45812 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by imf01.hostedemail.com (Postfix) with ESMTP id D8E794000B for ; Sat, 5 Aug 2023 17:49:33 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XCQTB5QK; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf01.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=andriy.shevchenko@linux.intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691257774; 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=M7sJ9gGeF49op4HZCyGN9WO14IstQT6js5K5KrYBSYM=; b=GDt341WbB1WIP/zM8awuyAskttJQ2st8I/CV35E3+voRNotTG+IhfbUKRX6N2M3C0GZ3L2 BDVsssodKo7cIkHTWxBzUPdkA9T6KwTtHJnWCFaSof/v5A/YzfpKXw6fG5IAe5Jtbqppuc Nu2mee7aAq5+FQmjbVay7uXYi+uZFbs= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XCQTB5QK; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf01.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=andriy.shevchenko@linux.intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691257774; a=rsa-sha256; cv=none; b=WCY0EWT3sjVccQ5C1aOP2PS7XlrpQlwIhLNUivteorSd+xFExkBJOLYbzI2z00zbQ3EHwm dncLWHpCdfgoa4KeEKI+ItWN7RoI2ZKDK1+IRe6LWuLYKFJgqHGyxTkjxv7iKY23B2mGmb /h89tUKFbsdtFDyIUCUBSds2ozlvMqs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691257773; x=1722793773; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rEpi9TPxaBsioRbO+12MR2A475UUbDQs5Dep4NW21jM=; b=XCQTB5QKElosZo2+OHewOcbhX6X/SSa4VeyVbHUE5nuQk1zNJ9Pfb2SE H7w3FJfzNebw6W1MXRl7kChuLA6lFnLiGiLVgqjF0MD4BDO5SSzX0cdvl 6OPUSArm5DMvU/81dkKhFrqps5Zv2ueyE3SU1XiEgxjw2+8f4INtyM6QE j210k7tSAhEz0eRaPmcsIrgZh0Hi5TxVCeOryeHNdYhiBrJLB4XeL/43t j0b7EhqhdadkR7Tv03JnlwfaA+7USQ6WfK7nP5hgazYaymEjr0RfwYMGE U01FLEXOOVSPSleeZq5MXTao3/61y6zvuRO93JF7kf31ZEqul3g/Ori/8 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="401292526" X-IronPort-AV: E=Sophos;i="6.01,258,1684825200"; d="scan'208";a="401292526" 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-Rspamd-Queue-Id: D8E794000B X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: iubch9qkzjc488rpwwzcra7i3r7j9edf X-HE-Tag: 1691257773-349178 X-HE-Meta: U2FsdGVkX1+4YbAi4CXnrGsUQeaZ0oo27prg8FEdipTv34wjvu/uuWVE1o96LAsSK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=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 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