Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1878643rdb; Mon, 8 Jan 2024 13:22:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkjYS3MuDljo0+RfPoAfYhjX654z3EqQc49l3KO/wIvb4HUJfExFihrQit+mjhYJHeAh6U X-Received: by 2002:a17:90a:4287:b0:28b:d2f9:c421 with SMTP id p7-20020a17090a428700b0028bd2f9c421mr1609773pjg.7.1704748975221; Mon, 08 Jan 2024 13:22:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704748975; cv=none; d=google.com; s=arc-20160816; b=EP5bsB/18H7GaBSByKmG+KMLU4cH2Ub9+zb/kas191SdFBEFfkDtt9I5f71H/qe3aW fl9Be7RWA7nNLsuGVM2DMMFqkcY9Zb6r4D19UKwmYuTwgGYNTpXcfNe+DLEeu8av3Gz7 WjNsx82gfstCqHSnuTazvn1sR8ogpGlA5wmbzk8OoRwk1RaITkBIHpttLcM774AmoQWN Y7DeSrcGM/nja+DdpCldOhWW1PRUL0SVJqMbH4RkNmGbaWamiH9g8DP1rf+fxgOLXTdr 6nGu/UwC/KWYKdUk237JoB9zsDjcSkwNZ2g7prhsgH2MJkz1QJnuKkcJkvLMXBgUWOqj JLgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=VUNdXHOSE1otKVhqoQJ0vnl1Z/KCXX9dHaRXKroZRmA=; fh=QJVlMtpGOITfJkwhswfNhG25s4S9XnD6rakAEruRZMI=; b=PJutskJGDJYmpyv1hHXYTsgJVia/EnzHzJkFB7XKe4uIEYNz38pISzAPgoSyRAviL7 b5F0/T/EWb7yghNZ4NSZfjxqgoKV6gqjVxO4Ud1+TtmlE+O2m08qkscY+hcuNEfenQ2A DGIGIQ5L2dFBM8TxffdA6u+sRJrindSX6Nlu7kyuztWhSnFP5m9QvEaIxFngS0xu9lqp Px7Nhu2zZoxJUAXTGpkapPj3gSKgWKslVTF2V4BcvmaZWD1yjgVo1XTqlaefR7Wte1/U cQDzb3H8rPUGurBJW6aFzIxcCRaDL3PD3wtz0wY7kuoG5nQgzFic1SckJsq9Dro0oyZH 2I5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q5-20020a17090aa00500b0028868509509si6218977pjp.108.2024.01.08.13.22.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 13:22:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 904A4B22D44 for ; Mon, 8 Jan 2024 21:22:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B58055E70; Mon, 8 Jan 2024 21:22:43 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from irl.hu (irl.hu [95.85.9.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BFD455E77; Mon, 8 Jan 2024 21:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=irl.hu Received: from fedori.lan (51b681dd.dsl.pool.telekom.hu [::ffff:81.182.129.221]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000072D22.00000000659C666B.00161D8E; Mon, 08 Jan 2024 22:17:30 +0100 From: Gergo Koteles To: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, Gergo Koteles , kernel test robot Subject: [PATCH] ALSA: hda/tas2781: annotate calibration data endianness Date: Mon, 8 Jan 2024 22:16:46 +0100 Message-ID: <3852ff28ea7d5d8f2086d8dd78aeff8d1d984991.1704748435.git.soyer@irl.hu> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 Sparse reports an endian mismatch. The amplifier expects the calibration data as big-endian. Use the __be32 type to express endianness better. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202401072137.Oc7pQgRW-lkp@intel.com/ Signed-off-by: Gergo Koteles --- sound/pci/hda/tas2781_hda_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index 4805cf0b6480..2dd809de62e5 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -424,8 +424,8 @@ static const struct snd_kcontrol_new tas2781_dsp_conf_ctrl = { static void tas2563_apply_calib(struct tasdevice_priv *tas_priv) { - unsigned int data; int offset = 0; + __be32 data; int ret; for (int i = 0; i < tas_priv->ndev; i++) { base-commit: 736c40609d31481b3b2fffe8c239f2c86fb2b54c -- 2.43.0