From patchwork Fri Aug 1 16:19:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 34735 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68DC520540 for ; Fri, 1 Aug 2014 17:47:54 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id v10sf10490892qac.8 for ; Fri, 01 Aug 2014 10:47:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=h+DFeGGZjRRxGGApzt+81Vn2QNCmvP79kkBiS82amyw=; b=QMoCpVd3zRaExaPxNjbVdQblWBUId5WYarPM6BTck2KgwqqHptizaSzu548u2h1+j9 uBzDsLFZeVuAUjbjv/j/vXFHgN6N3hW/UKcT6/oG3hUHABRhEt6Pnvpq3iQORAeqmZnI QokVpY5+tJSViEJQUTKQyaqrw2J7mZQ8iYV33s9OOOsgUQ3+xOK3lmziSbhnLqt/MGgu G+r0hKd35Zo/FAaz4GPACvaBtNRz6owO99QyY6vUl4bRdIzYUEdP/SmOpPMH5sl/vwFx bZGrv6hbNJsNdqFJLDVh7uToFgpUsVvjZttpZhYXEI1DlxKLRU6u2hf3O9oN21MIlt6Y iolg== X-Gm-Message-State: ALoCoQnQQDDbnUGSTf66abaNXqSlzslAEmAXO+/z9QDenkYctbtZyIp48iWkC+3OwlUPUJtbmWOq X-Received: by 10.236.86.178 with SMTP id w38mr2506733yhe.13.1406915274196; Fri, 01 Aug 2014 10:47:54 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.246 with SMTP id w109ls1485730qge.4.gmail; Fri, 01 Aug 2014 10:47:54 -0700 (PDT) X-Received: by 10.52.232.200 with SMTP id tq8mr7188530vdc.32.1406915274124; Fri, 01 Aug 2014 10:47:54 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id mg6si7988499vec.35.2014.08.01.10.47.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 10:47:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so7188093vcb.4 for ; Fri, 01 Aug 2014 10:47:53 -0700 (PDT) X-Received: by 10.220.97.5 with SMTP id j5mr8521869vcn.16.1406915273942; Fri, 01 Aug 2014 10:47:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp128405vcb; Fri, 1 Aug 2014 10:47:53 -0700 (PDT) X-Received: by 10.194.61.47 with SMTP id m15mr10465253wjr.63.1406915272874; Fri, 01 Aug 2014 10:47:52 -0700 (PDT) Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id fw8si7347593wib.38.2014.08.01.10.47.49 for ; Fri, 01 Aug 2014 10:47:52 -0700 (PDT) Received-SPF: none (google.com: alsa-devel-bounces@alsa-project.org does not designate permitted sender hosts) client-ip=77.48.224.243; Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9DBEE26568E; Fri, 1 Aug 2014 19:47:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.2.4 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 1ACB7265784; Fri, 1 Aug 2014 19:32:04 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 27DCA265787; Fri, 1 Aug 2014 19:32:02 +0200 (CEST) Received: from mezzanine.sirena.org.uk (mezzanine.sirena.org.uk [106.187.55.193]) by alsa0.perex.cz (Postfix) with ESMTP id D2A6926568E for ; Fri, 1 Aug 2014 19:24:34 +0200 (CEST) Received: from 94.197.121.167.threembb.co.uk ([94.197.121.167] helo=finisterre) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XDGZ8-0006gz-RY; Fri, 01 Aug 2014 17:24:31 +0000 Received: from broonie by finisterre with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XDFYS-0003O7-Ge; Fri, 01 Aug 2014 17:19:40 +0100 From: Mark Brown To: Lars-Peter Clausen , Liam Girdwood Date: Fri, 1 Aug 2014 17:19:39 +0100 Message-Id: <1406909979-12990-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.0.0 X-SA-Exim-Connect-IP: 94.197.121.167 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org, Mark Brown Subject: [alsa-devel] [PATCH] ASoC: adau1977: Fix truncation warning on 64 bit architectures X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: broonie@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Mark Brown Negating ADAU1977_BLOCK_POWER_SAI_LDO_EN creates an unsigned long constant with all bits set which on 64 bit architectures needs to be truncated to an unsigned int, generating a warning. Add an explicit cast since we know this is OK. Signed-off-by: Mark Brown Acked-by: Lars-Peter Clausen --- sound/soc/codecs/adau1977.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c index fd55da7..70ab357 100644 --- a/sound/soc/codecs/adau1977.c +++ b/sound/soc/codecs/adau1977.c @@ -968,7 +968,7 @@ int adau1977_probe(struct device *dev, struct regmap *regmap, if (adau1977->dvdd_reg) power_off_mask = ~0; else - power_off_mask = ~ADAU1977_BLOCK_POWER_SAI_LDO_EN; + power_off_mask = (unsigned int)~ADAU1977_BLOCK_POWER_SAI_LDO_EN; ret = regmap_update_bits(adau1977->regmap, ADAU1977_REG_BLOCK_POWER_SAI, power_off_mask, 0x00);