From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35D6B4F5E0; Wed, 20 May 2026 18:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300030; cv=none; b=OeyIfyIxzO122xVH/IkOz1jVNbCz6zjGSOj0AqTkUS87YVOIAO5XdxsB/XiQStKnqBz3cDWFXX9z/vT8mv1g1y1AKdKZxMYpMw+kHA8Tg1fbdL+Qjyrmzdo+rCuL9emJPjma1LqsKIPLcZbk6FXAxU2CRTUTXsMzfsM194Uvp18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300030; c=relaxed/simple; bh=mysAR7jHoDMe6BKcM5pC4HIMqM3PsJQ4NC3yof/z91M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pI+VwXj8GXAX+dbiVYQ3fjpps/pNPzOZE2HHkx01cVzU7jPIa1GJrkHOIM9MEjqm0M/ER8/sjgw1JbiISrN8MowBz62rKzrgCWc2RR5qjAKO9SKBq/hQJpbSaCV6Fkkoyxuf2w2kvFQTr6rVVxqvZgp2hAiCrLQmy+bkr1uZqP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rzMLK3ku; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rzMLK3ku" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 993671F000E9; Wed, 20 May 2026 18:00:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779300029; bh=6eKwN6ISbfsyXajIn9NOltcrOY0w2lsPfueT68eHpno=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=rzMLK3kuUikvGEfRKZapZPSJ0IM+r8vIRVLPuN+BKIaKm3ivk8EApTOWbelIO+mB1 bKhv1cA8eqA3CUmL4v8B8NOhJxcoPrUt3I8ajj8tqERxcSkc82cSgl/0aYbkpz+Zzm urLdFzZxU1L+KM/3n08Mbuz/qWHzXXOcwmzkgxtM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gui-Dong Han , Sasha Levin Subject: [PATCH 6.12 020/666] debugfs: fix placement of EXPORT_SYMBOL_GPL for debugfs_create_str() Date: Wed, 20 May 2026 18:13:51 +0200 Message-ID: <20260520162111.667952303@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162111.222830634@linuxfoundation.org> References: <20260520162111.222830634@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gui-Dong Han [ Upstream commit 4afc929c0f74c4f22b055a82b371d50586da58ca ] The EXPORT_SYMBOL_GPL() for debugfs_create_str was placed incorrectly away from the function definition. Move it immediately below the debugfs_create_str() function where it belongs. Fixes: d60b59b96795 ("debugfs: Export debugfs_create_str symbol") Signed-off-by: Gui-Dong Han Link: https://patch.msgid.link/20260323085930.88894-3-hanguidong02@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- fs/debugfs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index d3ffd954d6f94..cc9587a1c9a9f 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c @@ -991,7 +991,6 @@ ssize_t debugfs_read_file_str(struct file *file, char __user *user_buf, return ret; } -EXPORT_SYMBOL_GPL(debugfs_create_str); static ssize_t debugfs_write_file_str(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) @@ -1086,6 +1085,7 @@ void debugfs_create_str(const char *name, umode_t mode, debugfs_create_mode_unsafe(name, mode, parent, value, &fops_str, &fops_str_ro, &fops_str_wo); } +EXPORT_SYMBOL_GPL(debugfs_create_str); static ssize_t read_file_blob(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) -- 2.53.0