[PATCH] crypto: inside-secure - fix unexported warnings

2019-10-16 Thread Ben Dooks (Codethink)
The safexcel_pci_remove, pcireg_rc and ofreg_rc are not exported or declared externally so make them static. This avoids the following sparse warnings: drivers/crypto/inside-secure/safexcel.c:1760:6: warning: symbol 'safexcel_pci_remove' was not declared. Should it be static? drivers/crypto/insi

[PATCH] crypto: inside-secure - fix type of buffer in eip197_write_firmware

2019-10-16 Thread Ben Dooks (Codethink)
In eip197_write_firmware() the firmware buffer is sent using writel(be32_to_cpu(),,,) this produces a number of warnings. Note, should this really be cpu_to_be32() ? drivers/crypto/inside-secure/safexcel.c:306:17: warning: cast to restricted __be32 drivers/crypto/inside-secure/safexcel.c:306:17

[PATCH] crypto: atmel - fix data types for __be{32,64}

2019-10-16 Thread Ben Dooks (Codethink)
The driver uses a couple of buffers that seem to be __be32 or __be64 fields, but declares them as u32. This means there are a number of warnings from sparse due to casting to/from __beXXX. Fix these by changing the types of the buffer and the associated variables. drivers/crypto/atmel-aes.c:1023: