Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1174741pxb; Fri, 20 Nov 2020 03:09:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzZz9FpFljzczWROpXSfJF41CWOJ9N2cHB3r1ZZx4lyxWJ1GZNSYiUxkDnxOkMFA37//Po X-Received: by 2002:a50:f198:: with SMTP id x24mr9504096edl.255.1605870596736; Fri, 20 Nov 2020 03:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605870596; cv=none; d=google.com; s=arc-20160816; b=ex+/XBIeIjpn3OvgPBW+ZvmWi1WSIDCdXuMKCWLSaQlFaWqprfgpnb/x0y7YHdZxgP J+F2NR1A3SgK+mFbn8/ZtaaZy4ZEvcwcipWF6U46cG2KkyZSFKghNqacu/uyLDAhHm9l 7QDOHYaIYJlE9HeV0InjrH+5uLgFQ+lii1quOROEY/xS3+9TyoDl+RPZRVvbpnn9yi5n Whsr2dcruS8WuAEXOH9SZg6Aik4AO165hXPQNfFDdVur3mu93sRJc3W3C8cO1Nu1OGBv fJ4AIb/HxSUTE9xV/D6xIHIwXwudZnQrUnUOdCrVuhd5NpxLhzdd/i3ysv89dtFzWsYO OwYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2BJOUGGm6JYvTbU90H82R2kv844HJdRsbx5YnCz/JSA=; b=Li6QGSEJ+QWSdEAd7yrPfZ+l8oapAVI9auQQ2GJbsN3IRJVgAvjzgYYjerx0+N6573 /NYbhvJOVGP+WYPrjacavZX72hUpGCAGKTeuVCQ9YY+O3zOq7tntjepArocOq+Qw0pMU /eTq86oqLe0P1m3a7dlNrlS+F93lhFUoFCto8aFfs/iyExVXCB/QTMMO03Y28s7lhYDa KrxAIE8ZXLkHRtlwXxDTk7AGOKyYwdavRft5/t+oofEFcV5yKgF3z4o2Pz0xLrR1S9HR 773yc2uJWTRluLOTVSvZierGMJUMaGOcKmPidHMe2TogFbknDlanFsMC39iQvGTLs1nw dziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w+fajXk4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si1452026ejd.450.2020.11.20.03.09.31; Fri, 20 Nov 2020 03:09:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w+fajXk4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728424AbgKTLGl (ORCPT + 99 others); Fri, 20 Nov 2020 06:06:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:54204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728339AbgKTLG3 (ORCPT ); Fri, 20 Nov 2020 06:06:29 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 136742222F; Fri, 20 Nov 2020 11:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1605870388; bh=S4yqVe9RGqCbG1WSJtpJTU8M4W8YbB3MYd/RdiTJ7fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w+fajXk4LZ2s+/RimIZeCn+YdXGvdh98J8h1CQtSVRSa671mjansq2IkfIIoJAWUA Wyd76Ri2EwApfR+6yDIwCMmumhgnEWYPwtRL0vQqmeu1vAQ0oFK9SMI3wgtgSqilHC Zp65TofKSofikn1U/3tm4Fr7C7V7r/ndXMuDn/vg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , Nick Desaulniers , "Rafael J. Wysocki" Subject: [PATCH 4.19 14/14] ACPI: GED: fix -Wformat Date: Fri, 20 Nov 2020 12:03:35 +0100 Message-Id: <20201120104540.521171626@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201120104539.806156260@linuxfoundation.org> References: <20201120104539.806156260@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Desaulniers commit 9debfb81e7654fe7388a49f45bc4d789b94c1103 upstream. Clang is more aggressive about -Wformat warnings when the format flag specifies a type smaller than the parameter. It turns out that gsi is an int. Fixes: drivers/acpi/evged.c:105:48: warning: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Wformat] trigger == ACPI_EDGE_SENSITIVE ? 'E' : 'L', gsi); ^~~ Link: https://github.com/ClangBuiltLinux/linux/issues/378 Fixes: ea6f3af4c5e6 ("ACPI: GED: add support for _Exx / _Lxx handler methods") Acked-by: Ard Biesheuvel Signed-off-by: Nick Desaulniers Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/evged.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/acpi/evged.c +++ b/drivers/acpi/evged.c @@ -110,7 +110,7 @@ static acpi_status acpi_ged_request_inte switch (gsi) { case 0 ... 255: - sprintf(ev_name, "_%c%02hhX", + sprintf(ev_name, "_%c%02X", trigger == ACPI_EDGE_SENSITIVE ? 'E' : 'L', gsi); if (ACPI_SUCCESS(acpi_get_handle(handle, ev_name, &evt_handle)))