Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1525594pxb; Sun, 12 Sep 2021 22:48:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztpgAdYkTm6EgAPZIQj2mFUz6U/1AkgEogDePR1qEimBgZuk5kXwezDoOqAu730NlAFKVe X-Received: by 2002:a50:ae21:: with SMTP id c30mr11565789edd.120.1631512099904; Sun, 12 Sep 2021 22:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631512099; cv=none; d=google.com; s=arc-20160816; b=RuTe+8mloaLg3eQvff2gvbdisZzGPRAYjRL14HGCVJrisxMC7CvEFAyWRKhR0ttSzy TPJPtyJJ/KNbIrpkISa/tHDDVusRdM05ixWTOYWHGGMPg1aQYesubW9W3o9bNT9UX2eY 9JHz2pwFUrL2VUcyueJOjRfwinuSYjK0Iq2OXT+Zn/08q4XoVHs9P18q9GPhwfBzz6EM 6pjZKfDCCAp99gBdvlVb1Ze2yeZYUg2aVhyjbEuBSpqG8f1UxdgnWUzTf3latUkLwIxs 5J+7WZLj9SG2ttyT52GJWWqmru/tzuKBgxIwpHKKXAT7wbEWmh5iVm/XnAmtr9pEPy5+ XfNA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Bc/r1/v5qYGuobd8WzRjQTK4GgUmwdQvoNbSmc4SwNk=; b=S64GLDyqCyyzlowGh523qhsx1QMjpV1mRKFEk9lliKskcm2r1Vcqytl8KVcRM8nGS4 qaMEMhEVswMNiEvmJU+g5Z6KRwYbAge6oQE8qbUm+l79lJizULkdc3vZBSUcXazWiMix GNoj5DEXNZzBhIb3cFVCP/E3/SgBcSbXOomuQ3FUA5PmtrFctvYzKv4Ol0huMyMGklsO IGhfR18yGJMQw08qqmYPu3OC6zJ0ND/t84qS7vPUuOpzc4OfkDHvP/CoyIGT2vFdbALK r8CGPJLWT4ZGlDyBFKp+PgVFmoXTICLObPvpjlkqoqkuC73yxvj066UtmIZAJDRuVnhE 0l5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lHbzAsno; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j89si7140395edc.94.2021.09.12.22.47.56; Sun, 12 Sep 2021 22:48:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lHbzAsno; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237052AbhIMFpT (ORCPT + 99 others); Mon, 13 Sep 2021 01:45:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232388AbhIMFpS (ORCPT ); Mon, 13 Sep 2021 01:45:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E438C061574; Sun, 12 Sep 2021 22:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Bc/r1/v5qYGuobd8WzRjQTK4GgUmwdQvoNbSmc4SwNk=; b=lHbzAsnoK940Q3XtXo1skkoEHr T8exy5EAQs0EYBlIha6ZaDyeZQDp0AbiGpn4evFhvKHeUY8ZE7AKqC5AJQCwnAaUBoUpnS0pAXOc7 6SZPw/5JGCYZemZ3mp55Pw81Oi0io5gL/SnEonIuJY2XqX/tl691/L3ezQsZgzENyVYpsYnJuHLN4 5SgqxI5jVIsoWpF8jVvJLE2rD47CZ5WMuertKZql5mZ4Qa4dXTAUPpmN4drCKaAuyswG3pj18lvax vjGrPKZYdV6C9omsVladCrBKdyK0iGuXCOatU0bq8SbhgsObjlvzUE9RRrNIgG1GqbteyR++wZRjZ MlLPR37w==; Received: from 089144214237.atnat0023.highway.a1.net ([89.144.214.237] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPejL-00DCVR-Pf; Mon, 13 Sep 2021 05:42:18 +0000 From: Christoph Hellwig To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Alexander Viro Cc: Jens Axboe , Tejun Heo , linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/13] seq_file: mark seq_get_buf as deprecated Date: Mon, 13 Sep 2021 07:41:09 +0200 Message-Id: <20210913054121.616001-2-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210913054121.616001-1-hch@lst.de> References: <20210913054121.616001-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function pokes a big hole into the seq_file abstraction. Signed-off-by: Christoph Hellwig --- include/linux/seq_file.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index dd99569595fd3..db16b11477875 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -59,6 +59,10 @@ static inline bool seq_has_overflowed(struct seq_file *m) * * Return the number of bytes available in the buffer, or zero if * there's no space. + * + * DOT NOT USE IN NEW CODE! This function pokes a hole into the whole seq_file + * abstraction. The only remaining user outside of seq_file.c is sysfs, which + * is gradually moving away from using seq_get_buf directly. */ static inline size_t seq_get_buf(struct seq_file *m, char **bufp) { -- 2.30.2