Skip to contentSkip to conversation

Remove cred leftovers from sched.h

PATCH In review Alexey Dobriyan 3 participants 3 messages May 26, 2009

Subsystems (60)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove cred leftovers from sched.h

struct user_struct and functions which work with it do not belong to sched.h Remove cred.h inclusion from sched.h
Add necessary headers where needed (cred.h, capability.h)

As result sched.h inclusion results in something like -6% stuff after preprocessing.

---

 arch/alpha/kernel/asm-offsets.c            |    2 
 arch/ia64/kernel/mca_drv.c                 |    1 
 arch/parisc/kernel/signal.c                |    2 
 arch/powerpc/mm/fault.c                    |    2 
 arch/powerpc/platforms/cell/spufs/inode.c  |    2 
 arch/s390/hypfs/inode.c                    |    1 
 arch/x86/mm/fault.c                        |    1 
 drivers/block/loop.c                       |    2 
 drivers/char/tty_audit.c                   |    1 
 drivers/gpu/drm/drm_fops.c                 |    1 
 drivers/isdn/capi/capifs.c                 |    2 
 drivers/isdn/hysdn/hysdn_procconf.c        |    2 
 drivers/media/video/cpia.c                 |    2 
 drivers/misc/eeprom/eeprom.c               |    2 
 drivers/net/depca.c                        |    2 
 drivers/net/hamradio/baycom_ser_hdx.c      |    1 
 drivers/net/hamradio/hdlcdrv.c             |    1 
 drivers/net/mii.c                          |    2 
 drivers/net/pcmcia/3c574_cs.c              |    2 
 drivers/net/pcmcia/axnet_cs.c              |    1 
 drivers/net/pcmcia/pcnet_cs.c              |    1 
 drivers/net/pcmcia/xirc2ps_cs.c            |    2 
 drivers/net/phy/phy.c                      |    1 
 drivers/net/sis900.c                       |    2 
 drivers/net/skfp/skfddi.c                  |    1 
 drivers/net/sungem.c                       |    2 
 drivers/net/tlan.c                         |    1 
 drivers/net/tulip/de4x5.c                  |    2 
 drivers/net/tulip/tulip_core.c             |    2 
 drivers/net/wan/lmc/lmc_main.c             |    2 
 drivers/net/wan/pc300too.c                 |    2 
 drivers/net/wan/wanxl.c                    |    2 
 drivers/net/wireless/hostap/hostap_ioctl.c |    2 
 drivers/net/wireless/orinoco/wext.c        |    1 
 drivers/net/wireless/prism54/isl_ioctl.c   |    2 
 drivers/rapidio/rio-sysfs.c                |    2 
 drivers/usb/core/inode.c                   |    1 
 fs/9p/fid.c                                |    2 
 fs/9p/vfs_inode.c                          |    2 
 fs/9p/vfs_super.c                          |    2 
 fs/affs/inode.c                            |    1 
 fs/affs/super.c                            |    2 
 fs/anon_inodes.c                           |    2 
 fs/autofs/inode.c                          |    2 
 fs/autofs4/dev-ioctl.c                     |    2 
 fs/autofs4/inode.c                         |    2 
 fs/autofs4/waitq.c                         |    2 
 fs/bfs/dir.c                               |    2 
 fs/btrfs/inode.c                           |    2 
 fs/coda/cache.c                            |    2 
 fs/coda/upcall.c                           |    2 
 fs/configfs/inode.c                        |    1 
 fs/devpts/inode.c                          |    3 -
 fs/ecryptfs/kthread.c                      |    2 
 fs/ecryptfs/main.c                         |    2 
 fs/ecryptfs/messaging.c                    |    1 
 fs/ecryptfs/miscdev.c                      |    2 
 fs/eventpoll.c                             |    2 
 fs/exofs/inode.c                           |    2 
 fs/exportfs/expfs.c                        |    1 
 fs/ext2/acl.c                              |    1 
 fs/ext2/balloc.c                           |    1 
 fs/ext2/ialloc.c                           |    2 
 fs/ext2/ioctl.c                            |    1 
 fs/ext3/acl.c                              |    2 
 fs/ext3/balloc.c                           |    2 
 fs/ext3/ialloc.c                           |    2 
 fs/ext3/ioctl.c                            |    2 
 fs/ext4/acl.c                              |    2 
 fs/ext4/balloc.c                           |    2 
 fs/ext4/ialloc.c                           |    2 
 fs/ext4/ioctl.c                            |    2 
 fs/fat/inode.c                             |    2 
 fs/fuse/dev.c                              |    1 
 fs/fuse/dir.c                              |    1 
 fs/generic_acl.c                           |    2 
 fs/gfs2/acl.c                              |    2 
 fs/hfs/inode.c                             |    2 
 fs/hfs/super.c                             |    2 
 fs/hfsplus/inode.c                         |    2 
 fs/hfsplus/ioctl.c                         |    1 
 fs/hfsplus/options.c                       |    2 
 fs/hpfs/namei.c                            |    1 
 fs/hpfs/super.c                            |    1 
 fs/jffs2/acl.c                             |    2 
 fs/jffs2/fs.c                              |    1 
 fs/jfs/ioctl.c                             |    2 
 fs/jfs/jfs_inode.c                         |    2 
 fs/minix/bitmap.c                          |    1 
 fs/ncpfs/ioctl.c                           |    1 
 fs/nfsd/auth.c                             |    2 
 fs/nfsd/nfs4recover.c                      |    2 
 fs/nfsd/nfs4state.c                        |    2 
 fs/nfsd/nfsfh.c                            |    2 
 fs/nfsd/vfs.c                              |    2 
 fs/nilfs2/inode.c                          |    1 
 fs/notify/inotify/inotify_user.c           |    2 
 fs/ocfs2/acl.c                             |    2 
 fs/ocfs2/ioctl.c                           |    2 
 fs/ocfs2/namei.c                           |    2 
 fs/omfs/inode.c                            |    1 
 fs/pipe.c                                  |    2 
 fs/posix_acl.c                             |    2 
 fs/ramfs/inode.c                           |    2 
 fs/reiserfs/ioctl.c                        |    1 
 fs/reiserfs/namei.c                        |    2 
 fs/reiserfs/xattr_acl.c                    |    1 
 fs/smbfs/dir.c                             |    2 
 fs/smbfs/inode.c                           |    2 
 fs/sysfs/inode.c                           |    2 
 fs/sysv/ialloc.c                           |    2 
 fs/ubifs/budget.c                          |    1 
 fs/ubifs/dir.c                             |    1 
 fs/ubifs/file.c                            |    1 
 fs/ubifs/ioctl.c                           |    1 
 fs/udf/ialloc.c                            |    1 
 fs/udf/namei.c                             |    1 
 fs/ufs/ialloc.c                            |    2 
 fs/utimes.c                                |    1 
 fs/xfs/linux-2.6/xfs_cred.h                |    2 
 include/linux/cred.h                       |   56 +++++++++++++++++++++++++
 include/linux/sched.h                      |   63 -----------------------------
 include/linux/security.h                   |    1 
 kernel/cgroup.c                            |    1 
 kernel/futex.c                             |    1 
 kernel/futex_compat.c                      |    3 -
 kernel/ksysfs.c                            |    3 -
 kernel/timer.c                             |    2 
 kernel/trace/trace.c                       |    1 
 kernel/tsacct.c                            |    2 
 kernel/user.c                              |    2 
 mm/mlock.c                                 |    1 
 net/9p/client.c                            |    2 
 net/sunrpc/auth.c                          |    2 
 net/sunrpc/auth_generic.c                  |    3 -
 net/sunrpc/auth_gss/svcauth_gss.c          |    2 
 net/sunrpc/auth_unix.c                     |    3 -
 security/keys/internal.h                   |    1 
 security/selinux/exports.c                 |    1 
 security/tomoyo/tomoyo.h                   |    2 
 140 files changed, 197 insertions(+), 156 deletions(-)
arch/alpha/kernel/asm-offsets.c +1 -1
@@ -3,7 +3,7 @@
  * This code generates raw asm output which is post-processed to extract
  * and format the required data.
  */
-
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/stddef.h>
 #include <linux/sched.h>
arch/ia64/kernel/mca_drv.c +1 -0
@@ -8,6 +8,7 @@
  * Copyright (C) 2005 Keith Owens <[email protected]>
  * Copyright (C) 2006 Russ Anderson <[email protected]>
  */
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/sched.h>
arch/parisc/kernel/signal.c +1 -1
@@ -12,7 +12,7 @@
  *  Linux signals.  Therefore we don't.  HP/UX signals will go in
  *  arch/parisc/hpux/signal.c when we figure out how to do them.
  */
-
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/smp.h>
arch/powerpc/mm/fault.c +1 -1
@@ -14,7 +14,7 @@
  *  as published by the Free Software Foundation; either version
  *  2 of the License, or (at your option) any later version.
  */
-
+#include <linux/cred.h>
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
arch/powerpc/platforms/cell/spufs/inode.c +1 -1
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-
+#include <linux/cred.h>
 #include <linux/file.h>
 #include <linux/fs.h>
 #include <linux/fsnotify.h>
arch/s390/hypfs/inode.c +1 -0
@@ -9,6 +9,7 @@
 #define KMSG_COMPONENT "hypfs"
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
arch/x86/mm/fault.c +1 -0
@@ -22,6 +22,7 @@
 #include <linux/magic.h>
 #include <linux/sched.h>
 #include <linux/types.h>
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/mman.h>
 #include <linux/tty.h>
drivers/block/loop.c +1 -1
@@ -48,7 +48,7 @@
  * - Should use an own CAP_* category instead of CAP_SYS_ADMIN
  *
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/sched.h>
drivers/char/tty_audit.c +1 -0
@@ -10,6 +10,7 @@
  */
 
 #include <linux/audit.h>
