mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zijun Hu <zijun_hu@icloud.com>
To: Arnd Bergmann <arnd@arndb.de>,
	 Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Zijun Hu <zijun_hu@icloud.com>,
	linux-kernel@vger.kernel.org,
	 Zijun Hu <zijun.hu@oss.qualcomm.com>
Subject: [PATCH 1/3] char: misc: Remove redundant forward declarations
Date: Fri, 20 Jun 2025 22:35:18 +0800	[thread overview]
Message-ID: <20250620-fix_mischar-v1-1-6c2716bbf1fa@oss.qualcomm.com> (raw)
In-Reply-To: <20250620-fix_mischar-v1-0-6c2716bbf1fa@oss.qualcomm.com>

From: Zijun Hu <zijun.hu@oss.qualcomm.com>

Header miscdevice.h includes linux/device.h which has definations for
below two forward declarations directly or indirectly:

struct device;
struct attribute_group;

Remove these redundant forward declarations from miscdevice.h

Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
---
 include/linux/miscdevice.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
index 69e110c2b86a9b16c1637778a25e1eebb3fd0111..3e6deb00fc8535a7571f85489c74979e18385bad 100644
--- a/include/linux/miscdevice.h
+++ b/include/linux/miscdevice.h
@@ -73,9 +73,6 @@
 #define RFKILL_MINOR		242
 #define MISC_DYNAMIC_MINOR	255
 
-struct device;
-struct attribute_group;
-
 struct miscdevice {
 	int minor;
 	const char *name;

-- 
2.34.1


  reply	other threads:[~2025-06-20 14:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-20 14:35 [PATCH 0/3] char: misc: Trivial cleanup Zijun Hu
2025-06-20 14:35 ` Zijun Hu [this message]
2025-06-20 14:35 ` [PATCH 2/3] char: misc: Rename a local variable in misc_init() Zijun Hu
2025-06-24 15:47   ` Greg Kroah-Hartman
2025-06-20 14:35 ` [PATCH 3/3] char: misc: Fix improper and inaccurate error code returned by misc_init() Zijun Hu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250620-fix_mischar-v1-1-6c2716bbf1fa@oss.qualcomm.com \
    --to=zijun_hu@icloud.com \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zijun.hu@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®