1. 07 Jan, 2020 1 commit
    • Herbert Xu's avatar
      block: Allow t10-pi to be modular · a754bd5f
      Herbert Xu authored
      
      Currently t10-pi can only be built into the block layer which via
      crc-t10dif pulls in a whole chunk of the Crypto API.  In fact all
      users of t10-pi work as modules and there is no reason for it to
      always be built-in.
      
      This patch adds a new hidden option for t10-pi that is selected
      automatically based on BLK_DEV_INTEGRITY and whether the users
      of t10-pi are built-in or not.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      a754bd5f
  2. 07 Oct, 2019 1 commit
    • Bart Van Assche's avatar
      block: Fix three kernel-doc warnings · 98e54402
      Bart Van Assche authored
      Fix the following kernel-doc warnings:
      
      block/t10-pi.c:242: warning: Function parameter or member 'rq' not described in 't10_pi_type3_prepare'
      block/t10-pi.c:249: warning: Function parameter or member 'rq' not described in 't10_pi_type3_complete'
      block/t10-pi.c:249: warning: Function parameter or member 'nr_bytes' not described in 't10_pi_type3_complete'
      
      Cc: Max Gurtovoy <maxg@mellanox.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Ming Lei <ming.lei@redhat.com>
      Cc: Hannes Reinecke <hare@suse.com>
      Cc: Johannes Thumshirn <jthumshirn@suse.de>
      Fixes: 54d4e6ab
      
       ("block: centralize PI remapping logic to the block layer")
      Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      98e54402
  3. 23 Sep, 2019 1 commit
    • Max Gurtovoy's avatar
      block: t10-pi: fix -Wswitch warning · be21683e
      Max Gurtovoy authored
      
      Changing the switch() statement to symbolic constants made the compiler
      (at least clang-9, did not check gcc) notice that there is one enum value
      that is not handled here:
      
      block/t10-pi.c:62:11: error: enumeration value 'T10_PI_TYPE0_PROTECTION'
      not handled in switch [-Werror,-Wswitch]
      
      Add a BUG_ON statement if we ever get to t10_pi_verify function with
      TYPE0 and replace the switch() statement with if/else clause for the
      valid types.
      
      Fixes: 9b2061b1a262 ("block: use symbolic constants for t10_pi type")
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMax Gurtovoy <maxg@mellanox.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      be21683e
  4. 18 Sep, 2019 2 commits
  5. 30 Apr, 2019 1 commit
  6. 30 Jul, 2018 1 commit
  7. 03 Jul, 2017 1 commit
  8. 16 Jun, 2017 1 commit
  9. 09 Jun, 2017 1 commit
  10. 25 Mar, 2017 1 commit
  11. 21 Oct, 2015 1 commit
  12. 27 Sep, 2014 1 commit