+#include <linux/cred.h>
 #include <linux/tty.h>
 
 struct tty_audit_buf {
drivers/gpu/drm/drm_fops.c +1 -0
@@ -35,6 +35,7 @@
  */
 
 #include "drmP.h"
+#include <linux/cred.h>
 #include <linux/poll.h>
 #include <linux/smp_lock.h>
 
drivers/isdn/capi/capifs.c +1 -1
@@ -8,7 +8,7 @@
  * of the GNU General Public License, incorporated herein by reference.
  *
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
 #include <linux/namei.h>
drivers/isdn/hysdn/hysdn_procconf.c +1 -1
@@ -10,7 +10,7 @@
  * of the GNU General Public License, incorporated herein by reference.
  *
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/poll.h>
 #include <linux/proc_fs.h>
drivers/media/video/cpia.c +1 -1
@@ -26,7 +26,7 @@
 /* define _CPIA_DEBUG_ for verbose debug output (see cpia.h) */
 /* #define _CPIA_DEBUG_  1 */
 
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/fs.h>
drivers/misc/eeprom/eeprom.c +1 -1
@@ -19,7 +19,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
-
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/module.h>
drivers/net/depca.c +1 -1
@@ -234,7 +234,7 @@
 
     =========================================================================
 */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
drivers/net/hamradio/baycom_ser_hdx.c +1 -0
@@ -61,6 +61,7 @@
 
 /*****************************************************************************/
 
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/ioport.h>
 #include <linux/string.h>
drivers/net/hamradio/hdlcdrv.c +1 -0
@@ -42,6 +42,7 @@
 
 /*****************************************************************************/
 
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/net.h>
drivers/net/mii.c +1 -1
@@ -26,7 +26,7 @@
 
 
  */
-
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/netdevice.h>
drivers/net/pcmcia/3c574_cs.c +1 -1
@@ -68,7 +68,7 @@ Thanks to Terry Murphy of 3Com for providing development information for
 earlier 3Com products.
 
 */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
drivers/net/pcmcia/axnet_cs.c +1 -0
@@ -24,6 +24,7 @@
 
 ======================================================================*/
 
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
drivers/net/pcmcia/pcnet_cs.c +1 -0
@@ -28,6 +28,7 @@
 
 ======================================================================*/
 
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
drivers/net/pcmcia/xirc2ps_cs.c +1 -1
@@ -62,7 +62,7 @@
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  * OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
drivers/net/phy/phy.c +1 -0
@@ -15,6 +15,7 @@
  * option) any later version.
  *
  */
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/errno.h>
drivers/net/sis900.c +1 -1
@@ -48,7 +48,7 @@
    Chin-Shan Li ([email protected]) Added AMD Am79c901 HomePNA PHY support
    Rev 1.05 Aug. 7 1999 Jim Huang ([email protected]) Initial release
 */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/kernel.h>
drivers/net/skfp/skfddi.c +1 -0
@@ -73,6 +73,7 @@ static const char * const boot_msg =
 
 /* Include files */
 
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
drivers/net/sungem.c +1 -1
@@ -30,7 +30,7 @@
  *    locking in open/resume code path (gem_reinit_chip) by beeing more careful
  *    about when we can start taking interrupts or get xmit() called...
  */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
drivers/net/tlan.c +1 -0
@@ -170,6 +170,7 @@
  *
  *******************************************************************************/
 
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/ioport.h>
drivers/net/tulip/de4x5.c +1 -1
@@ -442,7 +442,7 @@
 			   <[email protected]>
     =========================================================================
 */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
drivers/net/tulip/tulip_core.c +1 -1
@@ -21,7 +21,7 @@
 #endif
 #define DRV_RELDATE	"Feb 27, 2007"
 
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include "tulip.h"
drivers/net/wan/lmc/lmc_main.c +1 -1
@@ -36,7 +36,7 @@
   * we no longer can transmit.
   *
   */
-
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/net/wan/pc300too.c +1 -1
@@ -16,7 +16,7 @@
  * This driver currently supports only PC300/RSV (V.24/V.35) and
  * PC300/X21 cards.
  */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
drivers/net/wan/wanxl.c +1 -1
@@ -12,7 +12,7 @@
  *   - Only DTE (external clock) support with NRZ and NRZI encodings
  *   - wanXL100 will require minor driver modifications, no access to hw
  */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
drivers/net/wireless/hostap/hostap_ioctl.c +1 -1
@@ -1,5 +1,5 @@
 /* ioctl() (mostly Linux Wireless Extensions) routines for Host AP driver */
-
+#include <linux/capability.h>
 #include <linux/types.h>
 #include <linux/ethtool.h>
 #include <linux/if_arp.h>
drivers/net/wireless/orinoco/wext.c +1 -0
@@ -2,6 +2,7 @@
  *
  * See copyright notice in main.c
  */
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/if_arp.h>
 #include <linux/wireless.h>
drivers/net/wireless/prism54/isl_ioctl.c +1 -1
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
-
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/if_arp.h>
drivers/rapidio/rio-sysfs.c +1 -1
@@ -9,7 +9,7 @@
  * Free Software Foundation;  either version 2 of the  License, or (at your
  * option) any later version.
  */
