From patchwork Tue Oct 26 21:27:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12585697 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C6F9C433F5 for ; Tue, 26 Oct 2021 21:29:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 151E460EB4 for ; Tue, 26 Oct 2021 21:29:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 151E460EB4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=H/1Flq4vLdPXAx0O0qyPsPM/u74DUajqdUe3Ry7Y60M=; b=QquG5fcSmmBGtv 1UfvNSR2z8Y9VTrQ4jccqB5ZQRvXt2nWxiLDaNDr+hUP18hwEBgnauPK7twSOogls0s91YWZ92l1K 0Q43LNG5R81zFk93vHntqo81UuHPDY4oQ090X7o5bn79ySepfJ0PLv/i1q9m1mb0DrY439k1neyq3 sIHnUopTp6B/cLAr7EsdaduzH2gKeFGn+31LlG+wtJx8tOWxBzuts7JOCZhePLHS3WeAjCbIPzuQ2 /Rx6labJ2ZdB2gx3RIvMXC0EUJ68mSYbC1p44sdd3G+fyWvxvpGLRkhzJY3dG1UOHu6hmeBJ2i3Gg E4UCTyXHfyubfNXa457w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfTzk-003843-Gp; Tue, 26 Oct 2021 21:28:32 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfTzg-003834-GK; Tue, 26 Oct 2021 21:28:29 +0000 Received: by mail-oi1-x22c.google.com with SMTP id w193so581664oie.1; Tue, 26 Oct 2021 14:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=otYjN9az6nPkaATonKfc0dOSOmU88ZE1cbGt7BRctxc=; b=LkZysTXZ1DLHHxC1+y//iILNS0jCdiDf7gt/eQBdMPlBlkZAdvOEIWTkIy+ccCp3SA 189WXdO1AIjmaqPRr5f69d9/nUo9mTV7e/lZQAbvbHgR1xCEQcUThTgoJ6Iea+VxovNi Iku5ecZisAZ6fwmNDF0Dtg0sudQM6QbkhdzOsBmyBqnJVa6D46+cyk/kzeRZJxv1gpBL KsePun7Y0iarfnQDyj0G5XpomLbA71q4PSK9WiP+iUAicjTS5hzMa65Ki6o+aPyZLHLw 50L5eYIHN3qEZLQJ8+vSErXxsCt9GGl8/pAoqPZlyXCISCCWLiPk/dG8s2F9zoFuUxeE MrdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=otYjN9az6nPkaATonKfc0dOSOmU88ZE1cbGt7BRctxc=; b=cIZSarsNU3+GuJ9P99ArF06F0MM33I1HeIjfMY4Esyvq2WpFXaNQFP3v6Y0iBV20mX 9HXMdeDKbp9El7RSXSrJpyq21SUu0sGBG8Sx4q3/FiYERaSDRbgPryHgD/NIJns2yKuf yHqE/d6YV/uI18wI3xCXem7mneCUdWSzlEtH0b7q6dmHwpnWtXSJUNb+Ux7kdB+iSHVz havnqhZ4TQuaS1t3rv03zSlRKQ016pzUCUyxt/Og5LBiRKqS0ZYLrDU5ER1xT0AuPEk2 HJjJbuE0EIH9mL9IKnXAHVHj4otcPKBZmF5IioIsbpKtQ9vOBrn/GncfNA9zTymXUnLI tImg== X-Gm-Message-State: AOAM532ydUNPRGPeSErKzcohgy5sFW7lPHFr9JOAj5lIs3WIuWcoZwfh /agFiJ/uyLVy5Q5PL2ZRkbY= X-Google-Smtp-Source: ABdhPJwy5RmaUkFv5Tt+YnFiDI9CTREkD2Bnd8jXOqWsQLf1wpGJQ+IMxbzdNO5ggIyDyFrpK/iA3g== X-Received: by 2002:aca:4356:: with SMTP id q83mr953667oia.157.1635283706144; Tue, 26 Oct 2021 14:28:26 -0700 (PDT) Received: from localhost.localdomain ([181.23.91.138]) by smtp.gmail.com with ESMTPSA id l26sm5002623oti.45.2021.10.26.14.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 14:28:25 -0700 (PDT) From: Gaston Gonzalez To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, nsaenz@kernel.org, stefan.wahren@i2se.com, arnd@arndb.de, dan.carpenter@oracle.com, ojaswin98@gmail.com, amarjargal16@gmail.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, gascoar@gmail.com Subject: [PATCH] staging: vchiq_core: get rid of typedef Date: Tue, 26 Oct 2021 18:27:56 -0300 Message-Id: <20211026212756.25557-1-gascoar@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211026_142828_563964_ED30BC07 X-CRM114-Status: GOOD ( 10.60 ) 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 Get rid of typedef and use proper kernel type instead. Signed-off-by: Gaston Gonzalez --- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 6 +++--- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) 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 ab97a35e63f9..7fe20d4b7ba2 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -711,7 +711,7 @@ reserve_space(struct vchiq_state *state, size_t space, int is_blocking) } static void -process_free_data_message(struct vchiq_state *state, BITSET_T *service_found, +process_free_data_message(struct vchiq_state *state, u32 *service_found, struct vchiq_header *header) { int msgid = header->msgid; @@ -767,7 +767,7 @@ process_free_data_message(struct vchiq_state *state, BITSET_T *service_found, /* Called by the recycle thread. */ static void -process_free_queue(struct vchiq_state *state, BITSET_T *service_found, +process_free_queue(struct vchiq_state *state, u32 *service_found, size_t length) { struct vchiq_shared_state *local = state->local; @@ -1981,7 +1981,7 @@ recycle_func(void *v) { struct vchiq_state *state = v; struct vchiq_shared_state *local = state->local; - BITSET_T *found; + u32 *found; size_t length; length = sizeof(*found) * BITSET_SIZE(VCHIQ_MAX_SERVICES); diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h index 3e50910ecba3..53a98949b294 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h @@ -74,9 +74,7 @@ ((fourcc) >> 8) & 0xff, \ (fourcc) & 0xff -typedef u32 BITSET_T; - -static_assert((sizeof(BITSET_T) * 8) == 32); +static_assert((sizeof(u32) * 8) == 32); #define BITSET_SIZE(b) ((b + 31) >> 5) #define BITSET_WORD(b) (b >> 5)