1. 17 1月, 2008 4 次提交
    • S
      [POWERPC] therm_adt746x: Eliminate some build warnings · 10804f0f
      Stephen Rothwell 提交于
      We don't care if the device_create_file calls fail, the driver will work
      just as well without them, so just issue a runtime warning.
      
      drivers/macintosh/therm_adt746x.c: In function 'thermostat_init':
      drivers/macintosh/therm_adt746x.c:615: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:616: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:617: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:618: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:619: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:620: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:621: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:622: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:623: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_adt746x.c:625: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      10804f0f
    • S
      [POWERPC] therm_windtunnel: Eliminate some build warnings · 98894dff
      Stephen Rothwell 提交于
      We don't care if the device_create_file calls fail, the driver will work
      just as well without them, so just issue a runtime warning.
      
      drivers/macintosh/therm_windtunnel.c: In function 'setup_hardware':
      drivers/macintosh/therm_windtunnel.c:268: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_windtunnel.c:269: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      98894dff
    • S
      [POWERPC] therm_pm72: Suppress some compile warnings · 97759e49
      Stephen Rothwell 提交于
      We don't really care if any of these calls to device_create_file fails,
      so just issue warnings in that case.
      
      drivers/macintosh/therm_pm72.c: In function 'init_cpu_state':
      drivers/macintosh/therm_pm72.c:1185: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1186: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1187: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1188: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1189: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1191: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1192: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1193: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1194: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1195: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c: In function 'init_backside_state':
      drivers/macintosh/therm_pm72.c:1383: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1384: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c: In function 'init_drives_state':
      drivers/macintosh/therm_pm72.c:1503: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1504: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c: In function 'init_dimms_state':
      drivers/macintosh/therm_pm72.c:1625: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c: In function 'init_slots_state':
      drivers/macintosh/therm_pm72.c:1743: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      drivers/macintosh/therm_pm72.c:1744: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      97759e49
    • G
      [POWERPC] Add of_find_matching_node() helper function · 283029d1
      Grant Likely 提交于
      Similar to of_find_compatible_node(), of_find_matching_node() and
      for_each_matching_node() allow you to iterate over the device tree
      looking for specific nodes, except that they take of_device_id
      tables instead of strings.
      
      This also moves of_match_node() from driver/of/device.c to
      driver/of/base.c to colocate it with the of_find_matching_node which
      depends on it.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      283029d1
  2. 09 1月, 2008 1 次提交
  3. 21 12月, 2007 8 次提交
    • B
      [POWERPC] Fix for via-pmu based backlight control · 0094f2cd
      Benjamin Herrenschmidt 提交于
      This fixes a few issues with via-pmu based backlight control.
      
      First, it fixes a sign problem with the setup of the backlight
      curve since the `range' value there -can- (and will) go negative.
      
      Then, it reworks the interaction between this and the via-pmu sleep
      code to properly restore backlight on wakeup from sleep.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      0094f2cd
    • S
      [POWERPC] Implement arch disable/enable irq hooks. · 7ac5dde9
      Scott Wood 提交于
      These hooks ensure that a decrementer interrupt is not pending when
      suspending; otherwise, problems may occur on 6xx/7xx/7xxx-based
      systems (except for powermacs, which use a separate suspend path).
      For example, with deep sleep on the 831x, a pending decrementer will
      cause a system freeze because the SoC thinks the decrementer interrupt
      would have woken the system, but the core must have interrupts
      disabled due to the setup required for deep sleep.
      
      Changed via-pmu.c to use the new ppc_md hooks, and made the arch_*
      functions call the generic_* functions unconditionally.  -- paulus
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      7ac5dde9
    • M
      dm crypt: use bio_add_page · 91e10625
      Milan Broz 提交于
      Fix possible max_phys_segments violation in cloned dm-crypt bio.
      
      In write operation dm-crypt needs to allocate new bio request
      and run crypto operation on this clone. Cloned request has always
      the same size, but number of physical segments can be increased
      and violate max_phys_segments restriction.
      
      This can lead to data corruption and serious hardware malfunction.
      This was observed when using XFS over dm-crypt and at least
      two HBA controller drivers (arcmsr, cciss) recently.
      
      Fix it by using bio_add_page() call (which tests for other
      restrictions too) instead of constructing own biovec.
      
      All versions of dm-crypt are affected by this bug.
      
      Cc: stable@kernel.org
      Cc:  dm-crypt@saout.de
      Signed-off-by: NMilan Broz <mbroz@redhat.com>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      91e10625
    • N
      dm: merge max_hw_sector · 91212507
      Neil Brown 提交于
      Make sure dm honours max_hw_sectors of underlying devices
      
        We still have no firm testing evidence in support of this patch but
        believe it may help to resolve some bug reports.  - agk
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      91212507
    • A
      dm: trigger change uevent on rename · 69267a30
      Alasdair G Kergon 提交于
      Insert a missing KOBJ_CHANGE notification when a device is renamed.
      
      Cc: Scott James Remnant <scott@ubuntu.com>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      69267a30
    • M
      dm crypt: fix write endio · adfe4770
      Milan Broz 提交于
      Fix BIO_UPTODATE test for write io.
      
      Cc: stable@kernel.org
      Cc: dm-crypt@saout.de
      Signed-off-by: NMilan Broz <mbroz@redhat.com>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      adfe4770
    • P
      dm mpath: hp requires scsi · d1622e89
      Paul Mundt 提交于
      With CONFIG_SCSI=n __scsi_print_sense() is never linked in.
      
      drivers/built-in.o: In function `hp_sw_end_io':
      dm-mpath-hp-sw.c:(.text+0x914f8): undefined reference to `__scsi_print_sense'
      
      Caught with a randconfig on current git.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      d1622e89
    • J
      dm: table detect io beyond device · 512875bd
      Jun'ichi Nomura 提交于
      This patch fixes a panic on shrinking a DM device if there is
      outstanding I/O to the part of the device that is being removed.
      (Normally this doesn't happen - a filesystem would be resized first,
      for example.)
      
      The bug is that __clone_and_map() assumes dm_table_find_target()
      always returns a valid pointer.  It may fail if a bio arrives from the
      block layer but its target sector is no longer included in the DM
      btree.
      
      This patch appends an empty entry to table->targets[] which will
      be returned by a lookup beyond the end of the device.
      
      After calling dm_table_find_target(), __clone_and_map() and target_message()
      check for this condition using
      dm_target_is_valid().
      
      Sample test script to trigger oops:
      512875bd
  4. 20 12月, 2007 4 次提交
  5. 19 12月, 2007 14 次提交
  6. 18 12月, 2007 9 次提交
新手
引导
客服 返回
顶部