1. 04 Feb, 2004 40 commits
    • Andrew Morton's avatar
      [PATCH] EDD: read disk80 MBR signature, export through edd module · e100952f
      Andrew Morton authored
      From: Matt Domsch <Matt_Domsch@dell.com>
      
      
      There are 4 bytes in the MSDOS master boot record, at offset 0x1b8,
      which may contain a per-system-unique signature.  By first writing a unique
      signature to each disk in the system, then rebooting, and then reading the
      MBR to get the signature for the boot disk (int13 dev 80h), userspace may
      use it to compare against disks it knows as named /dev/[hs]d[a-z], and thus
      determine which disk is the BIOS boot disk, thus where the /boot, / and
      boot loaders should be placed.
      
      This is useful in the case where the BIOS is not EDD3.0 compliant, thus
      doesn't provide the PCI bus/dev/fn and IDE/SCSI location of the boot disk,
      yet you need to know which disk is the boot disk.  It's most useful in OS
      installers.
      
      This patch retrieves the signature from the disk in setup.S, stores it in a
      space reserved in the empty_zero_page, copies it somewhere safe in setup.c,
      and exports it via /sys/firmware/edd/int13_disk80/mbr_signature in edd.c.
      Code is covered under CONFIG_EDD=[ym].
      e100952f
    • Andrew Morton's avatar
      [PATCH] use __attribute_const__ everywhere · e086c192
      Andrew Morton authored
      From: Nikita Danilov <Nikita@Namesys.COM>
      
      Replace all existing usages of __attribute__((const)) with
      __attribute_const__.
      e086c192
    • Andrew Morton's avatar
      [PATCH] kconfig/wireless: Replace enable with select · 7b6b5e72
      Andrew Morton authored
      From: Sam Ravnborg <sam@ravnborg.org>
      
      'enable' is not documented in Documentation/kbuild/kconfig-language.txt So
      remove usage in the only Kconfig file in the kernel tree where it was used.
      7b6b5e72
    • Andrew Morton's avatar
      [PATCH] Kconfig: use select statements · a26fd06e
      Andrew Morton authored
      From: Sam Ravnborg <sam@ravnborg.org>
      
      - Use keyword select in relevant warning
      
      - Include more information in warnings related to select
      
      - Move part of error-checking to a sepearate function
      
      - Added helpers used when issuing warnings - makes code simpler
      
      - Wrapped most edited lines at column 80
      a26fd06e
    • Andrew Morton's avatar
      [PATCH] add readX_relaxed() interface · 50f33737
      Andrew Morton authored
      From: jbarnes@sgi.com (Jesse Barnes)
      
      Here's the patch to add the new _relaxed variants for PIO read accesses.
      It's been ack'd by gregkh and Grant Grundler, and I think it's ready to
      go.
      
      PCI ordering rules also guarantee that PIO read responses arrive after any
      outstanding DMA writes on that bus, since for some devices the result of a
      readb() call may signal to the driver that a DMA transaction is complete.  In
      many cases, however, the driver may want to indicate that the next readb()
      call has no relation to any previous DMA writes performed by the device.  The
      driver can use the readb_relaxed() for these cases, although only some
      platforms will honor the relaxed semantics.
      50f33737
    • Andrew Morton's avatar
      [PATCH] printk_ratelimit() tweaks · 9829f0a5
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      I made a few changes, basically the burst parameter is now in units of
      messages, makes much more sense than the old net ratelimit one.
      
      I also screwed up adding a sysctl_jiffies strategy for the burst parameter.
      9829f0a5
    • Andrew Morton's avatar
      [PATCH] i387: handle copy_from_user() error · a22c1627
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
            Eugene TEO <eugeneteo@eugeneteo.net>
      a22c1627
    • Andrew Morton's avatar
      [PATCH] bitmap parsing/printing routines, version 4 · 29d82b14
      Andrew Morton authored
      From: Joe Korty <joe.korty@ccur.com>
      
      1) the version in 2.6.1 is broken, doesn't work on 64bit big endian
         machines at all.  This needed fixing.  I thought it best to fix by
         rewriting the printer/parser with an algorithm that is naturally endian &
         sizeof(long) resistant.
      
      2) I wanted all digits to print, eg, 0000ffff,00000004 not ffff,4.
      
      3) I wanted exactly NR_CPUS bits to print (or whatever the bitmap size is
         in bits, and not have what is displayed rounded up to the nearest full
         byte, as the current version did.
      
      4) The bitmap printer and parser should be part of bitmap.[ch] with syntax
         and semantics to match.  The original lib/mask.c versions did not
         recognize this commonality.
      29d82b14
    • Andrew Morton's avatar
      [PATCH] x86-64 fixes for gcc 3.5 · bfff273c
      Andrew Morton authored
      From: Andi Kleen <ak@muc.de>
      
      Fix all the x86-64 warnings with gcc 3.5 and make it compile again.
      bfff273c
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: arch/i386/kernel/traps.c · 7767803d
      Andrew Morton authored
      	++nmi_count(cpu);
      
      arch/i386/kernel/traps.c: In function `do_nmi':
      arch/i386/kernel/traps.c:552: error: invalid lvalue in increment
      
      and
      
      include/linux/netdevice.h: In function `__netif_rx_schedule':
      include/linux/netdevice.h:818: error: invalid lvalue in assignment
      include/linux/netdevice.h: In function `netif_rx_reschedule':
      include/linux/netdevice.h:842: error: invalid lvalue in assignment
      
      
      This fix will probably reintroduce unused variable warnings...
      7767803d
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/video/vgastate.c · 86a98bf5
      Andrew Morton authored
      drivers/video/vgastate.c: In function `save_vga':
      drivers/video/vgastate.c:368: error: invalid lvalue in assignment
      86a98bf5
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/video/cfbimgblt.c · 20b3efb7
      Andrew Morton authored
      drivers/video/cfbimgblt.c: In function `color_imageblit':
      drivers/video/cfbimgblt.c:140: error: invalid lvalue in assignment
      drivers/video/cfbimgblt.c: In function `slow_imageblit':
      drivers/video/cfbimgblt.c:206: error: invalid lvalue in assignment
      20b3efb7
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/video/riva/fbdev.c · 70e1ecf4
      Andrew Morton authored
      drivers/video/riva/fbdev.c: In function `rivafb_load_cursor_image':
      drivers/video/riva/fbdev.c:498: error: invalid lvalue in increment
      drivers/video/riva/fbdev.c:499: error: invalid lvalue in increment
      drivers/video/riva/fbdev.c: In function `rivafb_imageblit':
      drivers/video/riva/fbdev.c:1440: error: invalid lvalue in increment
      drivers/video/riva/fbdev.c:1449: error: invalid lvalue in increment
      70e1ecf4
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: fbcon.c · a19e6c6b
      Andrew Morton authored
      drivers/video/console/fbcon.c: In function `fbcon_set_font':
      drivers/video/console/fbcon.c:2000: error: invalid lvalue in decrement
      a19e6c6b
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: gdth.c · ecf86065
      Andrew Morton authored
      drivers/scsi/gdth.c:267:10: warning: extra tokens at end of #ident directive
      ecf86065
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: atp870u.c · e4f7feb4
      Andrew Morton authored
      drivers/scsi/atp870u.c: In function `send_s870':                                drivers/scsi/atp870u.c:706: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:707: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:708: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:713: error: invalid lvalue in assignment                 drivers/scsi/atp870u.c:714: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:715: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:718: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:727: error: invalid lvalue in assignment                 drivers/scsi/atp870u.c:728: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:729: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:734: error: invalid lvalue in assignment                 drivers/scsi/atp870u.c:735: error: invalid lvalue in assignment
      drivers/scsi/atp870u.c:736: error: invalid lvalue in assignment
      e4f7feb4
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: advansys.c · e5432133
      Andrew Morton authored
      drivers/scsi/advansys.c: In function `advansys_reset':
      drivers/scsi/advansys.c:6022: error: invalid lvalue in assignment
      drivers/scsi/advansys.c:6045: error: invalid lvalue in assignment
      drivers/scsi/advansys.c: In function `advansys_interrupt':
      drivers/scsi/advansys.c:6314: error: invalid lvalue in assignment
      drivers/scsi/advansys.c: In function `asc_scsi_done_list':
      drivers/scsi/advansys.c:6386: error: invalid lvalue in assignment
      drivers/scsi/advansys.c: In function `asc_enqueue':
      drivers/scsi/advansys.c:7437: error: invalid lvalue in assignment
      drivers/scsi/advansys.c:7445: error: invalid lvalue in assignment
      drivers/scsi/advansys.c:7448: error: invalid lvalue in assignment
      drivers/scsi/advansys.c: In function `asc_dequeue_list':
      drivers/scsi/advansys.c:7569: error: invalid lvalue in assignment
      drivers/scsi/advansys.c: In function `asc_rmqueue':
      drivers/scsi/advansys.c:7647: error: invalid lvalue in assignment
      drivers/scsi/advansys.c:7648: error: invalid lvalue in assignment
      e5432133
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/scsi/53c700 · 20571fef
      Andrew Morton authored
      In file included from drivers/scsi/53c700.c:140:
      drivers/scsi/53c700.h: In function `NCR_700_set_SXFER':
      drivers/scsi/53c700.h:106: error: invalid lvalue in assignment
      drivers/scsi/53c700.h:107: error: invalid lvalue in assignment
      drivers/scsi/53c700.h: In function `NCR_700_set_depth':
      drivers/scsi/53c700.h:116: error: invalid lvalue in assignment
      drivers/scsi/53c700.h:117: error: invalid lvalue in assignment
      drivers/scsi/53c700.h: In function `NCR_700_set_flag':
      drivers/scsi/53c700.h:137: error: invalid lvalue in assignment
      drivers/scsi/53c700.h: In function `NCR_700_clear_flag':
      drivers/scsi/53c700.h:142: error: invalid lvalue in assignment
      20571fef
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: pnpbios · 42828d8d
      Andrew Morton authored
      drivers/pnp/pnpbios/core.c:438: warning: use of cast expressions as lvalues is deprecated
      42828d8d
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: video · 64919e2d
      Andrew Morton authored
      drivers/media/video/mxb.c: In function `mxb_probe':
      drivers/media/video/mxb.c:264: error: invalid lvalue in assignment
      64919e2d
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: PCMCIA · db623a6b
      Andrew Morton authored
      include/pcmcia/mem_op.h: In function `copy_from_pc':
      include/pcmcia/mem_op.h:85: error: invalid lvalue in assignment
      include/pcmcia/mem_op.h:85: error: invalid lvalue in assignment
      include/pcmcia/mem_op.h: In function `copy_to_pc':
      include/pcmcia/mem_op.h:97: error: invalid lvalue in assignment
      include/pcmcia/mem_op.h:97: error: invalid lvalue in assignment
      include/pcmcia/mem_op.h: In function `copy_pc_to_user':
      include/pcmcia/mem_op.h:109: error: invalid lvalue in assignment
      include/pcmcia/mem_op.h:109: error: invalid lvalue in assignment
      include/pcmcia/mem_op.h: In function `copy_user_to_pc':
      include/pcmcia/mem_op.h:124: error: invalid lvalue in assignment
      include/pcmcia/mem_op.h:124: error: invalid lvalue in assignment
      db623a6b
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: DVB · 14bfca03
      Andrew Morton authored
      drivers/media/dvb/frontends/ves1820.c: In function `ves1820_setup_reg0':
      drivers/media/dvb/frontends/ves1820.c:244: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:244: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c: In function `ves1820_attach':
      drivers/media/dvb/frontends/ves1820.c:541: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:541: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:544: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:544: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:545: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:545: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:546: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:546: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:547: error: invalid lvalue in assignment
      drivers/media/dvb/frontends/ves1820.c:547: error: invalid lvalue in assignment
      14bfca03
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: mtd · 8c6d5497
      Andrew Morton authored
      drivers/mtd/chips/cfi_cmdset_0020.c:545: error: invalid lvalue in increment
      drivers/mtd/chips/cfi_cmdset_0020.c:547: error: invalid lvalue in increment
      drivers/mtd/chips/cfi_cmdset_0020.c:549: error: invalid lvalue in increment
      8c6d5497
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: raid6 · 389092fb
      Andrew Morton authored
      drivers/md/raid6x86.h:1:10: warning: extra tokens at end of #ident directive
      389092fb
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/ide/pci/sc1200.c · a201ecdf
      Andrew Morton authored
      drivers/ide/pci/sc1200.c: In function `sc1200_suspend':
      drivers/ide/pci/sc1200.c:423: error: invalid lvalue in assignment
      a201ecdf
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: radeon · 3a4a61e2
      Andrew Morton authored
      drivers/char/drm/radeon_state.c: In function `radeon_cp_dispatch_texture':
      drivers/char/drm/radeon_state.c:1411: error: invalid lvalue in assignment
      3a4a61e2
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/i2c/chips/it87.c · 927b9ea4
      Andrew Morton authored
      drivers/i2c/chips/it87.c:130: warning: conflicting types for built-in function 'log2'
      927b9ea4
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: net/atm/common.c · 6c113729
      Andrew Morton authored
      net/atm/common.c: In function `vcc_create':
      net/atm/common.c:151: error: invalid lvalue in assignment
      6c113729
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/atm/he.c · 714b5c04
      Andrew Morton authored
      drivers/atm/he.c: In function `he_init_one':
      drivers/atm/he.c:383: error: invalid lvalue in assignment
      drivers/atm/he.c: In function `he_open':
      drivers/atm/he.c:2364: error: invalid lvalue in assignment
      714b5c04
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/atm/idt77105.c · 045d808b
      Andrew Morton authored
      drivers/atm/idt77105.c: In function `idt77105_start':
      drivers/atm/idt77105.c:268: error: invalid lvalue in assignment
      drivers/atm/idt77105.c: In function `idt77105_stop':
      drivers/atm/idt77105.c:346: error: invalid lvalue in assignment
      045d808b
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/atm/eni.c · 1582e227
      Andrew Morton authored
      drivers/atm/eni.c: In function `eni_close':
      drivers/atm/eni.c:1878: error: invalid lvalue in assignment
      drivers/atm/eni.c: In function `eni_open':
      drivers/atm/eni.c:1894: error: invalid lvalue in assignment
      drivers/atm/eni.c:1905: error: invalid lvalue in assignment
      drivers/atm/eni.c: In function `eni_init_one':
      drivers/atm/eni.c:2233: error: invalid lvalue in assignment
      1582e227
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: ncpfs · c07b8dc7
      Andrew Morton authored
      fs/ncpfs/ncplib_kernel.h:164: sorry, unimplemented: inlining failed in call to 'ncp_strnicmp': function body not available
      c07b8dc7
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/atm/fore200e.c · 75e8d989
      Andrew Morton authored
      drivers/atm/fore200e.c: In function `fore200e_open':
      drivers/atm/fore200e.c:1420: error: invalid lvalue in assignment
      drivers/atm/fore200e.c: In function `fore200e_register':
      drivers/atm/fore200e.c:2485: error: invalid lvalue in assignment
      75e8d989
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: suni.c · c6498c4a
      Andrew Morton authored
      drivers/atm/suni.c: In function `suni_start':
      drivers/atm/suni.c:233: error: invalid lvalue in assignment
      c6498c4a
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: iphase.c · 51d2aa6e
      Andrew Morton authored
      drivers/atm/iphase.c: In function `open_tx':
      drivers/atm/iphase.c:1757: error: invalid lvalue in assignment
      drivers/atm/iphase.c: In function `ia_close':
      drivers/atm/iphase.c:2674: error: invalid lvalue in assignment
      drivers/atm/iphase.c: In function `ia_open':
      drivers/atm/iphase.c:2687: error: invalid lvalue in assignment
      drivers/atm/iphase.c:2703: error: invalid lvalue in assignment
      drivers/atm/iphase.c: In function `ia_init_one':
      drivers/atm/iphase.c:3199: error: invalid lvalue in assignment
      51d2aa6e
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: intermezzo · af953c94
      Andrew Morton authored
      fs/intermezzo/dir.c: In function `presto_prep':
      fs/intermezzo/intermezzo_fs.h:414: sorry, unimplemented: inlining failed in call to 'presto_is_read_only': function body not available
      
      fs/intermezzo/presto.c: In function `izo_mark_cache':
      fs/intermezzo/presto.c:341: error: invalid lvalue in assignment
      fs/intermezzo/presto.c:342: error: invalid lvalue in assignment
      af953c94
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: drivers/atm/uPD98402.c · 5f12c733
      Andrew Morton authored
      drivers/atm/uPD98402.c: In function `uPD98402_start':
      drivers/atm/uPD98402.c:214: error: invalid lvalue in assignment
      5f12c733
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: hfs fixes · b8d9ea1d
      Andrew Morton authored
      fs/hfs/file_hdr.c: In function `dup_layout':
      fs/hfs/file_hdr.c:246: error: invalid lvalue in assignment
      b8d9ea1d
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: vxfs fixes · 40876b4b
      Andrew Morton authored
      fs/freevxfs/vxfs.h:33:10: warning: extra tokens at end of #ident directive
      fs/freevxfs/vxfs_extern.h:75: sorry, unimplemented: inlining failed in call to 'vxfs_put_page': function body not available
      40876b4b
    • Andrew Morton's avatar
      [PATCH] gcc-3.5: zatm.c fix · e7966cf3
      Andrew Morton authored
      drivers/atm/zatm.c: In function `zatm_close':
      drivers/atm/zatm.c:1371: error: invalid lvalue in assignment
      drivers/atm/zatm.c: In function `zatm_open':
      drivers/atm/zatm.c:1386: error: invalid lvalue in assignment
      drivers/atm/zatm.c:1398: error: invalid lvalue in assignment
      drivers/atm/zatm.c: In function `zatm_module_init':
      drivers/atm/zatm.c:1600: error: invalid lvalue in assignment
      e7966cf3