media: atomisp: get rid of two unused functions
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 28 Oct 2021 09:24:09 +0000 (10:24 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:33 +0000 (08:11 +0000)
Those cause build to break with -Werror with clang-12:

drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c:121:24: error: unused function 'gdc_reg_load' [-Werror,-Wunused-function]
drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c:33:1: error: unused function 'sh_css_elems_bytes_from_info' [-Werror,-Wunused-function]

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c
drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c

index 8ed1cffc5384b9038ad9fe602c0b49adf9f3187a..25e082d6a94a10a65c7e733cf678ea8a838a3498 100644 (file)
@@ -28,10 +28,6 @@ static inline void gdc_reg_store(
     const unsigned int reg,
     const hrt_data             value);
 
-static inline hrt_data gdc_reg_load(
-    const gdc_ID_t             ID,
-    const unsigned int reg);
-
 #ifndef __INLINE_GDC__
 #include "gdc_private.h"
 #endif /* __INLINE_GDC__ */
@@ -117,10 +113,3 @@ static inline void gdc_reg_store(
        ia_css_device_store_uint32(GDC_BASE[ID] + reg * sizeof(hrt_data), value);
        return;
 }
-
-static inline hrt_data gdc_reg_load(
-    const gdc_ID_t             ID,
-    const unsigned int reg)
-{
-       return ia_css_device_load_uint32(GDC_BASE[ID] + reg * sizeof(hrt_data));
-}
index c505c94a7241390ca4105dac35bf4b390d72fe2b..f741beb9ed8a885026e5b31d870b116bcdabb854 100644 (file)
@@ -29,12 +29,6 @@ static const struct ia_css_raw_configuration default_config = {
        .pipe = (struct sh_css_sp_pipeline *)NULL,
 };
 
-static inline unsigned
-sh_css_elems_bytes_from_info(unsigned int raw_bit_depth)
-{
-       return CEIL_DIV(raw_bit_depth, 8);
-}
-
 /* MW: These areMIPI / ISYS properties, not camera function properties */
 static enum sh_stream_format
 css2isp_stream_format(enum atomisp_input_format from) {