1. 18 7月, 2007 1 次提交
  2. 17 7月, 2007 1 次提交
  3. 16 7月, 2007 2 次提交
  4. 10 7月, 2007 2 次提交
  5. 10 5月, 2007 1 次提交
  6. 07 3月, 2007 1 次提交
  7. 12 2月, 2007 1 次提交
    • J
      [PATCH] disable init/initramfs.c · c33df4ea
      Jean-Paul Saman 提交于
      The file init/initramfs.c is always compiled and linked in the kernel
      vmlinux even when BLK_DEV_RAM and BLK_DEV_INITRD are disabled and the
      system isn't using any form of an initramfs or initrd.  In this situation
      the code is only used to unpack a (static) default initial rootfilesystem.
      The current init/initramfs.c code.  usr/initramfs_data.o compiles to a size
      of ~15 kbytes.  Disabling BLK_DEV_RAM and BLK_DEV_INTRD shrinks the kernel
      code size with ~60 Kbytes.
      
      This patch avoids compiling in the code and data for initramfs support if
      CONFIG_BLK_DEV_INITRD is not defined.  Instead of the initramfs code and
      data it uses a small routine in init/noinitramfs.c to setup an initial
      static default environment for mounting a rootfilesystem later on in the
      kernel initialisation process.  The new code is: 164 bytes of size.
      
      The patch is separated in two parts:
      1) doesn't compile initramfs code when CONFIG_BLK_DEV_INITRD is not set
      2) changing all plaforms vmlinux.lds.S files to not reserve an area of
      PAGE_SIZE when CONFIG_BLK_DEV_INITRD is not set.
      
      [deweerdt@free.fr: warning fix]
      Signed-off-by: NJean-Paul Saman <jean-paul.saman@nxp.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NFrederik Deweerdt <frederik.deweerdt@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c33df4ea
  8. 14 12月, 2006 1 次提交
  9. 09 12月, 2006 1 次提交
  10. 08 12月, 2006 1 次提交
    • R
      [PATCH] CISS: require same SCSI module support · 3e29fe83
      Randy Dunlap 提交于
      Building CCISS SCSI tape support in-kernel when SCSI=m causes build errors,
      so require SCSI support to be =y or same as CCISS SCSI tape support.
      
        drivers/built-in.o: In function `cciss_remove_one':
        cciss.c:(.text+0x79d4c): undefined reference to `scsi_remove_host'
        cciss.c:(.text+0x79d55): undefined reference to `scsi_host_put'
        drivers/built-in.o: In function `cciss_update_non_disk_devices':
        cciss.c:(.text+0x7bb54): undefined reference to `scsi_device_type'
        cciss.c:(.text+0x7bcc8): undefined reference to `scsi_device_type'
        cciss.c:(.text+0x7be81): undefined reference to `scsi_device_type'
        cciss.c:(.text+0x7bf81): undefined reference to `scsi_device_type'
        drivers/built-in.o: In function `cciss_proc_write':
        cciss.c:(.text+0x7c175): undefined reference to `scsi_host_alloc'
        cciss.c:(.text+0x7c1ed): undefined reference to `scsi_add_host'
        cciss.c:(.text+0x7c1f9): undefined reference to `scsi_scan_host'
        cciss.c:(.text+0x7c206): undefined reference to `scsi_host_put'
        make: *** [.tmp_vmlinux1] Error 1
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Acked-by: NMike Miller <mike.miller@hp.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3e29fe83
  11. 07 12月, 2006 1 次提交
  12. 04 10月, 2006 2 次提交
  13. 01 10月, 2006 1 次提交
    • D
      [PATCH] BLOCK: Make it possible to disable the block layer [try #6] · 9361401e
      David Howells 提交于
      Make it possible to disable the block layer.  Not all embedded devices require
      it, some can make do with just JFFS2, NFS, ramfs, etc - none of which require
      the block layer to be present.
      
      This patch does the following:
      
       (*) Introduces CONFIG_BLOCK to disable the block layer, buffering and blockdev
           support.
      
       (*) Adds dependencies on CONFIG_BLOCK to any configuration item that controls
           an item that uses the block layer.  This includes:
      
           (*) Block I/O tracing.
      
           (*) Disk partition code.
      
           (*) All filesystems that are block based, eg: Ext3, ReiserFS, ISOFS.
      
           (*) The SCSI layer.  As far as I can tell, even SCSI chardevs use the
           	 block layer to do scheduling.  Some drivers that use SCSI facilities -
           	 such as USB storage - end up disabled indirectly from this.
      
           (*) Various block-based device drivers, such as IDE and the old CDROM
           	 drivers.
      
           (*) MTD blockdev handling and FTL.
      
           (*) JFFS - which uses set_bdev_super(), something it could avoid doing by
           	 taking a leaf out of JFFS2's book.
      
       (*) Makes most of the contents of linux/blkdev.h, linux/buffer_head.h and
           linux/elevator.h contingent on CONFIG_BLOCK being set.  sector_div() is,
           however, still used in places, and so is still available.
      
       (*) Also made contingent are the contents of linux/mpage.h, linux/genhd.h and
           parts of linux/fs.h.
      
       (*) Makes a number of files in fs/ contingent on CONFIG_BLOCK.
      
       (*) Makes mm/bounce.c (bounce buffering) contingent on CONFIG_BLOCK.
      
       (*) set_page_dirty() doesn't call __set_page_dirty_buffers() if CONFIG_BLOCK
           is not enabled.
      
       (*) fs/no-block.c is created to hold out-of-line stubs and things that are
           required when CONFIG_BLOCK is not set:
      
           (*) Default blockdev file operations (to give error ENODEV on opening).
      
       (*) Makes some /proc changes:
      
           (*) /proc/devices does not list any blockdevs.
      
           (*) /proc/diskstats and /proc/partitions are contingent on CONFIG_BLOCK.
      
       (*) Makes some compat ioctl handling contingent on CONFIG_BLOCK.
      
       (*) If CONFIG_BLOCK is not defined, makes sys_quotactl() return -ENODEV if
           given command other than Q_SYNC or if a special device is specified.
      
       (*) In init/do_mounts.c, no reference is made to the blockdev routines if
           CONFIG_BLOCK is not defined.  This does not prohibit NFS roots or JFFS2.
      
       (*) The bdflush, ioprio_set and ioprio_get syscalls can now be absent (return
           error ENOSYS by way of cond_syscall if so).
      
       (*) The seclvl_bd_claim() and seclvl_bd_release() security calls do nothing if
           CONFIG_BLOCK is not set, since they can't then happen.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      9361401e
  14. 15 7月, 2006 1 次提交
    • N
      [PATCH] ramdisk blocksize Kconfig entry · bef317e3
      Nathan Scott 提交于
      Make the ramdisk blocksize configurable at kernel compilation time rather
      than only at boot or module load time, like a couple of the other ramdisk
      options.  I found this handy awhile back but thought little of it, until
      recently asked by a few of the testing folks here to be able to do the same
      thing for their automated test setups.
      
      The Kconfig comment is largely lifted from comments in rd.c, and hopefully
      this will increase the chances of making folks aware that the default value
      often isn't a great choice here (for increasing values of PAGE_SIZE, even
      moreso).
      Signed-off-by: NNathan Scott <nathans@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bef317e3
  15. 23 6月, 2006 1 次提交
  16. 29 3月, 2006 1 次提交
  17. 27 3月, 2006 1 次提交
  18. 26 3月, 2006 1 次提交
    • Z
      [PATCH] BLK_DEV_INITRD: do not require BLK_DEV_RAM=y · 340e48e6
      Zdenek Pavlas 提交于
      Initramfs initrd images do not need a ramdisk device, so remove this
      restriction in Kconfig.  BLK_DEV_RAM=n saves about 13k on i386.  Also
      without ramdisk device there's no need for "dry run", so initramfs unpacks
      much faster.
      
      People using cramfs, squashfs, or gzipped ext2/minix initrd images are
      probably smart enough not to turn off ramdisk support by accident.
      
      Cc: Al Viro <viro@ftp.linux.org.uk>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      340e48e6
  19. 06 2月, 2006 2 次提交
  20. 07 1月, 2006 1 次提交
  21. 05 1月, 2006 1 次提交
  22. 04 11月, 2005 1 次提交
  23. 08 9月, 2005 1 次提交
    • V
      [PATCH] Kconfig fix (BLK_DEV_FD dependencies) · a08b6b79
      viro@ZenIV.linux.org.uk 提交于
      Sanitized and fixed floppy dependencies: split the messy dependencies for
      BLK_DEV_FD by introducing a new symbol (ARCH_MAY_HAVE_PC_FDC), making
      BLK_DEV_FD depend on that one and taking declarations of ARCH_MAY_HAVE_PC_FDC
      to arch/*/Kconfig.  While we are at it, fixed several obvious cases when
      BLK_DEV_FD should have been excluded (architectures lacking asm/floppy.h
      are *not* going to have floppy.c compile, let alone work).
      
      If you can come up with better name for that ("this architecture might
      have working PC-compatible floppy disk controller"), you are more than
      welcome - just s/ARCH_MAY_HAVE_PC_FDC/your_prefered_name/g in the patch
      below...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a08b6b79
  24. 05 9月, 2005 1 次提交
  25. 11 8月, 2005 1 次提交
  26. 04 5月, 2005 1 次提交
  27. 25 4月, 2005 1 次提交
  28. 17 4月, 2005 2 次提交