From patchwork Tue Apr 14 01:49:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 227964 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3CD5C2BA2B for ; Tue, 14 Apr 2020 01:49:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7EE652072A for ; Tue, 14 Apr 2020 01:49:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="U1/cTtho" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728700AbgDNBtq (ORCPT ); Mon, 13 Apr 2020 21:49:46 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:49690 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728247AbgDNBtp (ORCPT ); Mon, 13 Apr 2020 21:49:45 -0400 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200414014939epoutp03b79d2e62876180811e09df958cc162dd~FjIzIFOwV0252702527epoutp03Z for ; Tue, 14 Apr 2020 01:49:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200414014939epoutp03b79d2e62876180811e09df958cc162dd~FjIzIFOwV0252702527epoutp03Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1586828980; bh=q+0JxxlqeXL1LJhYQIOYZ4/6oRjGLlg0Kil276s8dEU=; h=From:To:Cc:Subject:Date:References:From; b=U1/cTtho3Tte9PGMEtPvZbRR2EYviH6oUqLUmNl2W4SIXbS7REG4eh6WLN6WlG6f/ IVJRWOvijxR3zLmloMiXcc1Bg3jwnzKPzhK/QUYOq6ZM/QsyohbGAYcIoYPJZVS5oH aCeAJFBK/UVH4tOtRedGcl3KD2Bq1CPXa3SCz0Jo= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20200414014939epcas2p2c47538cba1e38cf8d481047821e0ee47~FjIyyjMDD2781127811epcas2p2K; Tue, 14 Apr 2020 01:49:39 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.182]) by epsnrtp1.localdomain (Postfix) with ESMTP id 491T1t1Y8zzMqYls; Tue, 14 Apr 2020 01:49:38 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 25.E2.04704.0B6159E5; Tue, 14 Apr 2020 10:49:36 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20200414014935epcas2p1a66f4fb5966e7cb5f416c2c29ac2d41f~FjIvMTGac1486014860epcas2p1W; Tue, 14 Apr 2020 01:49:35 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200414014935epsmtrp1ccb27d77008f72b24d729d228891a7ed~FjIvKyOna1329113291epsmtrp1B; Tue, 14 Apr 2020 01:49:35 +0000 (GMT) X-AuditID: b6c32a46-811ff70000001260-7e-5e9516b03c85 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 04.19.04158.FA6159E5; Tue, 14 Apr 2020 10:49:35 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200414014935epsmtip1def94eed6f8715b79e603275218c701c~FjIvEBWJZ2729027290epsmtip1I; Tue, 14 Apr 2020 01:49:35 +0000 (GMT) From: "Gyeongtaek Lee" To: Cc: , , , , , Subject: [PATCH 1/4] ASoC: fix regwmask Date: Tue, 14 Apr 2020 10:49:35 +0900 Message-ID: <000501d611fe$f35f6910$da1e3b30$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdYR/utaRna4bAGEQGKqiONXE7DI1A== Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJJsWRmVeSWpSXmKPExsWy7bCmqe4GsalxBr3LWS2mPnzCZjFjWzeL xeqrW5gsFmx8xGix4ftaRosjjVOYHNg8Nq3qZPPo27KK0WP9lqssHp83yQWwROXYZKQmpqQW KaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl5gAtV1IoS8wpBQoFJBYX K+nb2RTll5akKmTkF5fYKqUWpOQUGBoW6BUn5haX5qXrJefnWhkaGBiZAlUm5GTMnnudueAh d8XNnRPYGhjfcnYxcnJICJhI9C74wt7FyMUhJLCDUWLynlOsEM4nRolLb56yQTjfGCV+3j3A AtOyZuIBqJa9QIk7k9hBEkICLxklJq1UAbHZBHQlvty7wwxiiwjISExv3csEYjMLNDFKNHf4 gNjCAuoSE9deYgSxWQRUJS7saWADsXkFLCXmdpxmhbAFJU7OfMIC0Ssvsf3tHGaIIxQkfj5d xgoxX0/izZKPrBA1IhKzO9ugao6wSbxYAvWni0TfilVMELawxKvjW9ghbCmJl/1tYM9ICDQz Srw7+wcqMYVRorNbCMI2ltgy9xRQMwfQAk2J9bv0QUwJAWWJI7egTuOT6Dj8lx0izCv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Ja13zz+6/vL++IL/p77wLH6ke3X yB3Kn67MStJM7jcpU/Mt6326w2WTwdflJhxXgjPyH+W8bnLq7Jmf/aFv7y9uvVk918Lr12wR Epz55VzZmzS/7tk3d7xSEyv0m/F8Z/iHixKSSizFGYmGWsxFxYkAn8dVoX4CAAA= X-CMS-MailID: 20200414014935epcas2p1a66f4fb5966e7cb5f416c2c29ac2d41f X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200414014935epcas2p1a66f4fb5966e7cb5f416c2c29ac2d41f References: Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org If regwshift is 32 and the selected architecture compiles '<<' operator for signed int literal into rotating shift, '1< Link: https://lore.kernel.org/r/001001d60665$db7af3e0$9270dba0$@samsung.com Signed-off-by: Mark Brown --- sound/soc/soc-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/soc-ops.c b/sound/soc/soc-ops.c index f4dc3d445aae..95fc24580f85 100644 --- a/sound/soc/soc-ops.c +++ b/sound/soc/soc-ops.c @@ -832,7 +832,7 @@ int snd_soc_get_xr_sx(struct snd_kcontrol *kcontrol, unsigned int regbase = mc->regbase; unsigned int regcount = mc->regcount; unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; - unsigned int regwmask = (1<invert; unsigned long mask = (1UL<nbits)-1; long min = mc->min; @@ -881,7 +881,7 @@ int snd_soc_put_xr_sx(struct snd_kcontrol *kcontrol, unsigned int regbase = mc->regbase; unsigned int regcount = mc->regcount; unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; - unsigned int regwmask = (1<invert; unsigned long mask = (1UL<nbits)-1; long max = mc->max;