-
+#include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/rio.h>
 #include <linux/rio_drv.h>
drivers/usb/core/inode.c +1 -0
@@ -27,6 +27,7 @@
 
 /*****************************************************************************/
 
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
fs/9p/fid.c +1 -1
@@ -20,7 +20,7 @@
  *  Boston, MA  02111-1301  USA
  *
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
fs/9p/vfs_inode.c +1 -1
@@ -22,7 +22,7 @@
  *  Boston, MA  02111-1301  USA
  *
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
fs/9p/vfs_super.c +1 -1
@@ -23,7 +23,7 @@
  *  Boston, MA  02111-1301  USA
  *
  */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
fs/affs/inode.c +1 -0
@@ -9,6 +9,7 @@
  *
  *  (C) 1991  Linus Torvalds - minix filesystem
  */
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include "affs.h"
 
fs/affs/super.c +1 -1
@@ -9,7 +9,7 @@
  *
  *  (C) 1991  Linus Torvalds - minix filesystem
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/statfs.h>
fs/anon_inodes.c +1 -1
@@ -7,7 +7,7 @@
  *  More changes for Thomas Gleixner suggestions.
  *
  */
-
+#include <linux/cred.h>
 #include <linux/file.h>
 #include <linux/poll.h>
 #include <linux/slab.h>
fs/autofs/inode.c +1 -1
@@ -9,7 +9,7 @@
  * option, any later version, incorporated herein by reference.
  *
  * ------------------------------------------------------------------------- */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
fs/autofs4/dev-ioctl.c +1 -1
@@ -6,7 +6,7 @@
  * the terms of the GNU General Public License, version 2, or at your
  * option, any later version, incorporated herein by reference.
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/vmalloc.h>
 #include <linux/miscdevice.h>
fs/autofs4/inode.c +1 -1
@@ -10,7 +10,7 @@
  * option, any later version, incorporated herein by reference.
  *
  * ------------------------------------------------------------------------- */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/file.h>
fs/autofs4/waitq.c +1 -1
@@ -10,7 +10,7 @@
  * option, any later version, incorporated herein by reference.
  *
  * ------------------------------------------------------------------------- */
-
+#include <linux/cred.h>
 #include <linux/slab.h>
 #include <linux/time.h>
 #include <linux/signal.h>
fs/bfs/dir.c +1 -1
@@ -4,7 +4,7 @@
  *	Copyright (C) 1999,2000  Tigran Aivazian <[email protected]>
  *      Made endianness-clean by Andrew Stribblehill <[email protected]> 2005
  */
-
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/string.h>
 #include <linux/fs.h>
fs/btrfs/inode.c +1 -1
@@ -15,7 +15,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 021110-1307, USA.
  */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/bio.h>
 #include <linux/buffer_head.h>
fs/coda/cache.c +1 -1
@@ -6,7 +6,7 @@
  * Carnegie Mellon encourages users of this code to contribute improvements
  * to the Coda project http://www.coda.cs.cmu.edu/ <[email protected]>.
  */
-
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/time.h>
fs/coda/upcall.c +1 -1
@@ -13,7 +13,7 @@
  * Carnegie Mellon University encourages users of this code to contribute
  * improvements to the Coda project. Contact Peter Braam <[email protected]>.
  */
-
+#include <linux/cred.h>
 #include <asm/system.h>
 #include <linux/signal.h>
 #include <linux/sched.h>
fs/configfs/inode.c +1 -0
@@ -28,6 +28,7 @@
 
 #undef DEBUG
 
+#include <linux/cred.h>
 #include <linux/pagemap.h>
 #include <linux/namei.h>
 #include <linux/backing-dev.h>
fs/devpts/inode.c +1 -2
@@ -9,11 +9,10 @@
  * option, any later version, incorporated herein by reference.
  *
  * ------------------------------------------------------------------------- */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/fs.h>
-#include <linux/sched.h>
 #include <linux/namei.h>
 #include <linux/mount.h>
 #include <linux/tty.h>
fs/ecryptfs/kthread.c +1 -1
@@ -19,7 +19,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-
+#include <linux/cred.h>
 #include <linux/kthread.h>
 #include <linux/freezer.h>
 #include <linux/wait.h>
fs/ecryptfs/main.c +1 -1
@@ -23,7 +23,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-
+#include <linux/cred.h>
 #include <linux/dcache.h>
 #include <linux/file.h>
 #include <linux/module.h>
fs/ecryptfs/messaging.c +1 -0
@@ -19,6 +19,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include <linux/user_namespace.h>
 #include <linux/nsproxy.h>
fs/ecryptfs/miscdev.c +1 -1
@@ -18,7 +18,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/hash.h>
 #include <linux/random.h>
fs/eventpoll.c +1 -1
@@ -10,7 +10,7 @@
  *  Davide Libenzi <[email protected]>
  *
  */
-
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
fs/exofs/inode.c +1 -1
@@ -32,7 +32,7 @@
  * along with exofs; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
