Skip to content

Commit

Permalink
fbdev: Do not include <linux/slab.h> in header
Browse files Browse the repository at this point in the history
Forward declare struct page and remove the include statement.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240219093941.3684-8-tzimmermann@suse.de
  • Loading branch information
Thomas Zimmermann committed Feb 28, 2024
1 parent 0f11533 commit 7a46212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <linux/init.h>
#include <linux/workqueue.h>
#include <linux/list.h>
#include <linux/slab.h>

#include <asm/fb.h>

Expand All @@ -22,6 +21,7 @@ struct device;
struct file;
struct inode;
struct notifier_block;
struct page;
struct videomode;
struct device_node;

Expand Down

0 comments on commit 7a46212

Please sign in to comment.