Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1212060lqj; Mon, 3 Jun 2024 13:51:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC2eH4/XdTAVsOVNL9f0p0dbAQLReJ6peq0wTqf6FDVzxLc0ImYAlHRw6fUVMk4Kr3lExBVKK0NL+qzwzgsKALwMrWUVVCWSotIzqf3Q== X-Google-Smtp-Source: AGHT+IFmO8bJjYtrAWQoj3B75UmOyj5K429125JhGmqn5Zj/5CcX6ziG6VA9BAkOM23iZf504mQ2 X-Received: by 2002:a17:902:e5c3:b0:1f6:65c5:ce7d with SMTP id d9443c01a7336-1f665c5d1a1mr67927415ad.56.1717447870091; Mon, 03 Jun 2024 13:51:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717447870; cv=pass; d=google.com; s=arc-20160816; b=xGr+B8YdIEUZyDXWnj6IboJdF92MDYN19MCCEfW7KAAz0Eg59airn5KcgGstJfg8XI 7Zibgx8aBiPlyOrE0hlsF5qYIYwJ5rzvNbisK1LOmyiifeMvMSRgqbqmvzAjg4gwTHvy x7QQD64Pnr40w7zAbyFUevotp2jcFPM61cds1JiI5GWAm1LkShKrVCqd/tQkcvRGKdAv Hi7uuiD2POoZad8ihwGjr1SQo/D+CN89Ll+xTuWJfBWlLgxHKIE2qmlYnKyQBawFmaB5 yiCYERi7sGElQTHOQORFBhQnY7FmbKXSAp+T3NC8joTW3gVNGBB3TB5W6uYwYGtZHQAR o0zw== ARC-Message-Signature: i=2; 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:dkim-signature; bh=vzmMB6XxXPRXSfazlmTWuRuS8YfP5O1rWg9B1xuk3S0=; fh=2bJZpBJrCdpX3hJh25PkDmDdoVFpJ20nMpt8xmUQ6+U=; b=Ao+9Glel3RYfnNgJJCVq6H6NaNsb/4Uub3zEsNPR6VpxZpuQfFSHnEgiI5fY7cECDy ylg33d3V6VVitSKateIv57fn6zxfk2QBot3IuWwrLEYp3+/8dDlxc+omjYTTvpqjh1OS jbzvdll4UYqFttuKFLhQN/Q9J23bAkq9GOBl5rGfQgqoTv72AZQ1Jft894BPrrdHN7d8 BVTa8oiLR/cPdHZjKOJykbmUv7GlzJIHGCQirTb2slOuNcXcLMs1PmP34NTOCzn8AtMu Ir4HyWbrWg2GtoYW9uN4GYXT+GfQPRb4XIW3fiSdcuQ1eiQUT1kOBrX2+QPUK+ywiZau nYbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O3e35LUN; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-199702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f65e55b98csi6450445ad.580.2024.06.03.13.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 13:51:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O3e35LUN; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-199702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B9E50281E47 for ; Mon, 3 Jun 2024 20:51:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C28CC13B59A; Mon, 3 Jun 2024 20:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="O3e35LUN" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 871401386D0 for ; Mon, 3 Jun 2024 20:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717447864; cv=none; b=hdOc/a4EmTTg9+D4yx0/zckGX8L9EDOUfEVxzzcNHtpwOkE+b9DFggq67opBOOsC0t6wgNyxArwN1C/fitWjGSSPeqH4tzifysBxKFzbmcON0gpQDiEvpcVl41iT18WC7R5dWpPyNWiI1xHHU1VCp/MLQkTGVlv5QLaJLOw2M2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717447864; c=relaxed/simple; bh=unDaOeY2f1Ime1NC/i6r4nmlvC92sp9KHWcJMQqUEWM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EgE7TWI2tncaeQOxasGIUOelAyE4/Xki2ZxIAQ9R/c95i/nfuE8W3xmYeHFDajTPYBDswO2VDv2/d60AxJU0d6a5hyM5u6vsc+b2y8zwBx/baJat28o3csf/5cKMaL3krvs/lI2XLArLcIq1N/gYOzpTHE5z9u8Imj3kRRI9vdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=O3e35LUN; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717447861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=vzmMB6XxXPRXSfazlmTWuRuS8YfP5O1rWg9B1xuk3S0=; b=O3e35LUNDUCgrpMz+xbJXBgZtE815DZhpcmCe2vOVUfJU09on9IQE1Kr/F1yMolFqPsUMx TNgjVwn+wwhZ2+fc+iKCHzt6uuKzskmo3c53s0yPoQQUkMhFncd57BrGfYvkUeHUsSnRID Q5XFXz6b85d/wFvSAaQW06e99fCOe2k= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-85-LGq5ZXZJPCe3-Z0hkAw-HA-1; Mon, 03 Jun 2024 16:50:56 -0400 X-MC-Unique: LGq5ZXZJPCe3-Z0hkAw-HA-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D44651913F5A; Mon, 3 Jun 2024 20:50:54 +0000 (UTC) Received: from shalem.redhat.com (unknown [10.39.192.102]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8F5081956087; Mon, 3 Jun 2024 20:50:51 +0000 (UTC) From: Hans de Goede To: "Rafael J . Wysocki" , Sakari Ailus , Wentong Wu , Tomas Winkler , Arnd Bergmann , Greg Kroah-Hartman Cc: Hans de Goede , linux-acpi@vger.kernel.org, Kate Hsuan , linux-kernel@vger.kernel.org Subject: [PATCH] mei: vsc: Fix wrong invocation of ACPI SID method Date: Mon, 3 Jun 2024 22:50:50 +0200 Message-ID: <20240603205050.505389-1-hdegoede@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 When using an initializer for a union only one of the union members must be initialized. The initializer for the acpi_object union variable passed as argument to the SID ACPI method was initializing both the type and the integer members of the union. Unfortunately rather then complaining about this gcc simply ignores the first initializer and only used the second integer.value = 1 initializer. Leaving type set to 0 which leads to the argument being skipped by acpi acpi_ns_evaluate() resulting in: ACPI Warning: \_SB.PC00.SPI1.SPFD.CVFD.SID: Insufficient arguments - Caller passed 0, method requires 1 (20240322/nsarguments-232) Fix this by initializing only the integer struct part of the union and initializing both members of the integer struct. Signed-off-by: Hans de Goede --- Even though this is a one-liner, figuring out what was actually going wrong here took quite a while. --- drivers/misc/mei/vsc-fw-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/vsc-fw-loader.c b/drivers/misc/mei/vsc-fw-loader.c index ffa4ccd96a10..596a9d695dfc 100644 --- a/drivers/misc/mei/vsc-fw-loader.c +++ b/drivers/misc/mei/vsc-fw-loader.c @@ -252,7 +252,7 @@ static int vsc_get_sensor_name(struct vsc_fw_loader *fw_loader, { struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER }; union acpi_object obj = { - .type = ACPI_TYPE_INTEGER, + .integer.type = ACPI_TYPE_INTEGER, .integer.value = 1, }; struct acpi_object_list arg_list = { -- 2.45.1