-
+#include <linux/cred.h>
 #include <linux/writeback.h>
 #include <linux/buffer_head.h>
 #include <scsi/scsi_device.h>
fs/exportfs/expfs.c +1 -0
@@ -8,6 +8,7 @@
  * For details on why we do all the strange and hairy things in here
  * take a look at Documentation/filesystems/Exporting.
  */
+#include <linux/cred.h>
 #include <linux/exportfs.h>
 #include <linux/fs.h>
 #include <linux/file.h>
fs/ext2/acl.c +1 -0
@@ -5,6 +5,7 @@
  */
 
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
fs/ext2/balloc.c +1 -0
@@ -12,6 +12,7 @@
  */
 
 #include "ext2.h"
+#include <linux/cred.h>
 #include <linux/quotaops.h>
 #include <linux/sched.h>
 #include <linux/buffer_head.h>
fs/ext2/ialloc.c +1 -1
@@ -11,7 +11,7 @@
  *  Big-endian to little-endian byte-swapping/bitmaps by
  *        David S. Miller ([email protected]), 1995
  */
-
+#include <linux/cred.h>
 #include <linux/quotaops.h>
 #include <linux/sched.h>
 #include <linux/backing-dev.h>
fs/ext2/ioctl.c +1 -0
@@ -9,6 +9,7 @@
 
 #include "ext2.h"
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/sched.h>
 #include <linux/compat.h>
fs/ext3/acl.c +1 -1
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2001-2003 Andreas Gruenbacher, <[email protected]>
  */
-
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
fs/ext3/balloc.c +1 -1
@@ -10,7 +10,7 @@
  *  Big-endian to little-endian byte-swapping/bitmaps by
  *        David S. Miller ([email protected]), 1995
  */
-
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/capability.h>
 #include <linux/fs.h>
fs/ext3/ialloc.c +1 -1
@@ -11,7 +11,7 @@
  *  Big-endian to little-endian byte-swapping/bitmaps by
  *        David S. Miller ([email protected]), 1995
  */
-
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/fs.h>
 #include <linux/jbd.h>
fs/ext3/ioctl.c +1 -1
@@ -6,7 +6,7 @@
  * Laboratoire MASI - Institut Blaise Pascal
  * Universite Pierre et Marie Curie (Paris VI)
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/jbd.h>
 #include <linux/capability.h>
fs/ext4/acl.c +1 -1
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2001-2003 Andreas Gruenbacher, <[email protected]>
  */
-
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
fs/ext4/balloc.c +1 -1
@@ -10,7 +10,7 @@
  *  Big-endian to little-endian byte-swapping/bitmaps by
  *        David S. Miller ([email protected]), 1995
  */
-
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/capability.h>
 #include <linux/fs.h>
fs/ext4/ialloc.c +1 -1
@@ -11,7 +11,7 @@
  *  Big-endian to little-endian byte-swapping/bitmaps by
  *        David S. Miller ([email protected]), 1995
  */
-
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/fs.h>
 #include <linux/jbd2.h>
fs/ext4/ioctl.c +1 -1
@@ -6,7 +6,7 @@
  * Laboratoire MASI - Institut Blaise Pascal
  * Universite Pierre et Marie Curie (Paris VI)
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/jbd2.h>
 #include <linux/capability.h>
fs/fat/inode.c +1 -1
@@ -9,7 +9,7 @@
  *
  *	Max Cohan: Fixed invalid FSINFO offset when info_sector is 0
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/time.h>
fs/fuse/dev.c +1 -0
@@ -8,6 +8,7 @@
 
 #include "fuse_i.h"
 
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/poll.h>
fs/fuse/dir.c +1 -0
@@ -8,6 +8,7 @@
 
 #include "fuse_i.h"
 
+#include <linux/cred.h>
 #include <linux/pagemap.h>
 #include <linux/file.h>
 #include <linux/gfp.h>
fs/generic_acl.c +1 -1
@@ -5,7 +5,7 @@
  *
  * This file is released under the GPL.
  */
-
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include <linux/fs.h>
 #include <linux/generic_acl.h>
fs/gfs2/acl.c +1 -1
@@ -6,7 +6,7 @@
  * modify, copy, or redistribute it subject to the terms and conditions
  * of the GNU General Public License version 2.
  */
-
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
fs/hfs/inode.c +1 -1
@@ -10,7 +10,7 @@
  *
  * Based on the minix file system code, (C) 1991, 1992 by Linus Torvalds
  */
-
+#include <linux/cred.h>
 #include <linux/pagemap.h>
 #include <linux/mpage.h>
 #include <linux/sched.h>
fs/hfs/super.c +1 -1
@@ -11,7 +11,7 @@
  *
  * Based on the minix file system code, (C) 1991, 1992 by Linus Torvalds
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/blkdev.h>
 #include <linux/mount.h>
fs/hfsplus/inode.c +1 -1
@@ -7,7 +7,7 @@
  *
  * Inode handling routines
  */
