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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98122C433F5 for ; Thu, 11 Nov 2021 02:53:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 83234610A2 for ; Thu, 11 Nov 2021 02:53:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234605AbhKKC4j (ORCPT ); Wed, 10 Nov 2021 21:56:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:59966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234599AbhKKC4i (ORCPT ); Wed, 10 Nov 2021 21:56:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 848CD61108; Thu, 11 Nov 2021 02:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1636599230; bh=3jKiQ66IH/8o7qpZz9Kz59PQ2ay/0fTzS/AY9Du8u14=; h=Date:From:To:Subject:From; b=dXf25IOkeX2KVAQmWrZjMxDQzcMQlcHmuCqurVymFABVjSOzOV6tsH/KCSLkbju1t R5EDir+/DksM6/7uyjVf0X9aGYnoDn/0HWoZ5U2CZCN8ZQQVLQfofSZrkKARCWsmtb XtNlEVZ9wT2DXUVQl/wXViir7phiFB+VrcukL+BU= Date: Wed, 10 Nov 2021 18:53:50 -0800 From: akpm@linux-foundation.org To: andriy.shevchenko@linux.intel.com, mm-commits@vger.kernel.org Subject: [merged] seq_file-move-seq_escape-to-a-header.patch removed from -mm tree Message-ID: <20211111025350.l-eTd40lW%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: seq_file: move seq_escape() to a header has been removed from the -mm tree. Its filename was seq_file-move-seq_escape-to-a-header.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Andy Shevchenko Subject: seq_file: move seq_escape() to a header Move seq_escape() to the header as inliner, for a small kernel text size reduction. Link: https://lkml.kernel.org/r/20211001122917.67228-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko Signed-off-by: Andrew Morton --- fs/seq_file.c | 16 ---------------- include/linux/seq_file.h | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 17 deletions(-) --- a/fs/seq_file.c~seq_file-move-seq_escape-to-a-header +++ a/fs/seq_file.c @@ -383,22 +383,6 @@ void seq_escape_mem(struct seq_file *m, } EXPORT_SYMBOL(seq_escape_mem); -/** - * seq_escape - print string into buffer, escaping some characters - * @m: target buffer - * @s: string - * @esc: set of characters that need escaping - * - * Puts string into buffer, replacing each occurrence of character from - * @esc with usual octal escape. - * Use seq_has_overflowed() to check for errors. - */ -void seq_escape(struct seq_file *m, const char *s, const char *esc) -{ - seq_escape_str(m, s, ESCAPE_OCTAL, esc); -} -EXPORT_SYMBOL(seq_escape); - void seq_vprintf(struct seq_file *m, const char *f, va_list args) { int len; --- a/include/linux/seq_file.h~seq_file-move-seq_escape-to-a-header +++ a/include/linux/seq_file.h @@ -4,6 +4,7 @@ #include #include +#include #include #include #include @@ -135,7 +136,21 @@ static inline void seq_escape_str(struct seq_escape_mem(m, src, strlen(src), flags, esc); } -void seq_escape(struct seq_file *m, const char *s, const char *esc); +/** + * seq_escape - print string into buffer, escaping some characters + * @m: target buffer + * @s: NULL-terminated string + * @esc: set of characters that need escaping + * + * Puts string into buffer, replacing each occurrence of character from + * @esc with usual octal escape. + * + * Use seq_has_overflowed() to check for errors. + */ +static inline void seq_escape(struct seq_file *m, const char *s, const char *esc) +{ + seq_escape_str(m, s, ESCAPE_OCTAL, esc); +} void seq_hex_dump(struct seq_file *m, const char *prefix_str, int prefix_type, int rowsize, int groupsize, const void *buf, size_t len, _ Patches currently in -mm which might be from andriy.shevchenko@linux.intel.com are