From patchwork Wed Dec 11 14:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Depeng Shao X-Patchwork-Id: 13903558 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89C5523E6F0; Wed, 11 Dec 2024 14:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733926164; cv=none; b=nGgUwB6bx2m/bIpWpdeZ2HlIDTHsCl9HsGS5UK4xxeP4PHo6ylP8+v3B5dnq9EpywvyZinZl0RaYk+wZVBsBXpHMq9y6Z2bVZg6YDb5vtgwaAEz5tZf8GelP1ZQTGbr8JXN2bPJ8RQD8MqF20+Erj544KFRJjHxcDnKCdRb+v18= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733926164; c=relaxed/simple; bh=7JS0NE4wruUntpJKvirWK0pMF40CD8I62RZJecNwjMs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nGWWLylI/hVa5xBV0aGqqt3gcMcLYRsLDU81+3AWFJvrhwfz4sVcnLg6S/igDBIvxAonCn8O4Gg5cqAy7yIJ1afeNHDl+BIbXkukmdIotE5PCR/4r+dzDKr1HUkMey1SkEXitrKhti3Hh6VfC3orOS1YHHrRf+cacOL4r+kOCLc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=JzhS8y2C; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JzhS8y2C" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BBCis6v026782; Wed, 11 Dec 2024 14:09:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ui+pO1Undne/m8Q9UXYYYqutc6MTZ6V5oq11Csrb05k=; b=JzhS8y2C1m3Lgx5Z oXVT+n71d20n0Ig7ul9V5EQm7kcdcy/9wh2mIAWYjh2OYrWREC2ViIxQu46GH1zb w7YfGTWRIf6402bhEBMiwwiQLSrglSt3Zpe0jTNh/MC4/4bFFkIX0lTkXRa85rFv E6fbV3lsngTEh5r18BCn/KPL7ZI8+u14nixl/atnz/zZRraUDhjyr+EbPPKc5Lyf TbH9c2O12eHxpfWimp/rLvKRCWOKFI5IQLemvU9XQ4PQxDIIZikkEA4DhezjjOjy xjciP5d16MIfE2UlfhzoRLS3O7vi0h19kKJBxD/GtC8DFjUdL4q+qIZYMVFEBj8L zumqoQ== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43eg9en473-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Dec 2024 14:09:19 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BBE9JwR015881 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Dec 2024 14:09:19 GMT Received: from hu-depengs-sha.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 11 Dec 2024 06:09:12 -0800 From: Depeng Shao To: , , , , , , , CC: , , , , , , Subject: [PATCH 10/16] media: qcom: camss: Add default case in vfe_src_pad_code Date: Wed, 11 Dec 2024 19:37:32 +0530 Message-ID: <20241211140738.3835588-11-quic_depengs@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241211140738.3835588-1-quic_depengs@quicinc.com> References: <20241211140738.3835588-1-quic_depengs@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: h_xNOYR8IYqUxx7RgkwUHM7JOYwBa0qS X-Proofpoint-ORIG-GUID: h_xNOYR8IYqUxx7RgkwUHM7JOYwBa0qS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 phishscore=0 spamscore=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412110102 Add a default case in vfe_src_pad_code to get rid of a compile warning if a new hw enum is added. Signed-off-by: Depeng Shao Reviewed-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss-vfe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c b/drivers/media/platform/qcom/camss/camss-vfe.c index 58e24a043e81..1c9b6569fbe5 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe.c +++ b/drivers/media/platform/qcom/camss/camss-vfe.c @@ -404,6 +404,10 @@ static u32 vfe_src_pad_code(struct vfe_line *line, u32 sink_code, return sink_code; } break; + default: + WARN(1, "Unsupported HW version: %x\n", + vfe->camss->res->version); + break; } return 0; }