-
+#include <linux/cred.h>
 #include <linux/mm.h>
 #include <linux/fs.h>
 #include <linux/pagemap.h>
fs/hfsplus/ioctl.c +1 -0
@@ -13,6 +13,7 @@
  */
 
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
 #include <linux/sched.h>
fs/hfsplus/options.c +1 -1
@@ -7,7 +7,7 @@
  *
  * Option parsing
  */
-
+#include <linux/cred.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
fs/hpfs/namei.c +1 -0
@@ -5,6 +5,7 @@
  *
  *  adding & removing files & directories
  */
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include "hpfs_fn.h"
 
fs/hpfs/super.c +1 -0
@@ -7,6 +7,7 @@
  */
 
 #include "hpfs_fn.h"
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/parser.h>
 #include <linux/init.h>
fs/jffs2/acl.c +1 -1
@@ -8,7 +8,7 @@
  * For licensing information, see the file 'LICENCE' in this directory.
  *
  */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
fs/jffs2/fs.c +1 -0
@@ -10,6 +10,7 @@
  */
 
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/fs.h>
fs/jfs/ioctl.c +1 -1
@@ -4,7 +4,7 @@
  * Copyright (C) 2006 Herbert Poetzl
  * adapted from Remy Card's ext2/ioctl.c
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/ctype.h>
 #include <linux/capability.h>
fs/jfs/jfs_inode.c +1 -1
@@ -15,7 +15,7 @@
  *   along with this program;  if not, write to the Free Software
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/quotaops.h>
 #include "jfs_incore.h"
fs/minix/bitmap.c +1 -0
@@ -12,6 +12,7 @@
 /* bitmap.c contains the code that handles the inode and block bitmaps */
 
 #include "minix.h"
+#include <linux/cred.h>
 #include <linux/smp_lock.h>
 #include <linux/buffer_head.h>
 #include <linux/bitops.h>
fs/ncpfs/ioctl.c +1 -0
@@ -9,6 +9,7 @@
 
 #include <linux/capability.h>
 #include <linux/compat.h>
+#include <linux/cred.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/ioctl.h>
fs/nfsd/auth.c +1 -1
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 1995, 1996 Olaf Kirch <[email protected]>
  */
-
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/sched.h>
 #include <linux/sunrpc/svc.h>
fs/nfsd/nfs4recover.c +1 -1
@@ -32,7 +32,7 @@
 *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
-
+#include <linux/cred.h>
 #include <linux/err.h>
 #include <linux/sunrpc/svc.h>
 #include <linux/nfsd/nfsd.h>
fs/nfsd/nfs4state.c +1 -1
@@ -33,7 +33,7 @@
 *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
-
+#include <linux/cred.h>
 #include <linux/param.h>
 #include <linux/major.h>
 #include <linux/slab.h>
fs/nfsd/nfsfh.c +1 -1
@@ -8,7 +8,7 @@
  * Extensive rewrite by Neil Brown <[email protected]> Southern-Spring 1999
  * ... and again Southern-Winter 2001 to support export_operations
  */
-
+#include <linux/cred.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
 #include <linux/unistd.h>
fs/nfsd/vfs.c +1 -1
@@ -15,7 +15,7 @@
  * Copyright (C) 1995-1999 Olaf Kirch <[email protected]>
  * Zerocpy NFS support (C) 2002 Hirokazu Takahashi <[email protected]>
  */
-
+#include <linux/cred.h>
 #include <linux/string.h>
 #include <linux/time.h>
 #include <linux/errno.h>
fs/nilfs2/inode.c +1 -0
@@ -22,6 +22,7 @@
  */
 
 #include <linux/buffer_head.h>
+#include <linux/cred.h>
 #include <linux/mpage.h>
 #include <linux/writeback.h>
 #include <linux/uio.h>
fs/notify/inotify/inotify_user.c +1 -1
@@ -18,7 +18,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
fs/ocfs2/acl.c +1 -1
@@ -18,7 +18,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  */
-
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
fs/ocfs2/ioctl.c +1 -1
@@ -4,7 +4,7 @@
  * Copyright (C) 2006 Herbert Poetzl
  * adapted from Remy Card's ext2/ioctl.c
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
 #include <linux/smp_lock.h>
fs/ocfs2/namei.c +1 -1
@@ -35,7 +35,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 021110-1307, USA.
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/types.h>
 #include <linux/slab.h>
fs/omfs/inode.c +1 -0
@@ -3,6 +3,7 @@
  * Copyright (C) 2006 Bob Copeland <[email protected]>
  * Released under GPL v2.
  */
+#include <linux/cred.h>
 #include <linux/version.h>
 #include <linux/module.h>
 #include <linux/sched.h>
fs/pipe.c +1 -1
@@ -3,7 +3,7 @@
  *
  *  Copyright (C) 1991, 1992, 1999  Linus Torvalds
  */
-
+#include <linux/cred.h>
 #include <linux/mm.h>
 #include <linux/file.h>
 #include <linux/poll.h>
fs/posix_acl.c +1 -1
@@ -11,7 +11,7 @@
  *  This file contains generic functions for manipulating
  *  POSIX 1003.1e draft standard 17 ACLs.
  */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <asm/atomic.h>
fs/ramfs/inode.c +1 -1
@@ -22,7 +22,7 @@
  * to keep track of the virtual data: using the VFS
  * caches is sufficient.
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/pagemap.h>
fs/reiserfs/ioctl.c +1 -0
@@ -3,6 +3,7 @@
  */
 
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
 #include <linux/reiserfs_fs.h>
fs/reiserfs/namei.c +1 -1
@@ -10,7 +10,7 @@
  *
  * NO WARRANTY
  */
-
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/bitops.h>
 #include <linux/reiserfs_fs.h>
fs/reiserfs/xattr_acl.c +1 -0
@@ -1,4 +1,5 @@
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/posix_acl.h>
 #include <linux/reiserfs_fs.h>
fs/smbfs/dir.c +1 -1
@@ -6,7 +6,7 @@
  *
  *  Please add a note about your changes to smbfs in the ChangeLog file.
  */
-
+#include <linux/cred.h>
 #include <linux/time.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
fs/smbfs/inode.c +1 -1
@@ -6,7 +6,7 @@
  *
  *  Please add a note about your changes to smbfs in the ChangeLog file.
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/time.h>
 #include <linux/kernel.h>
fs/sysfs/inode.c +1 -1
@@ -12,12 +12,12 @@
 
 #undef DEBUG 
 
+#include <linux/cred.h>
 #include <linux/pagemap.h>
 #include <linux/namei.h>
 #include <linux/backing-dev.h>
 #include <linux/capability.h>
 #include <linux/errno.h>
-#include <linux/sched.h>
 #include "sysfs.h"
 
 extern struct super_block * sysfs_sb;
fs/sysv/ialloc.c +1 -1
@@ -18,7 +18,7 @@
  *
  *  This file contains code for allocating/freeing inodes.
  */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/stddef.h>
 #include <linux/sched.h>
fs/ubifs/budget.c +1 -0
@@ -31,6 +31,7 @@
  */
 
 #include "ubifs.h"
+#include <linux/cred.h>
 #include <linux/writeback.h>
 #include <linux/math64.h>
 
fs/ubifs/dir.c +1 -0
@@ -41,6 +41,7 @@
  */
 
 #include "ubifs.h"
+#include <linux/cred.h>
 
 /**
  * inherit_flags - inherit flags of the parent inode.
fs/ubifs/file.c +1 -0
@@ -52,6 +52,7 @@
  */
 
 #include "ubifs.h"
+#include <linux/cred.h>
 #include <linux/mount.h>
 #include <linux/namei.h>
 
fs/ubifs/ioctl.c +1 -0
@@ -25,6 +25,7 @@
 /* This file implements EXT2-compatible extended attribute ioctl() calls */
 
 #include <linux/compat.h>
+#include <linux/cred.h>
 #include <linux/smp_lock.h>
 #include <linux/mount.h>
 #include "ubifs.h"
fs/udf/ialloc.c +1 -0
@@ -19,6 +19,7 @@
  */
 
 #include "udfdecl.h"
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/quotaops.h>
 #include <linux/sched.h>
fs/udf/namei.c +1 -0
@@ -23,6 +23,7 @@
 
 #include "udf_i.h"
 #include "udf_sb.h"
+#include <linux/cred.h>
 #include <linux/string.h>
 #include <linux/errno.h>
 #include <linux/mm.h>
fs/ufs/ialloc.c +1 -1
@@ -22,7 +22,7 @@
  * UFS2 write support added by
  * Evgeniy Dushistov <[email protected]>, 2007
  */
-
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/time.h>
 #include <linux/stat.h>
fs/utimes.c +1 -0
@@ -1,4 +1,5 @@
 #include <linux/compiler.h>
+#include <linux/cred.h>
 #include <linux/file.h>
 #include <linux/fs.h>
 #include <linux/linkage.h>
fs/xfs/linux-2.6/xfs_cred.h +1 -1
@@ -18,7 +18,7 @@
 #ifndef __XFS_CRED_H__
 #define __XFS_CRED_H__
 
-#include <linux/capability.h>
+#include <linux/cred.h>
 
 /*
  * Credentials
include/linux/cred.h +55 -1

70 lines not on this page · raw message

include/linux/sched.h +2 -61

97 lines not on this page · raw message

include/linux/security.h +1 -0
@@ -22,6 +22,7 @@
 #ifndef __LINUX_SECURITY_H
 #define __LINUX_SECURITY_H
 
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/binfmts.h>
 #include <linux/signal.h>
kernel/cgroup.c +1 -0
@@ -23,6 +23,7 @@
  */
 
 #include <linux/cgroup.h>
+#include <linux/cred.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/kernel.h>
kernel/futex.c +1 -0
@@ -40,6 +40,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
+#include <linux/cred.h>
 #include <linux/slab.h>
 #include <linux/poll.h>
 #include <linux/fs.h>
