Skip to content
  1. Jun 15, 2018
  2. Jun 14, 2018
    • Arnd Bergmann's avatar
      pstore: Remove bogus format string definition · e264abea
      Arnd Bergmann authored
      The pstore conversion to timespec64 introduces its own method of passing
      seconds into sscanf() and sprintf() type functions to work around the
      timespec64 definition on 64-bit systems that redefine it to 'timespec'.
      
      That hack is now finally getting removed, but that means we get a (harmless)
      warning once both patches are merged:
      
      fs/pstore/ram.c: In function 'ramoops_read_kmsg_hdr':
      fs/pstore/ram.c:39:29: error: format '%ld' expects argument of type 'long int *', but argument 3 has type 'time64_t *' {aka 'long long int *'} [-Werror=format=]
       #define RAMOOPS_KERNMSG_HDR "===="
                                   ^~~~~~
      fs/pstore/ram.c:167:21: note: in expansion of macro 'RAMOOPS_KERNMSG_HDR'
      
      This removes the pstore specific workaround and uses the same method that
      we have in place for all other functions that print a timespec64.
      
      Related to this, I found that the kasprintf() output contains an incorrect
      nanosecond values for any number starting with zeroes, and I ada...
      e264abea
    • Arnd Bergmann's avatar
      Merge branch 'vfs_timespec64' of https://github.com/deepa-hub/vfs into vfs-timespec64 · 15eefe2a
      Arnd Bergmann authored
      
      
      Pull the timespec64 conversion from Deepa Dinamani:
       "The series aims to switch vfs timestamps to use
        struct timespec64. Currently vfs uses struct timespec,
        which is not y2038 safe.
      
        The flag patch applies cleanly. I've not seen the timestamps
        update logic change often. The series applies cleanly on 4.17-rc6
        and linux-next tip (top commit: next-20180517).
      
        I'm not sure how to merge this kind of a series with a flag patch.
        We are targeting 4.18 for this.
        Let me know if you have other suggestions.
      
        The series involves the following:
        1. Add vfs helper functions for supporting struct timepec64 timestamps.
        2. Cast prints of vfs timestamps to avoid warnings after the switch.
        3. Simplify code using vfs timestamps so that the actual
           replacement becomes easy.
        4. Convert vfs timestamps to use struct timespec64 using a script.
           This is a flag day patch.
      
        I've tried to keep the conversions with the script simple, to
        aid in the reviews. I've kept all the internal filesystem data
        structures and function signatures the same.
      
        Next steps:
        1. Convert APIs that can handle timespec64, instead of converting
           timestamps at the boundaries.
        2. Update internal data structures to avoid timestamp conversions."
      
      I've pulled it into a branch based on top of the NFS changes that
      are now in mainline, so I could resolve the non-obvious conflict
      between the two while merging.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      15eefe2a
    • Kenneth Feng's avatar
      drm/amd/powerplay: Set higher SCLK&MCLK frequency than dpm7 in OD (v2) · 5c16f36f
      Kenneth Feng authored
      
      
      Fix the issue that SCLK&MCLK can't be set higher than dpm7 when
      OD is enabled in SMU7.
      
      v2: fix warning (Alex)
      
      Signed-off-by: default avatarKenneth Feng <kenneth.feng@amd.com>
      Acked-by: default avatarRex <Zhu&lt;rezhu@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      5c16f36f
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 2837461d
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "This is a set of minor (and safe changes) that didn't make the initial
        pull request plus some bug fixes"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: qla2xxx: Mask off Scope bits in retry delay
        scsi: qla2xxx: Fix crash on qla2x00_mailbox_command
        scsi: aic7xxx: aic79xx: fix potential null pointer dereference on ahd
        scsi: mpt3sas: Add an I/O barrier
        scsi: qla2xxx: Fix setting lower transfer speed if GPSC fails
        scsi: hpsa: disable device during shutdown
        scsi: sd_zbc: Fix sd_zbc_check_zone_size() error path
        scsi: aacraid: remove bogus GFP_DMA32 specifies
      2837461d