From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 EBCF3FA372A for ; Wed, 16 Oct 2019 12:51:02 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 7171F2168B for ; Wed, 16 Oct 2019 12:51:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="IAJVP+Ia"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="GxVYz38B" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7171F2168B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=opensource.cirrus.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AD358857; Wed, 16 Oct 2019 14:50:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AD358857 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1571230260; bh=gAt3ZaAn1qF6ftt/O8TaeBn1xQcyXo10HbMB205gNWU=; h=Date:From:To:References:In-Reply-To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=IAJVP+IaE2AKNDUWsM6m2wJcjKKzW5tRfL2PGuklYqvAnljmpLxl5gm7PSc9rPi07 5zrkXvKyy+Uf4/+usd5cDa77TSsh5d86T9NWnggbUc3p9GJe93OAFV9PJzoecPQw3k 6UfZ80M50HSj3ZWK3yXple3poocqLXj1er5M8pxA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3C735F80276; Wed, 16 Oct 2019 14:50:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 74888F80362; Wed, 16 Oct 2019 14:50:07 +0200 (CEST) Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0BC6CF80276 for ; Wed, 16 Oct 2019 14:50:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0BC6CF80276 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="GxVYz38B" Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9GCnx9o021096; Wed, 16 Oct 2019 07:50:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=i4lndDz9nR/81JFIjDeU0LCA2LiFe2WLcVAB4eh2X38=; b=GxVYz38BEqcsjod0HlJBshnM/lFBfTPbIPP/8PTFcl5JBLujNZJRhoMhBn1QmaoiUrZX N3MVel3r0o3dsakL/kFkYkTd06WRFymt41FNeXYbRhnS4dbc6zBRA12ejqH/HYkgFcNe eaJUzdw6zrqozWLk/fksCJEmvqu9P3Qll6dHmKG4XxUodpdKgvaC+rheZfo4gh3M/h3a McqEV/FHiDEMQnHxhwkrJHisBeFaLLnmad++G6HWLwFreOC4W359aoGqxpEMg3/mzwuG p2LDYECJXIhYjICANdCjMtmaH3l34qkavOQwcSixteC+FYi/1XVmGUFyzcSlQ82Cyo+r bQ== Authentication-Results: ppops.net; spf=fail smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 2vkc83dhmk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 16 Oct 2019 07:50:00 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Wed, 16 Oct 2019 13:49:57 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1591.10 via Frontend Transport; Wed, 16 Oct 2019 13:49:57 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 92F682C1; Wed, 16 Oct 2019 12:49:57 +0000 (UTC) Date: Wed, 16 Oct 2019 12:49:57 +0000 From: Charles Keepax To: "Ben Dooks (Codethink)" Message-ID: <20191016124957.GD31391@ediswmail.ad.cirrus.com> References: <20191016120149.5860-1-ben.dooks@codethink.co.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191016120149.5860-1-ben.dooks@codethink.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-SPF-Result: fail X-Proofpoint-SPF-Record: v=spf1 include:spf-001ae601.pphosted.com include:spf.protection.outlook.com -all X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 impostorscore=0 clxscore=1011 lowpriorityscore=0 mlxlogscore=709 adultscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910160116 Cc: linux-kernel@lists.codethink.co.uk, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, Takashi Iwai , Liam Girdwood , Mark Brown Subject: Re: [alsa-devel] [PATCH] ASoC: wm8958: use to simplify code X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Wed, Oct 16, 2019 at 01:01:49PM +0100, Ben Dooks (Codethink) wrote: > Simplify the memcpy/be32_to_cpu() code by simply using > get_unaligned_be32() throughout and makes the code nicer > to look at. > > This fixes the following warnings from sparse: > > sound/soc/codecs/wm8958-dsp2.c:62:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:62:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:62:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:62:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:62:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:62:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:69:15: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:69:15: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:69:15: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:69:15: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:69:15: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:69:15: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:72:18: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:72:18: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:72:18: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:72:18: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:72:18: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:72:18: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:91:17: warning: cast to restricted __be64 > sound/soc/codecs/wm8958-dsp2.c:108:29: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:108:29: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:108:29: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:108:29: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:108:29: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:108:29: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:120:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:120:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:120:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:120:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:120:26: warning: cast to restricted __be32 > sound/soc/codecs/wm8958-dsp2.c:120:26: warning: cast to restricted __be32 > > Signed-off-by: Ben Dooks > --- Acked-by: Charles Keepax Thanks, Charles _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel