Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1374967pxb; Thu, 28 Oct 2021 02:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyelD1zXkNCqsc6dhAgoR+ug4aI2q403re1+oKN32za2AH6YNtrznLBTaYprvKCgjOMHcAK X-Received: by 2002:aa7:de12:: with SMTP id h18mr4606509edv.109.1635413257598; Thu, 28 Oct 2021 02:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635413257; cv=none; d=google.com; s=arc-20160816; b=dcButJsapDmMZwx/Aj820i+fjaZlRdeSQItiNIHO8ASGTPk9mmRIRK6LzsUCfNES5H fuLo8SSJ7q3lko8A/J7t4CrvbwDdlHJ5abUAbVnC5SKlm3xvEQ7h92dDAEeBuN9jGxxv xPqpmS4QHpgHK7yFKZXMrgPKxRPJxxaDLQxcTrGRZS+rOlLF/ZRihqYzG8p9EHde16tI +ThN3ug+SkfmAEJSyqjGMaTOyQXMNJheTkX+H72AwbKixIvT4Er0UnYTvu7HLEMrBosm 5FSNLQyedEo5XpUrhfQAzK3+spHNvjU6kLBJQAjB1fKFOTKHMfEILXA2uXh70iooiYWS 77Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=aU6leubtXWTDGBDAz6txj53/WiLh/2aCL4d6bQAl2K4=; b=FR15IAVvyixtRw1u+gLUCwsk3i7/BOrMXDlBof35qx/xkR5s+bKhlIqwiWVpqextoS 4uGMoSjV+c4bRVJseuAGA7w84ndDvuZ4IKYc2C96qBD8Qk0nStGUlZYjdnozD4JlsMg2 B2AfhsLr6nlDGylTAZ6qKmpddl9k6Mc3JqdP4GE/FFEq4B4c5GGihtmdUeGws5o5doFK HHDey+4uF1ROo+qP60+Zgmfi/1nOYsXUWdq98oTKj6M2kJP06+2OP/JUkD/7x5M5gmpa mV5yIrMSIRryRM3do/LdTQGTM92wCCscIIYrFGLH+S4JkPAXQkmi2jqt0/3eOUlETUoa MC+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=pbmDGr6w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si2933298ejd.275.2021.10.28.02.27.12; Thu, 28 Oct 2021 02:27:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=pbmDGr6w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbhJ1J1x (ORCPT + 99 others); Thu, 28 Oct 2021 05:27:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:42982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbhJ1J1w (ORCPT ); Thu, 28 Oct 2021 05:27:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D2EC660E78; Thu, 28 Oct 2021 09:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635413125; bh=Y5mRnOfcpDHbrEcKPxOejw1RoXP9QeM+TxRILiKOfo0=; h=From:To:Cc:Subject:Date:From; b=pbmDGr6wOXPSBSdwgtUvZlsOLLxT5Ryzm7W5imGXKv/RDJG/gdBxA8lkpldGEG8rN T1lXwbiyM37gFySVp7kNCXXpRQYF7Nuyjjevmm5C7TY2dHjxtug96MWIXiO7uhk+Ug DpXZvmkeU1NZ/d5zSIbU+kxIffGSKMY5Er7LBQMOejALdrK21srwGlHG65HX+Ul6zb TKhKi5Y2DcHgP780spnrF0Utx3j1ZIvqGGfKALqSFPfBFSyu0riQG8UnXz6cSGVl8K PM1e764H8PFh3aMFLICnP6ohRwXjx2w62Ip/1xz8Sx2HGeFp/CTkbeFEmAXQ5Hq61a yur7LYkJL6wug== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mg1f0-0004Nk-Oz; Thu, 28 Oct 2021 10:25:22 +0100 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Greg Kroah-Hartman , Mauro Carvalho Chehab , Nathan Chancellor , Nick Desaulniers , Sakari Ailus , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, llvm@lists.linux.dev Subject: [PATCH] media: atomisp: get rid of two unused functions Date: Thu, 28 Oct 2021 10:25:21 +0100 Message-Id: <320510b91925e0ebdb5fdaa1d4843dc470067440.1635413116.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../media/atomisp/pci/hive_isp_css_common/host/gdc.c | 11 ----------- .../pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c | 6 ------ 2 files changed, 17 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c index 8ed1cffc5384..25e082d6a94a 100644 --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c @@ -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)); -} diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c index c505c94a7241..f741beb9ed8a 100644 --- a/drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c +++ b/drivers/staging/media/atomisp/pci/isp/kernels/raw/raw_1.0/ia_css_raw.host.c @@ -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) { -- 2.31.1