From patchwork Sat Apr 20 11:53:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13637127 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 9910AC4345F for ; Sat, 20 Apr 2024 11:54:40 +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:References:In-Reply-To: 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: List-Owner; bh=chAuDcgNNuii0Bk3leHQFM6XOu9EAc4d4kXBuIo30Xg=; b=K99dSJsJXa/h96 1CYDM+HqnCW+lj14VLynanC7NlzIlzRYqdNPtVA8w54j2m0kUhktTPBKScWatpjAoRcwAASvxrd55 6BDZlyH8NbAdx+jbvSyKvGFkO5PhyZd2cYfxPqRdeYeMnO8/Z1plQT/t9A/kCFPYhTkiHN6+KqKyR 7P/2TFeB2LFBKna2d5wvTVQvUVP+3GlJkDh6fMGfNZrxDakz4SjN+tgbsAbuN2HijSsE6CcOOJLqW sHPDYnYdhqS1hNluT65R10W16R72YNKSlUfCuQ5oyTCeuE/3/B+p/rjXYPkIFZybHFOuhGxHM9u2u DFzwzp7o/PPM0sd5RkOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ry9Ie-00000008QAg-1sl4; Sat, 20 Apr 2024 11:54:32 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ry9IN-00000008Q6I-3JMS for linux-arm-kernel@lists.infradead.org; Sat, 20 Apr 2024 11:54:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1713614049; x=1714218849; i=wahrenst@gmx.net; bh=97M1kqdll0hOVOhu6BLb3J+FkpgASkRSTSLyTAp4RCc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-Id:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=OjqcXsaqu5G1OxqAilaVzHcMtIildwQK4Ks2wiazorgrm+D47RDkCMf1uPK3NX+5 XmwBN7oxfkhq1pM9Gc7CwagvDsINHzfSWIpwdpFhkTiaQ9e+tVZNrJJoFqcomh+Cs a0Z0j2rZ9bt6uk6x1hR/bmsqEKm4/dNkKEFRat1KiVI86mnDqSDk8tSkgg3D3uiqU jfA7NB2CKGYaSSlZFzYOQeby+t3vWoeWDvgvajawyTFEKtmPrF5oxnAK+EQjsVkeV tlpS3qUK39dwuqDCN/t2FR1j/4I1H6EGHazv7NSGLBSsd5Fb3oTwGL2pssxzpeQzl yr08Au4hQb58C8wyAQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MSbxD-1s8tqL42pd-00Swz4; Sat, 20 Apr 2024 13:54:09 +0200 From: Stefan Wahren To: Greg Kroah-Hartman , Florian Fainelli Cc: Umang Jain , Laurent Pinchart , linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH 2/4] staging: vchiq_core: Add parentheses to VCHIQ_MSG_SRCPORT Date: Sat, 20 Apr 2024 13:53:49 +0200 Message-Id: <20240420115351.27713-3-wahrenst@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240420115351.27713-1-wahrenst@gmx.net> References: <20240420115351.27713-1-wahrenst@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:AnSiHOkS6hjzQRD2VWP8Zn82xpdkf3SjMpF2G3UPKQwjbPXYfjb SAthhB2XBhku5ikcwBKzHD0T4FttuDzh3TAigAoVJA2inMlm+jznBaGsEIxP/FhX5rK0D9N TeCVIfha22rHR9gBteqKALepOFvXW2Yn53IwDnwDgqQynT7LTdQ1g9XJ3CmVtTLh9myYaIo ziLuv+lVUrGqh4lvR9ipA== UI-OutboundReport: notjunk:1;M01:P0:YE7E3tS8fb0=;ybjA1Bvs1LGMGqv8XdTgPBKBTZF qhDxwtml5zjYXGJsVOgp3wktkUXM6zAuxjF0OsawMnrL0MYYACdyX/+GMco5TqvECQXXeRBIq eFzOuI5ZKNXOXfpzyjW0tUQL2s9OOe/xgeu6/X5kSX7I4RqXXBG3zmnsgaJ9ZZ8HwBw8hesgG JxDeKQiD5KZ9nyUCHTeFc4hOdLXmQ2u3BXwNOd8EPA3tIJv0ofH3PZRXkFdD2EJ4fZvaCJ653 +UyIWXzKBhSSrbQk0LgYOKMvo9SSebVpN3VQbdHGJnCpXu8J3Gs7t1lt2e4wdEsIYITaWxNGn XMtxc6AeLXHgFmhfbYjddHwJLq6BAy89dLJhUdV4vnVuQidEpLKMswGZuyRXTyNrUKUWeUA0F +xKEsHUdht23aOd38jJJYbiruMRE+5Y/zffm9I+ReVvWb68R7bxYXFoyM2NtnQ873dMdXeQBo ixbBdAe+mfc9ShZPaIQ8qu+0hzu7wJteFdY8otaE8OvOtgDAb2RjbPKJJGiRBsUMgsne+oIAA 0lrq2rcXk5lei5norTu3v1P6w1lCM736oAkHCPHw57GOfgqUtzrYYnG/qmeHZLfyAilh3JWrL f6+150MT+uK+KZWvW3TWnVIBgZaK6hknufOV+ggdaKZtpOitRcauenAUyOv1TxvseJ5pQfoIF /f4c6gaZS+V1h9uzpbvDY9qe7Sc1DISopVl5UZseYhzz+++UksKZ3fuNSt9380iK8yqHhWBIr 3fvxXdmD9xMfM9Ci+hBSjfiAn+QMKgCLRWpD88xnMGamloWm/+hxve7YwN2HJjiI/2pmK6lq5 DMqGqemLUrWTZqMcWlVwCQF9d5bhUPFFZm9mQOjE7nOs0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240420_045416_210621_52B2E548 X-CRM114-Status: GOOD ( 10.80 ) 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 checkpatch.pl complains ERROR: Macros with complex values should be enclosed in parentheses +#define VCHIQ_MSG_SRCPORT(msgid) \ + (unsigned short)(((unsigned int)(msgid) >> 12) & 0xfff) Signed-off-by: Stefan Wahren Reviewed-by: Umang Jain --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 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 129d73fec2bf..58451ee08abc 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -43,7 +43,7 @@ (((type) << TYPE_SHIFT) | ((srcport) << 12) | ((dstport) << 0)) #define VCHIQ_MSG_TYPE(msgid) ((unsigned int)(msgid) >> TYPE_SHIFT) #define VCHIQ_MSG_SRCPORT(msgid) \ - (unsigned short)(((unsigned int)(msgid) >> 12) & 0xfff) + ((unsigned short)(((unsigned int)(msgid) >> 12) & 0xfff)) #define VCHIQ_MSG_DSTPORT(msgid) \ ((unsigned short)(msgid) & 0xfff)