kernel/futex_compat.c +2 -1
@@ -5,7 +5,8 @@
  *
  * Copyright 2006, Red Hat, Inc., Ingo Molnar
  */
-
+#include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/linkage.h>
 #include <linux/compat.h>
 #include <linux/nsproxy.h>
kernel/ksysfs.c +1 -2
@@ -7,7 +7,7 @@
  * This file is release under the GPLv2
  *
  */
-
+#include <linux/cred.h>
 #include <linux/kobject.h>
 #include <linux/string.h>
 #include <linux/sysfs.h>
@@ -15,7 +15,6 @@
 #include <linux/init.h>
 #include <linux/kexec.h>
 #include <linux/profile.h>
-#include <linux/sched.h>
 
 #define KERNEL_ATTR_RO(_name) \
 static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
kernel/timer.c +1 -1
@@ -18,7 +18,7 @@
  *                              Copyright (C) 2000, 2001, 2002  Ingo Molnar
  *              Designed by David S. Miller, Alexey Kuznetsov and Ingo Molnar
  */
-
+#include <linux/cred.h>
 #include <linux/kernel_stat.h>
 #include <linux/module.h>
 #include <linux/interrupt.h>
kernel/trace/trace.c +1 -0
@@ -32,6 +32,7 @@
 #include <linux/kdebug.h>
 #include <linux/string.h>
 #include <linux/ctype.h>
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/poll.h>
 #include <linux/gfp.h>
kernel/tsacct.c +1 -1
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  */
-
+#include <linux/cred.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/tsacct_kern.h>
kernel/user.c +1 -1
@@ -7,7 +7,7 @@
  * processes, files etc the user has claimed, in order to be
  * able to have per-user limits for system resources. 
  */
-
+#include <linux/cred.h>
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
mm/mlock.c +1 -0
@@ -6,6 +6,7 @@
  */
 
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/mman.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
net/9p/client.c +1 -1
@@ -22,7 +22,7 @@
  *  Boston, MA  02111-1301  USA
  *
  */
-
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
net/sunrpc/auth.c +1 -1
@@ -5,7 +5,7 @@
  *
  * Copyright (C) 1996, Olaf Kirch <[email protected]>
  */
-
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/sched.h>
 #include <linux/module.h>
net/sunrpc/auth_generic.c +1 -2
@@ -3,11 +3,10 @@
  *
  * Copyright (C) 2008, Trond Myklebust <[email protected]>
  */
-
+#include <linux/cred.h>
 #include <linux/err.h>
 #include <linux/types.h>
 #include <linux/module.h>
-#include <linux/sched.h>
 #include <linux/sunrpc/auth.h>
 #include <linux/sunrpc/clnt.h>
 #include <linux/sunrpc/debug.h>
net/sunrpc/auth_gss/svcauth_gss.c +1 -1
@@ -36,7 +36,7 @@
  *   mechanism specific information, such as a key
  *
  */
-
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/pagemap.h>
net/sunrpc/auth_unix.c +1 -2
@@ -5,9 +5,8 @@
  *
  * Copyright (C) 1996, Olaf Kirch <[email protected]>
  */
-
+#include <linux/cred.h>
 #include <linux/types.h>
-#include <linux/sched.h>
 #include <linux/module.h>
 #include <linux/sunrpc/clnt.h>
 #include <linux/sunrpc/auth.h>
security/keys/internal.h +1 -0
@@ -12,6 +12,7 @@
 #ifndef _INTERNAL_H
 #define _INTERNAL_H
 
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include <linux/key-type.h>
 
security/selinux/exports.c +1 -0
@@ -11,6 +11,7 @@
  * it under the terms of the GNU General Public License version 2,
  * as published by the Free Software Foundation.
  */
+#include <linux/cred.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
security/tomoyo/tomoyo.h +2 -0
@@ -12,6 +12,8 @@
 #ifndef _SECURITY_TOMOYO_TOMOYO_H
 #define _SECURITY_TOMOYO_TOMOYO_H
 
+#include <linux/cred.h>
+
 struct tomoyo_path_info;
 struct path;
 struct inode;
maintainer
#1 lore raw
Quoted 1 line · Alexey Dobriyan

struct user_struct and functions which work with it do not belong to sched.h

Is it also worth extracting the user and capabilities management stuff from kernel/ and sticking it in security/ so that all the security related stuff is in one place? Not necessarily in this patch, though...

David

maintainer
#2 lore raw
In reply to Alexey Dobriyan
Quoted 10 lines · On Tue, 26 May 2009 15:59:53 +0400 Alexey Dobriyan <[email protected]> wrote:

struct user_struct and functions which work with it do not belong to sched.h Remove cred.h inclusion from sched.h
Add necessary headers where needed (cred.h, capability.h)

As result sched.h inclusion results in something like -6% stuff after preprocessing.

...

 140 files changed, 197 insertions(+), 156 deletions(-)

Someone's going to need to make all this apply to and work with the appropriate kernel tree (and that's linux-next, not 2.6.30-rc7).

That person could be me, but I have a weeks worth of catchup to do here.