Make linux/init.h include linux/compiler.h
PATCH 1/1 Make linux/init.h include linux/compiler.h
Greetings Linus,
Since __exit and __exit_call from init.h use __attribute_used__ from compiler.h and are two of the most common macros for which files include init.h, init.h should include compiler.h.
I think this patch would be appropriate anyway, but note the patch "Make net/ipx/ipx_proc.c compile w/o CONFIG_PROC_FS", which I have CC-ed to all recipients of this message, and that depends upon this patch. Without this patch, ipx_proc.c would need to include both init.h and compiler.h, the latter for no other reason than to support init.h. I don't think that's good.
Thanks,
Noah
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1341 -> 1.1342
# include/linux/init.h 1.27 -> 1.28
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/10/10 [email protected] 1.1342
# Make linux/init.h include linux/compiler.h. The __exit and __exit_call # macros, among others, need the __attribute_used__ macro defined there. # --------------------------------------------
#
include/linux/init.h +1 -0
@@ -2,6 +2,7 @@#define _LINUX_INIT_H#include <linux/config.h> +#include <linux/compiler.h> /* These macros are used to mark some functions or * initialized data (doesn't apply to uninitialized data)