secure-kernel: Add support for 5.15 kernel

Add following changes.

Fix switch case
  latest compiler throwing error where CASE statement does
  not have break or return under all the execution paths.

Rename size_add to size_add_
  There is a name collision between this one and one coming from
  overflow.h. Hence renaming it.

Modify IRQ handling for qce50 module

Change PDE_DATA to pde_data

Signed-off-by: Smita Ghosh <quic_smitag@quicinc.com>

Change-Id: I4226fb41df12273b45d2e114f1aad2709dc36eb7
Signed-off-by: Smita Ghosh <quic_smitag@quicinc.com>
This commit is contained in:
Smita Ghosh
2022-10-05 20:40:18 -07:00
committed by Gerrit - the friendly Code Review server
parent 8a7364d25d
commit 0f28e48cbc
6 changed files with 21 additions and 14 deletions

View File

@@ -2256,7 +2256,7 @@ long qcedev_ioctl(struct file *file,
err = -ENOTTY;
goto exit_free_qcedev_areq;
}
/* Fall-through */
fallthrough;
case QCEDEV_IOCTL_SHA_UPDATE_REQ:
{
struct scatterlist sg_src;
@@ -2842,6 +2842,6 @@ static void qcedev_exit(void)
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("QTI DEV Crypto driver");
MODULE_IMPORT_NS(DMA_BUF);
module_init(qcedev_init);
module_exit(qcedev_exit);