From patchwork Wed Nov 3 20:51:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12601605 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 B6105C433F5 for ; Wed, 3 Nov 2021 20:56:54 +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 8177661058 for ; Wed, 3 Nov 2021 20:56:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8177661058 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=7Ns5hEWZtz/+YToxr1obbv5/XHFd9CR6RHLVAFePoxE=; b=EtfZzhKg8eof9n dfpzQ9XZwIg0Gv09ptvoc8GpTXeVa+ZW3wnPSdjSdI5Af7iGcSQ0YzKGsggkb7XoXgdUyyd6Dzync 4qlEoNa/fEtVhaNunepYWQx0pKZ/2atfSgZsI0Wfp2OjW02SYwXbvskmbLLV2eTiYBeejExt4kSQr bmBsB6vxoCZV9wdHYJWSrsqoCiVH5qCURYxVy1Kdp4hKhyFBTmCDrkjZ4FrovgHFne0MdmKFTr+jS 14RUIub84lv60xuqclr1n42zYTStg+J689tYfSVJtQfc64rJAF9tZE2HXYzBV9asvj2DSEGXVlAM0 fj45A/Ck62VneXG635zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miNI8-006Yf5-Pc; Wed, 03 Nov 2021 20:55:28 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miNI4-006YeJ-V7; Wed, 03 Nov 2021 20:55:26 +0000 Received: by mail-qt1-x82c.google.com with SMTP id x10so1812484qta.6; Wed, 03 Nov 2021 13:55:23 -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=+PnC8Q/2hoId1m9hye9rp84tP4YYq89c/x16u1wHuFM=; b=coZ8JfwSG3GzHVU4ftmoZzUwikxLz7kRRIsY/NSkxWpBDwf9umPhlzj9jeGnC5Fxjf VbuiHUs7rf9/17kIDW3Xlk2D39CMuY3pQrBA+JEB7XjHQv+lVtvvCzDQipUL6pjVPy0y u8hLyeJWjpp7SGf3GYvrt3UzWyLi4b+45lnVOOVEGpIGr9TR9lUE6tFDTN3+Mz9Niw8j MgQfXM2Psik2BBQfi8yfJbLEDgYFljZIocTVNmN40dI03VKnocDl0f8zI4rTPiYUjKXt MSt/3Bt9FSo74YZ10HhVCIiTJCj+jiU8f2WGHfkHEAVXRfTUTv3znhT0XxoIGzgfsUJG uoow== 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=+PnC8Q/2hoId1m9hye9rp84tP4YYq89c/x16u1wHuFM=; b=zN8OF0lxfQsiTIJHsvirHSltcUDf6B/mo0Os91eIjwJ27ncntfSV4/OFrlPAt1ISJX Qw3av2hBwlF3bxwY4l9X5aEKXhIDqdNy9pTghZNjrqJToMMYO3Wj0WqoH+tmflDJSuyR 5bCkV/XQGeDkpaxSyQ60K6xFcfuToSPKClcK708Tlygh3k5BvXj57KAmxCKUfCKN4pX0 FgydSAbvflV+yHNHxrrdC6DkHevOJhYeTaA5xFV+LWS9VBSsm10ZJXR3H7LYV9jCpPqo 6RVEpUDYaFS7k5M4nAQ0EjD9RWeB9oOf3gD/A2YHScy0MIEqJu/US6zBzItOQcReKTM1 Pbpg== X-Gm-Message-State: AOAM530ZLaRLvFtD7Tz6dGu5XHLIYisAQvF1CzqAU/C70W3lYVp4q6da FFMshF2kdX9XYVcxW07uVag= X-Google-Smtp-Source: ABdhPJzmGY76D2AYuzQyRhmhDk6RJ559tQNn2R+hS02sjgGYrKeO87zmYNMaOdpAUlqxul+Bol9VSg== X-Received: by 2002:a05:622a:40f:: with SMTP id n15mr8184521qtx.159.1635972923124; Wed, 03 Nov 2021 13:55:23 -0700 (PDT) Received: from localhost.localdomain ([181.23.84.1]) by smtp.gmail.com with ESMTPSA id s7sm2423588qta.3.2021.11.03.13.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 13:55:22 -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: remove superfluous static_assert statement Date: Wed, 3 Nov 2021 17:51:34 -0300 Message-Id: <20211103205132.33178-1-gascoar@gmail.com> X-Mailer: git-send-email 2.34.0.rc0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211103_135525_025559_0C7A0ABF X-CRM114-Status: UNSURE ( 8.90 ) 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 After removing the BITSET_T typedef in commit d8a364820e01 ("staging: vchiq_core: get rid of typedef") the static_assert statement becomes superfluous as now we are checking if the size of the u32 type is 4 bytes. Hence, just remove the static_assert statement. Suggested-by: Dan Carpenter Signed-off-by: Gaston Gonzalez --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 2 -- 1 file changed, 2 deletions(-) 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 53a98949b294..55abaf02a196 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h @@ -74,8 +74,6 @@ ((fourcc) >> 8) & 0xff, \ (fourcc) & 0xff -static_assert((sizeof(u32) * 8) == 32); - #define BITSET_SIZE(b) ((b + 31) >> 5) #define BITSET_WORD(b) (b >> 5) #define BITSET_BIT(b) (1 << (b & 31))