From patchwork Mon Nov 22 13:09:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12693337 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 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 00620C433F5 for ; Mon, 22 Nov 2021 13:12:09 +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: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=d+KBFUOSbF33Tf uACSMKdBWwY2GTRjV5uOSSqdfwccFYVk3Ytxi6IQdJVIG1sEuUOrCqTRVjXdOSWyx5M5M2F0DvUCy Fv/pN8xzMf5FNcNQI+ft7xbwHMCMA5ZAN1vrNkECKsKDbOK0JIv+PQaibwAwtnYPFhk1TfXN23UI5 ZTQr+E0h8bjj03jChUT4SRJj8tpCG206YmwydZKvsbjrfU93tZIjwDVmVzkZ5XeCBybgsHRW0lfkr ToAXktVS7LqJlcT7mLDlcabRCPUFG0YGerBPnkTQnbTT1k35MLa+oEoOb8i2cxgVwR/zQtjDDpT7f Ntkhd1lEMdomdzEfUukA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mp95n-00Gaov-US; Mon, 22 Nov 2021 13:10:44 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mp95i-00Gana-L7; Mon, 22 Nov 2021 13:10:42 +0000 Received: by mail-qk1-x735.google.com with SMTP id de30so18031517qkb.0; Mon, 22 Nov 2021 05:10:37 -0800 (PST) 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=PPMyp7kYd+NLYf06P+27pAK8/eb/WAO4+jZmPPIWlkits3mBuFI3cfiyFeymoThetT y27pqncW/0GFX1FFrUUPrb7MGpp/JnOBuZVpk45v/v3yOziPbRBNHLjWalRH0BUdH7Go +J3gA8072dVZMJcZchDrbSBvJ9NjYNe5LpiiLo8YhiA990wenMYsg9+9V+mjcXhiDeXQ hsZt7NFxFcNfFUPbU/sTSXFOf+Ymrc4rBDbl5gXMRHTHtyhVFzkRAO/5/5pFfo/scYDR Jx3XmAGSShPJy6HTbtPfaV68TEtHlm7C11MHEykPAh0XNrifhMYZZ1GKpvWNXMTLN1cF wXeQ== 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=VCyGC8yEpRZsnJl//Bgy89SP+IKwqjorgx5RmN+xlWLJxrMOGyvJ918wm8eF1/woiS hGO3gBB5rmvgN5uEiPKmjP0KaBsyI1vYX9H/ZsU1lwTCCuI2Myx0hy3GCmJke8K7WhVf FXD5qo3eKlN7ZfgNfjoIufbdyEz79IqhJDQp6gLaDGjpb15OsGZmPps/7wk67unqHSuj QW5XxN+9BK9tBOUIcWQkpw6YePwSYDxgsH4YP68Uf/JDSFd+psslRzBpnThUCkeU9svq YLAITKnUIinCxibF7KcV+SDhQNTlDUesHtXFgmkFlEMXsTFLIET4PgRVxxmB5yklDebY NZ1w== X-Gm-Message-State: AOAM530sQmeW0KlVUwwz+KFQfBUg8vLCd/q7iRPIIXHXm+z2ocdqQaoW mQf2aKbeiDwNzjrFswCw6mg= X-Google-Smtp-Source: ABdhPJxMuj8b4MzbGxSOjAIa521bjob2/X1Tz9+Eowpwui4EVFC9GGJFxoZb3DaeGvko5806WGrJ1A== X-Received: by 2002:a37:a956:: with SMTP id s83mr48738890qke.422.1637586636295; Mon, 22 Nov 2021 05:10:36 -0800 (PST) Received: from localhost.localdomain ([181.23.85.46]) by smtp.gmail.com with ESMTPSA id s13sm4651343qki.23.2021.11.22.05.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Nov 2021 05:10:35 -0800 (PST) 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 RESEND] staging: vchiq_core: remove superfluous static_assert statement Date: Mon, 22 Nov 2021 10:09:26 -0300 Message-Id: <20211122130926.342128-1-gascoar@gmail.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211122_051038_713038_07CD7C04 X-CRM114-Status: UNSURE ( 8.46 ) 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))