msm: camera: common: changes to handle err in bazel build

Currently, the 'mm/slab.h' header is used to access a private kernel
structure. With Bazel, private headers are not available.
Refactor the code to avoid the use of the private header.

CRs-Fixed: 3535645
Change-Id: I3b442f0a7b2b70fbf638d3f505c47de88b14c5e6
Signed-off-by: Soumen Ghosh <quic_soumeng@quicinc.com>
This commit is contained in:
Soumen Ghosh
2023-08-03 16:50:00 -07:00
committed by Camera Software Integration
parent 9e0b27fa09
commit 24a496388f
4 changed files with 26 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/module.h>
#include <linux/build_bug.h>
@@ -61,7 +61,9 @@
#include "cam_csid_ppi100.h"
#include "camera_main.h"
#ifndef CAMERA_COMPILE_BY
#include "cam_generated_h"
#endif
char camera_banner[] = "Camera-Banner: (" CAMERA_COMPILE_BY "@"
CAMERA_COMPILE_HOST ") (" CAMERA_COMPILE_TIME ")";