Message ID | 20240527-cocci-flexarray-v3-7-cda09c535816@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 C2AACC25B79 for <linux-arm-kernel@archiver.kernel.org>; Mon, 27 May 2024 21:09:36 +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=of2Mhp/cvb9tFWkREdKCFojXjJZ4NjrtidkkWQHmPTs=; b=LFnYazC4Ba7jkx o+Xv1rec3ywI2cicI5m263W0I0XMd+VzHXVVOx+KIDNs70ScIBFfe/YpjoEvNNqpzLvCo0fPNSria 749JXp8YeL4MNp4qd7RqkEy9Pb8MV892Qw6XFv5fldzqxfnEbwNgi5rCmmI4z1NY49qCa49b1XWTS S2OOnMGqbEUrrZpbcofGEHMUaaWD76UL8ypFhMZBGir+G4cM2ramsZZpHptzpouy0+Zc3KlXTmYIw 3JdARlttcFUPusXQJC/HT4lD47XPLd0r2LtTbYIES8+wiLjeFiteVAD6d+brIf2QxKgD7qDP78LQs 2mb0mHdSr1BUhOl56ftg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBhav-0000000GKRp-1yD1; Mon, 27 May 2024 21:09:25 +0000 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBhaZ-0000000GK6x-0HkY for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2024 21:09:05 +0000 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-6ab9ce67eefso1000646d6.0 for <linux-arm-kernel@lists.infradead.org>; Mon, 27 May 2024 14:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716844141; x=1717448941; 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=xuxfMIsewXqkBzK5BeYTD0bqNkQisbi89qotRNy4YBs=; b=iO+q4cxHvKfB/4w7iCp5I2l6NtY8RWHMf6UtKw6+/X2ov2oZPIhf6PTfyPdGncIRlH 2VcXj2tt2vEsxzsgubzPYf7NCV9j07JAqVcU1xqjn/lP44hR/XOqKUB6zHaBPHVwU1D+ yn1ou9uQDhkUo5BqkvOdlrJDZvu1kADjG3ZOg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716844141; x=1717448941; 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=xuxfMIsewXqkBzK5BeYTD0bqNkQisbi89qotRNy4YBs=; b=c1a1tBPumnnl5vVayj9FsTGUgs0z9IpSzrqjKANq8IHrIdgeFOScg6uET0+DisBIRO f8uOGAL1pdKCTbhS6rthinqhfejNAIRxonRpKfVbHpms1Shf7K8rBdS5pbi/mimlvTBg t004E1dUhBvemoE82OIvCPnh46TTCtPmIed8G8iZP/D5zkyhmQh/90fkwg3FIDkGNXrf Gw/jvvAw48tlWBhyFGcfutVkLNyZIJECgLWiEnlgQd9FhEA/wm374YDWaC3scQsL9YPC KdiOg/2JOWdvnAdV81e73owNxt5s8EgnwaksulKEmZCNZofCK6zOSU0aBwj0mY6EFP1Q Rlow== X-Forwarded-Encrypted: i=1; AJvYcCXPY9csdwTTIrM2oKu2LiDP8F1v48NIDndHlVUFmXy6g0oq3ud+z6vv5WKkw4giHMjNuuISJkOuhlQjqxF5mPOFV7lORVN/tHh3d+9kPvl2ZB55JwI= X-Gm-Message-State: AOJu0YxKF7HEcxtYfuf3uiWTQhArZJ3gR0+vtYUSup5mS3tRVznvA3hj CDcGcQA14HBZ9TTzlb8WF06NtpVxXmSioBYSW2PkpU5CmEAJiupoh2wQiWfZIw== X-Google-Smtp-Source: AGHT+IGqdInSLU92W7+DtYzv0+k6nwEHlNXV5KrK57NXQ1324WfJB7q1ATelwAen4Mc0bFmHLxIsJw== X-Received: by 2002:a05:6214:3bc5:b0:6ad:73c0:eb22 with SMTP id 6a1803df08f44-6ad73c0ec3emr79133716d6.12.1716844141308; Mon, 27 May 2024 14:09:01 -0700 (PDT) Received: from denia.c.googlers.com (125.135.86.34.bc.googleusercontent.com. [34.86.135.125]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ad850a6dc7sm9511866d6.93.2024.05.27.14.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 14:09:01 -0700 (PDT) From: Ricardo Ribalda <ribalda@chromium.org> Date: Mon, 27 May 2024 21:08:57 +0000 Subject: [PATCH v3 07/18] media: siano: Remove unused structures MIME-Version: 1.0 Message-Id: <20240527-cocci-flexarray-v3-7-cda09c535816@chromium.org> References: <20240527-cocci-flexarray-v3-0-cda09c535816@chromium.org> In-Reply-To: <20240527-cocci-flexarray-v3-0-cda09c535816@chromium.org> To: Michael Tretter <m.tretter@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Mauro Carvalho Chehab <mchehab@kernel.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Michal Simek <michal.simek@amd.com>, Andy Walls <awalls@md.metrocast.net>, Stanimir Varbanov <stanimir.k.varbanov@gmail.com>, Vikash Garodia <quic_vgarodia@quicinc.com>, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org> 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 <hverkuil-cisco@xs4all.nl>, Ricardo Ribalda <ribalda@chromium.org> X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_140903_238277_FB681EAA X-CRM114-Status: GOOD ( 11.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
media: Fix the last set of coccinelle warnings
|
expand
|
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
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 <ribalda@chromium.org> --- drivers/media/common/siano/smscoreapi.h | 14 -------------- 1 file changed, 14 deletions(-)