1. 13 1月, 2015 38 次提交
  2. 12 1月, 2015 2 次提交
    • P
      csiostor:fix sparse warnings · 78890ed7
      Praveen Madhavan 提交于
      This patch fixes sparse warning reported by kbuild.
      Apply this on net-next since it depends on previous commit.
      
      drivers/scsi/csiostor/csio_hw.c:259:17: sparse: cast to restricted __le32
      drivers/scsi/csiostor/csio_hw.c:536:31: sparse: incorrect type in assignment
      (different base types)
      drivers/scsi/csiostor/csio_hw.c:536:31:    expected unsigned int [unsigned]
      [usertype] <noident>
      drivers/scsi/csiostor/csio_hw.c:536:31:    got restricted __be32 [usertype]
      <noident>
      >> drivers/scsi/csiostor/csio_hw.c:2012:5: sparse: symbol 'csio_hw_prep_fw' was
      not declared. Should it be static?
      Signed-off-by: NPraveen Madhavan <praveenm@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      78890ed7
    • W
      doc: fix the compile fix of txtimestamp.c · d3b4b261
      Willem de Bruijn 提交于
      A fix to ipv6 structure definitions removed the now superfluous
      definition of in6_pktinfo in this file.
      
      But, use of the glibc definition requires defining _GNU_SOURCE
      (see also https://sourceware.org/bugzilla/show_bug.cgi?id=6775).
      
      Before this change, the following would fail for me:
      
        make
        make headers_install
        make M=Documentation/networking/timestamping
      
      with
      
        Documentation/networking/timestamping/txtimestamp.c: In function '__recv_errmsg_cmsg':
        Documentation/networking/timestamping/txtimestamp.c:205:33: error: dereferencing pointer to incomplete type
        Documentation/networking/timestamping/txtimestamp.c:206:23: error: dereferencing pointer to incomplete type
      
      After this patch compilation succeeded.
      
      Fixes: cd91cc5b ("doc: fix the compile error of txtimestamp.c")
      Signed-off-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d3b4b261