From patchwork Tue May 7 13:18:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13657051 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14D2BC25B77 for ; Tue, 7 May 2024 13:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DOhoLbbLSacaop6Yur4t6X8Amzgi/yV85uJqpgy474M=; b=JhkSoDI0UOPZQk 8VJgtkm+Pxvmj80OJ6mHw2+AEb//4zxJSPIchNZz7GHPyKCs1ZCiIpkSwOHGJcU7f4ir1s52kUAYZ Deagbgxw0qh5KlOPJo/e5UfWOMbMjGJhfHsAy/WJtajZAZscBIPL2jNIXJFRoJwUbBzyvLZzyM4bi 22uwfCcTKOHY57+d1CzHC86BOOw32ydwIZqk0XMK2RkWaVed+1BQiyhQ3svY/KdAaby/YHxygDuKr y6LkIoC89QU3KfGItzUXS9J6nbfT2+kEqYEpl2JIPSDaSgZRlBlEP1JoLvGTtKpfJSlghNM+IbTzw fmLgbZAJ6FdhMgUtAB4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4Kmj-0000000BCzn-1HbZ; Tue, 07 May 2024 13:23:09 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4Kin-0000000BACG-1XQd for linux-arm-kernel@bombadil.infradead.org; Tue, 07 May 2024 13:19:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Cc:To:In-Reply-To:References:Message-Id :Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender :Reply-To:Content-ID:Content-Description; bh=bajBIKBKiGkzVrECr+DrCDdr2oyOzpQYYR0WAIoyaos=; b=GxOhnzEqZZ8crWKC4Ge7kVvG9E SGbYlw30apHHhq/0pQ+mQVn4cImw09AY+LeBriAGmibjhoc0tg4q4q9kH8x2VslaKt9wjrUrKcHWm 1fQZOc690MyRW71Rljv8Bq7p2Y2MgcxDG7PddG4bUnGlt8pBcU5z/LTrv6Hv6Purqg/l2jDeECVCu wmpQiWxaUflLFDCCdvc7rQuArvlGbSB5Rx1ggZlLjDuNu+sD8Zo1vjgTRH9QmwoNyfQg/MLiPrVdE 2MTiw9I4+90jOaNY1838xPCQASVVZ/TM7pUc6ANPL6xTXBXGRktaTYT9AzTpG215Icuba+AViiMxU 8hI3+Hiw==; Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4Kii-0000000DIaW-2QQh for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 13:19:04 +0000 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3c97066a668so644906b6e.0 for ; Tue, 07 May 2024 06:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087916; x=1715692716; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bajBIKBKiGkzVrECr+DrCDdr2oyOzpQYYR0WAIoyaos=; b=KlmGerX+c7B3ss2qtXQRRCkiZi1XjX3VWUiYLkxOZBkt4rKNUWzz0KcIVVfu4dPbB4 iJYdnmCb/8OsGNjs6p7+s1RZP9rIGKRDfB6ke1Whz0SNoCEFgPnYRpFuKqUjrLPqV95u K1YBJc6tmlk30tw21wuJxDXXasquQW0kfp3Yg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087916; x=1715692716; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bajBIKBKiGkzVrECr+DrCDdr2oyOzpQYYR0WAIoyaos=; b=PG1ApateSOs7w4cccmTaxzEiXdX8mfCcXYc5m+Sy8dHMY+iHEjY6mF8ohC5HQ5+pp3 2nBI/ASW/H1/HEVXPzozkuEaKY+jQFC+27v3BCBmtMFA8+doGsvnlAhtUlg7jLUIurir qFbdbW3z8vu0oWgHsp8MTZfAStGf0T2BSscwDHGAVFqPg28QQUtRJpwUSKrUjN4Wr/Fr s1Q7NWT3qZxsqfCoIPXO1X9UTuTMHGuWRG82t2097m71JzqicQDGf+JLFrGt6zrhTaIF uRKVq5+NFz5YsBuRQ75dObYP545Mr6mmQBDjPYh5G16RwIobe5LswR83R8TDNlVSu+wK GvkA== X-Forwarded-Encrypted: i=1; AJvYcCW7g+1wggK3Cm4VLsYZzi/kiVie6RfUybpFnaradouB2jn2m5SC5zDmk+53bdaFvsBppz0gqxKR9WgUGyUmaLDj/d1EhDDmHPCltFWRlCb9m7ZFRS0= X-Gm-Message-State: AOJu0Yzw5rOm6pE3XxQxrHAjWkQ+h7cvmaW5YI2qm3lcVODAfL1G6Yck AUr64R5ChMMRD6982AGFy3/ZqvuFUPb4a0Q7ssuq82DpTdxjs8uQae9QZAImUw== X-Google-Smtp-Source: AGHT+IEfgZc+3NqAZNZgDbuMWn1SodDQc1fgSaycXBKpVQJhCw/vqcobpSG60CD78oLq4SUhp6OVxQ== X-Received: by 2002:a54:4195:0:b0:3c9:6e70:cf99 with SMTP id 21-20020a544195000000b003c96e70cf99mr5053014oiy.57.1715087916576; Tue, 07 May 2024 06:18:36 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id t15-20020a05621405cf00b006a0d19c3139sm4655105qvz.118.2024.05.07.06.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:35 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 13:18:33 +0000 Subject: [PATCH 07/18] media: siano: Remove unused structures MIME-Version: 1.0 Message-Id: <20240507-cocci-flexarray-v1-7-4a421c21fd06@chromium.org> References: <20240507-cocci-flexarray-v1-0-4a421c21fd06@chromium.org> In-Reply-To: <20240507-cocci-flexarray-v1-0-4a421c21fd06@chromium.org> To: Michael Tretter , Pengutronix Kernel Team , Mauro Carvalho Chehab , Laurent Pinchart , Michal Simek , Andy Walls , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Hans Verkuil , Ricardo Ribalda X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_141900_687267_397D66A4 X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These structs are not used in the code, remove them. This fixes the following cocci warning: drivers/media/common/siano/smscoreapi.h:1049:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/common/siano/smscoreapi.h:1055:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) Signed-off-by: Ricardo Ribalda --- drivers/media/common/siano/smscoreapi.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/media/common/siano/smscoreapi.h b/drivers/media/common/siano/smscoreapi.h index 46dc74ac9318..bc61bc8b9ea9 100644 --- a/drivers/media/common/siano/smscoreapi.h +++ b/drivers/media/common/siano/smscoreapi.h @@ -1042,20 +1042,6 @@ struct sms_srvm_signal_status { u32 request_id; }; -struct sms_i2c_req { - u32 device_address; /* I2c device address */ - u32 write_count; /* number of bytes to write */ - u32 read_count; /* number of bytes to read */ - u8 Data[1]; -}; - -struct sms_i2c_res { - u32 status; /* non-zero value in case of failure */ - u32 read_count; /* number of bytes read */ - u8 Data[1]; -}; - - struct smscore_config_gpio { #define SMS_GPIO_DIRECTION_INPUT 0 #define SMS_GPIO_DIRECTION_OUTPUT 1