Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp516161lqh; Tue, 7 May 2024 06:25:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3Q2jD62BR7ABVp0HmU1cseFe0E3IORy1nJVcl4Ai5l5Z6GRAjCTpQjEbexiiwVbgorVcsBSf69DpZEcUlQRJjmB/YBkP2ckDWwAO3bA== X-Google-Smtp-Source: AGHT+IHBkqNQb8Z543CcyZ+alqT+66t5+cKoF8PCynor/cqvodNamjOwQr3e3I7aBL1VoHcWpsXZ X-Received: by 2002:a05:6214:e89:b0:69b:588a:f764 with SMTP id hf9-20020a0562140e8900b0069b588af764mr16548980qvb.5.1715088357691; Tue, 07 May 2024 06:25:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715088357; cv=pass; d=google.com; s=arc-20160816; b=N4BHV2itLfk4GIjuKAJYns0L+SrjNmnEr2jLmTQttRwM7yBvGkjXOGPnAix/kR2r6p 9vNVZrik6nNxAk33dk3hyfHeVfB7010Y1u16bitOgZzSR2H/EKMvW5t+ibRrdofh11hV uR//Y9CMbaJws771xTMTNW+aHt4ok9hugBhYpoegzpoC72RqIkrcCEaE6IhjcAUoCkT4 lzqbQiXDm+MAuNu783jxR8pTTyggRpR81qE0d8eUYGYTS++pL/BJ0IEtSKr7ss2W8yto nxgezzxq8u4gjpZctN1WMKVGQg8rOz+1Eq5jpcF+n49EvgP0odrAA35neVSDIQBgEeKC NqaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=bajBIKBKiGkzVrECr+DrCDdr2oyOzpQYYR0WAIoyaos=; fh=I7ny7jHKvHrh/338i83KnotqUsZXVehbPdLSKGTAwII=; b=jnwNaCtoc7utnqnrV57YrYphV/69xowmQFRN3ZunfpAommkX3bo0vUmu5yGH9o+sju LT5uhDKpRsjJJzPQjGGR/eBpWwMg4eDn68WJLdflia/pWadNrjOO1O/uitn5KVZssArZ PE7nqAER1DhoBTgDuV+CpFgmhP6v4Q/vFw1XF9UtIc2ZTPHLgvxbrIkL887wjU4Owtjf qH8AImIgpCwwvyaqNayl3k+B1P7tPsTVCui6A4I1I8kuse5Qd06DwozA+0pMRkpQiRjB OWeT6HgI8QQlTSQBBfgkNnRhzgaC4B4Wgw90mQwHSdefiFwvk/mqFGN19a7JUuzZYjcu NTzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KBC519u0; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-171398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id iy14-20020a0562140f6e00b006993d4fe1b7si11359460qvb.514.2024.05.07.06.25.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:25:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KBC519u0; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-171398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6DC4B1C234BA for ; Tue, 7 May 2024 13:25:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4C4516DEB7; Tue, 7 May 2024 13:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="KBC519u0" Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8912D16D309 for ; Tue, 7 May 2024 13:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087919; cv=none; b=ulUxRKfATn2daIESsSLiEB/zTEmJy44dKuPKhm+5cfXQwqAYfDDcPWkgAnNqKQCDu02NxhPM/rbfw9Qv84Cmf/XlmR6te17C5gioxo9XveafheKfJr3vD7WyDpI+Y6BsVsi85asujgjgHDCLsQM83CvIrZgeL88tZMQLiWTaQuI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087919; c=relaxed/simple; bh=ENYjVBtJ4EPS9w/ftPm8y0fja8ouSlg/VUcwtfy4KyM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bFc+Pk//34pY0Tb5ThoIsX+Y/y1kJyf5t7svlNCtOhdfkIk5uDMo8gMx2w+dtKyt1hAeR4AfdcafLWiiSWmIIfznjNe8sdXNmzSmWk9lSUR6eNwTBfcqcg0MZpjOF6+BxbOTNpPiVE8Cu2q6xbEk8lCTYWVLZ00jkkiCpeiMIys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=KBC519u0; arc=none smtp.client-ip=209.85.167.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3c86f066256so1750135b6e.2 for ; Tue, 07 May 2024 06:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087916; x=1715692716; darn=vger.kernel.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=KBC519u0YUZRmCX814fdQKpA9DlYSwz1bySNckmrtHfZxffY9CGzwwo3nEWshOn0lS 8v9an28RN3ZuLUZoNoPCjNSUaymk5IwXUr1AI4Qmfzc6ZauF9dmvpstHrufZVgY5PRuy ZmGawl0KywrAVsBanr0/J+DjkUIek1bN8rc0o= 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=T15TLIRZIEzwM2J8I27YDnfo7iBPMrt1WsCAqJ5fnU27877Ej/iMZ0PJDnhBNAlvGk zeeRVK69+9hAQJAk4yCr0aWLSJutOTkhcK/h2njcVeEFxkK8+QnQ8hMW74aI7mfiR1f1 7dq6yra1sPxUXVBuSOcZM2/p71Yb6c1Njv65Av3JVa7AX8nMs62WL/388ngV6ajEe3rg WluBguNxNO8hZlI6POJvq8cmY/eAHFVtwrZq+JggSaQvoLy2UF9mSXDKUBFZvuh/2NT4 TwcadoixG97seonhDBOJ1/4TAVD2xUrwJlx7GTC9tpljje319uVq+QV+Oxkr1y6reNy5 4KDg== X-Forwarded-Encrypted: i=1; AJvYcCWgnE9R1FEDUAtJxQs5LdY4PF1NgmD9Zb/FiSLJD75XHFLtsXdkZ89JAyzN2Q6mvbQCTphzudmR2rw3Dpw+dw00zqAeoIG2HaSRUzAq X-Gm-Message-State: AOJu0Yzj0hF+3a9iFvcktwy4ejmLq6GB8hX0OX9kamAI0F2CEkgzKZ3G db0TR561PYq5ncsEQWpewJzDKNTRnhEFxVmVoQ8Nd8uVV1Zo6BpTymsm50f2jg== 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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 -- 2.45.0.rc1.225.g2a3ae87e7f-goog