From patchwork Thu Feb 15 22:53:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Moritz C. Weber" X-Patchwork-Id: 201816 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp168851dyb; Thu, 15 Feb 2024 14:54:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbknKM0rIVNhiJYVLJVc//dJhkNIcCm6WEZXhvWeA2DJ0ibLQ0a2Cxv4TKGYOXUAo4FIP1il/p92z+EGGntGnyQKre7A== X-Google-Smtp-Source: AGHT+IEo6pa3Ur/0U/kxv2WU81JGtGdxMrwbsMzwHydpxWEEEwtyP/azt2n5RpQrT6wsRjlfTFW4 X-Received: by 2002:a17:906:f201:b0:a3d:3aee:a854 with SMTP id gt1-20020a170906f20100b00a3d3aeea854mr1996018ejb.28.1708037663179; Thu, 15 Feb 2024 14:54:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708037663; cv=pass; d=google.com; s=arc-20160816; b=HcN3eXgH4Xr24N0Gf4BVut+UXYGKCETd9UZIw9Lx5b9y5ZIEouzbwSQEjelNwhXDoh /oL2xOgqO/hDOqTC8vImcXshs0U75tD6qs1A/pgxh8roQ+R+qYQbAEnnR3hXfXedJmp+ +noyVuSlsZptKV3Rd4Fsxgh4GFZJNAPj9T6P4/kVd/63Q6Y/aYR4PRu/b+q7yvkl1RJ2 hfsClTJOWuF4oniYQ6tBLKj5taLaEJI3FduXpAmst4JrC4WelN0MFJ4DYiOIqEQZtAzb pWrTau/8DSsOVvl03jJyGLuLMgny+QQlt8JqU6UW3pJcquJnUv30eCdSo7SV8TAguVdp fjNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=B8uMPEt1VqqPCM4teLHLJiETOk2ZEgqVh3I3k6LiZj8=; fh=jJePxtaEZJyKdWrXPC9wNjbgSvLaoBEwDvDniUF7Kkw=; b=lMIwgP0ZDiBhjR2G4vI2eLR95M5/2+l1cZ5JFtgfjgxyMvYrExSxEiLfd2K6YBUz0p kcNrOk/KLDWPjrg5AEUvNARf/BdPA9gSBh74QKJYCPGH/79rXLrM4ad0By3TrvPRmCjI AEf3l9X1xppqGrkvelB5LGl55eTWTogtk+jJdUX23pmCOGRmlGUKeUtr21dCx7zNCF+l prLSO7XrXcv/QyZsDPMt0kFRlhiQDXu0WfCjvH8jiw9W4jaXh6pOgq9atnvmzaqBfXRS I45f5gJARbWgtxq7p+wIt7KhaLWwv72WZp2bwpcVi6cipgtr5RjUELNPbj3cQXfS1WGw DiRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hrBMMaHN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67791-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id sh31-20020a1709076e9f00b00a35f9dd8eb2si1029863ejc.735.2024.02.15.14.54.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:54:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hrBMMaHN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67791-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67791-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9A0EF1F227BD for ; Thu, 15 Feb 2024 22:54:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75921145346; Thu, 15 Feb 2024 22:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hrBMMaHN" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 0ADD513DBB3 for ; Thu, 15 Feb 2024 22:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037635; cv=none; b=E3KQCar9gJdgy2W2Vt8j/7XXYa46c+PcprstUHFq3YuNBLtCnbsJsb0Q0rHUMevAA4M90rwHvlssigFsQydcRryMVu0X/1kymjx2wQQK+wttN2k/GTn2iMUoeQt8B8KZP6V63wUfsjHJj6xHUYA89HU+rvve6rYQUYWFSsDh8Po= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037635; c=relaxed/simple; bh=XnFYaR+j8cXDRfdSASbIWHQxzHD5XY3BItp+mlM97jE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SBc3t4vxoHeCm1DK5k+p1gS+Gpcr+eyfTm9CxAQ/cdGT8hGHCbQRbFNMvU+Ap6IyELV4MzlVRsOk5XjesUAenGtFPqYBRay+gbqqod5G50pTuSsiedZLLpiifFsg8s/qo+dSx/wmMXiy68BGLQfJZtM+/KTJon6d1ZRHryg3gfM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hrBMMaHN; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-55f279dca99so2383982a12.3 for ; Thu, 15 Feb 2024 14:53:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708037632; x=1708642432; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=B8uMPEt1VqqPCM4teLHLJiETOk2ZEgqVh3I3k6LiZj8=; b=hrBMMaHNVM2CD5lFrDiTSUsK1KeyTbFnZfuVjDNw6M9p9ufDZaK65iRpIgFCRINNiK qjvPkuffoOkBHEsquLGK/YNZSpqz7n8L5F8BDr68Qm/2xlJ5DL2jZjNqaqWjAgtD6W6+ lf738yqD+oeMrEwNPCBJ/DOFzdrqx2caO4JZ0/yD0dz5IfWd+5NYyA6wRubfjqENhKTh aASXlRaVZ5p2rr3/wGZO+mcgL9Lx9jSrTv+gYvN25EF6RFqQJqnprNIz9IgvRfwD/5Al y6zH7I+ORvipiYNkF7YEhRLfcTxSw+RECgEf+YzkyogtgP1ICV+zretPPPIqm9qch+JR Smjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708037632; x=1708642432; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B8uMPEt1VqqPCM4teLHLJiETOk2ZEgqVh3I3k6LiZj8=; b=praK8HE9Nltr/x7ZOdzPXh4sX1EF9B0JHRxPzIF87Xy6VThK3Np4hfihu1f4VQfMZQ TI2Se4rEEkTvyABiqJJqldFHx9XHWM4WRLFZFr9gh0KKycfZfWl9/B93s4hS14te/QDK OpnEV37yVJWZ1fVpl2dDuwAn30/qvx7llOOXmOwD2RPkTNSrwkbBo919zi+kR/vYBmEH 7wnRyP2wRtrxksvHXAmI4k6KaQbXdqzwAPuYGcQQPqnh7R6HsxflSn+JwGw0PDKKYS80 ZRimxF/BlTCsJ7dOrkQuw62v0BUFnoCQAYkGTI28KakJbWBdAEPj6VXlo2DLAKs2x6D0 4ZIg== X-Forwarded-Encrypted: i=1; AJvYcCUqfZxpcJ24zjT/DBWSxoCtLCGqh7pKPP0KmWZr1SnPTGWYwbiYZtEj4riixIR0A+BDP1zTf2vEtiM8RKwahZzDUsIra3w58OD+2NEh X-Gm-Message-State: AOJu0YyvKXKdaEhsiKjKivQ6X9CORGkE31jr0Ci89J2OfjR6cHyqi9hS xHs3mHZRX/i9LejVlLzQZgULjqbkmCsdNXiIs2K0/1QioxjqnhIb X-Received: by 2002:aa7:c149:0:b0:563:d042:4bdf with SMTP id r9-20020aa7c149000000b00563d0424bdfmr1041581edp.0.1708037631968; Thu, 15 Feb 2024 14:53:51 -0800 (PST) Received: from pinguine.lan (ip-176-198-146-182.um43.pools.vodafone-ip.de. [176.198.146.182]) by smtp.gmail.com with ESMTPSA id p3-20020a05640243c300b00563c22abac2sm650782edc.61.2024.02.15.14.53.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:53:51 -0800 (PST) From: "Moritz C. Weber" To: florian.fainelli@broadcom.com Cc: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Moritz C. Weber" Subject: [PATCH 3/3] Staging: vc04_services: interface: vchiq_arm: fixed several brace coding style checks/warnings Date: Thu, 15 Feb 2024 23:53:28 +0100 Message-Id: <20240215225328.11141-1-mo.c.weber@gmail.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791007300567376345 X-GMAIL-MSGID: 1791007300567376345 Fixed code style checks raised by checkpatch Signed-off-by: Moritz C. Weber --- .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 6 +++--- .../vc04_services/interface/vchiq_arm/vchiq_core.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 1579bd4e5..c59bea191 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -432,9 +432,9 @@ free_pagelist(struct vchiq_instance *instance, struct vchiq_pagelist_info *pagel head_bytes = actual; memcpy_to_page(pages[0], - pagelist->offset, - fragments, - head_bytes); + pagelist->offset, + fragments, + head_bytes); } if ((actual >= 0) && (head_bytes < actual) && (tail_bytes != 0)) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index 76c277781..5213f7c55 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -230,6 +230,7 @@ struct vchiq_service *handle_to_service(struct vchiq_instance *instance, unsigne return rcu_dereference(instance->state->services[idx]); } + struct vchiq_service * find_service_by_handle(struct vchiq_instance *instance, unsigned int handle) { @@ -1192,7 +1193,6 @@ queue_message_sync(struct vchiq_state *state, struct vchiq_service *service, header->size = size; header->msgid = msgid; - svc_fourcc = service ? service->base.fourcc : VCHIQ_MAKE_FOURCC('?', '?', '?', '?'); @@ -1618,7 +1618,6 @@ parse_message(struct vchiq_state *state, struct vchiq_header *header) break; } - svc_fourcc = service ? service->base.fourcc : VCHIQ_MAKE_FOURCC('?', '?', '?', '?'); @@ -1842,8 +1841,8 @@ parse_rx_slots(struct vchiq_state *state) int rx_index; WARN_ON(state->rx_pos & VCHIQ_SLOT_MASK); - rx_index = remote->slot_queue[ - SLOT_QUEUE_INDEX_FROM_POS_MASKED(state->rx_pos)]; + rx_index = + remote->slot_queue[SLOT_QUEUE_INDEX_FROM_POS_MASKED(state->rx_pos)]; state->rx_data = (char *)SLOT_DATA_FROM_INDEX(state, rx_index); state->rx_info = SLOT_INFO_FROM_INDEX(state, rx_index); @@ -2177,6 +2176,7 @@ vchiq_init_state(struct vchiq_state *state, struct vchiq_slot_zero *slot_zero, s for (i = 0; i < VCHIQ_MAX_SERVICES; i++) { struct vchiq_service_quota *quota = &state->service_quotas[i]; + init_completion("a->quota_event); }