Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp333739rdb; Thu, 30 Nov 2023 06:10:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+KDefRsFLVZNCyYItpnSyz8w2OkexHN2DTabnhyJPldQX5flB4ktCzZh161mSgzebz/gs X-Received: by 2002:a05:620a:14b8:b0:77d:cfff:3420 with SMTP id x24-20020a05620a14b800b0077dcfff3420mr4206682qkj.9.1701353452919; Thu, 30 Nov 2023 06:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701353452; cv=none; d=google.com; s=arc-20160816; b=I6Lp6PwfrGobw2Z0WXKfsyZL5VJh0vzkTE2H64F0aycjWy5pxTilcy011qAO/7d35S 0xCBAT1Ui0r1/W4Z3bTSl/+Urruuvm4FC7Dfs1Z7eiqYbeIlJSGDFUYeCiD0FTS/65nh OIMHs0+E4WWD+6TIENba0oFK+RxbXl7GhNsvwoFaFFxOnrjrYg+2cLitpANAx7/uopqV Jw8YD76FvAHD+BiswFv/NAyAuD2PC9BtRwGDBzzgdkSEQWCYQoPf+1qPWbRhJYTquAC4 LJav7Py23tFxNgDVstja7JhYLgAP8pDbRGUWfqkuHGi/HcYsOpLSojnm8TRoN8seENvf Tc2Q== 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:to:from :dkim-signature; bh=wSrkKKckYRLH/YiddRVTLirSFys3HSeLYXKLMCjanOI=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=nqwkRQntEUMC8lJ476e6nbaaDdSxqo+KzEM768bIM7LxY2+s6yGIvwtb0Ce/RzSZoD jQcFmUZxuyqeDkoCWsemVg+Smh3wFaDSnVoQ0dtcfswCE6oAOXIAyeBDzoIQh2ZgVQqz 77QY8w8tCm59rmL0k1dyaFymu51iS43oFB6RmuZZgTzTiQYB9ap5SRpvPHtJ6ze/00Gk zhJS7AuL1GacvWiq681yCj4JLEI34A0lIq0Qu3C8xYmlBGpbeuYiYhj5KiENfF1UcFhc WrLeJQzescQR8s9TjTWNs1MRdarsud6kGv8uE4akdI4FWVJW+jpmDefky9FEJ8X4meXS 6AwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FgwHk1Rd; spf=pass (google.com: domain of linux-bluetooth+bounces-311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qr14-20020a05620a390e00b0077d5e6f7aaasi1150125qkn.253.2023.11.30.06.10.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:10:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FgwHk1Rd; spf=pass (google.com: domain of linux-bluetooth+bounces-311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A81F1C20A56 for ; Thu, 30 Nov 2023 14:10:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34D3848CFE; Thu, 30 Nov 2023 14:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FgwHk1Rd" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F123510F2 for ; Thu, 30 Nov 2023 06:10:44 -0800 (PST) Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-4b299e0703eso322224e0c.0 for ; Thu, 30 Nov 2023 06:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701353443; x=1701958243; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=wSrkKKckYRLH/YiddRVTLirSFys3HSeLYXKLMCjanOI=; b=FgwHk1Rdm2xoaad9wEgrQZ8aFUrQMZX8jWivqXyoqjWqf1LrC0dsMYB2bbFplXCk3S TZB2u4d9CcGJRpNmqF8qhW1zU+FhWWkG5TPfN8Fs6W5IXlHrUEIfeIqE5ODDcbuNGHM7 olN+0oklYBeb8UeraOZgJHwL4uiYUiVE2toTJ2bMVKC46PaAeH+TVhEyaQOqvlTlHhQV wMOI9exQvlbxHrS4WU7kSriCWWm12YBLtwPcihzVJwA6NgP82XBDgAUb3+ppeSYGRTS2 CbYgXAnj3cUgj7GaL+KladhNA32B9Z8OQ/v9KjjqFhj6VTV8WcZwaxvrMFPUscz2lZCA wzVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701353443; x=1701958243; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wSrkKKckYRLH/YiddRVTLirSFys3HSeLYXKLMCjanOI=; b=VL/IHDanYtbmBcLv7GojUCvni2KpsDXgEeyIfRPgN31tvLYAFVWbs+egiFudUvfN5Y GTS/+1Szvdn9Dac+7qNNsqKn7thifjYGAORyXhP+ufYWxOOo4uZ4S5w9is+ONjoM6soO Jv4U7VnFITpVr2kK7IByP/AGf/pUa2GUaSBIsd+Bb939h4bSphLIyUzXJIMAouspIaPX JNye7m5iZ36y4Hxxcbkg1SYLB+20F4+LCm2AUkhj712/cSZr6v0EIp8HqdLh0Wt8CZ9V 42fVMmnMis+SAtZqKhjyK479eWzxP2CsY8pwiSYSAF6osvhCbOn1nPcUR6aVOVu9Qv/i TmUQ== X-Gm-Message-State: AOJu0YzeOZl1fle1Jd4NjkdDteZiqA3sDEFGTcPiQVnFRht9MxVWF+Wq jfmyWFuGOY6yzkPO6cDKU/Iaf1kAS9sOmA== X-Received: by 2002:a05:6122:222a:b0:4ab:f857:9489 with SMTP id bb42-20020a056122222a00b004abf8579489mr22494292vkb.4.1701353442815; Thu, 30 Nov 2023 06:10:42 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id v9-20020a056122120900b004b0317c3576sm193002vkc.27.2023.11.30.06.10.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:10:42 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v1] shared/vcp: Fix build error Date: Thu, 30 Nov 2023 09:10:40 -0500 Message-ID: <20231130141040.2243867-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz This fixes the following build error in some architectures: src/shared/vcp.c:961:24: error: lvalue required as unary ‘&’ operand 961 | iov.iov_base = &cpu_to_le32(vocs->vocs_audio_loc); | ^ --- src/shared/vcp.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/shared/vcp.c b/src/shared/vcp.c index f2c04d184a08..06a22997a95c 100644 --- a/src/shared/vcp.c +++ b/src/shared/vcp.c @@ -956,13 +956,12 @@ static void vocs_voal_read(struct gatt_db_attribute *attrib, void *user_data) { struct bt_vocs *vocs = user_data; - struct iovec iov; + uint32_t loc; - iov.iov_base = &cpu_to_le32(vocs->vocs_audio_loc); - iov.iov_len = sizeof(vocs->vocs_audio_loc); + loc = cpu_to_le32(vocs->vocs_audio_loc); - gatt_db_attribute_read_result(attrib, id, 0, iov.iov_base, - iov.iov_len); + gatt_db_attribute_read_result(attrib, id, 0, (void *)&loc, + sizeof(loc)); } static void vocs_voaodec_read(struct gatt_db_attribute *attrib, -- 2.43.0