Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1173711pxb; Fri, 20 Nov 2020 03:08:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzGDAKWGsdPzVhlNGTLX5OBtLq4RA6NbBIiynGTeD6Co+q2PqO0a6jquG04gv/KoJw72QX X-Received: by 2002:a17:906:37d2:: with SMTP id o18mr33410630ejc.379.1605870498630; Fri, 20 Nov 2020 03:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605870498; cv=none; d=google.com; s=arc-20160816; b=PRl7MCfYHXRfPkhVtSWrYxjKt3y5M6xiuTb01gwu+Ka8qQVWvuNRdsnDP55WKb83Tw ydGF83dmaISajW43neG7IAWe6eQA5bC3R5RvZwni54IIIz6CBZLDkj4TYO+uT30W5Y+j Uhbtet4bOKijvJx7RCchvuBUsbUPaDTccyYlhsuUGveElPEKjnsvu/bXFwAehDUmjVP1 hQTabGYafcqYrAbcPbzo0ugRkwSAK6t643Agovkv2Lf1zDcUfqLgrMq7vD28GoPk6UO/ BTspIwF9heHB8qP1h3UKdUQEcaC8wxkQCThnjs7GxCiT5u1l/Eval0P4UB5etH63ichH fTLg== 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=YSLkabvB5PDtpavmmsKJMM7OWpFDAzlnbnlp2OM8hLk=; b=IGLB9rgT145XpRHugrFuBCJ9UfECyY3FzgALtPtEIHFZYkciHGWT7/Q1298J1YIeg0 9AnGGwwqmWADkY1wKOgZF2R1Q1oEuEwjLunwdQJfihvahjOWHtgXGCbx+kl1lOVk4/g4 qUoTbHtP+QCexH35XNoj7jxMZaREoPjjboiav4VpSPGxQv/cZzOZ2H1keRJGfOX30fAK cwWQnBPFCILhmuMDqvjwQsdnZ0Pmg8Trqkz0RDhq98lBcXqiVYpsv/1sgOk5Cc12PxfC s1c6EYsbXZbaqCwxCahq8MUlXm0FGo8B6eTx/RKggUCSNpO34Zpll4HxdBAV2kvp72Tw VuLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WCCFBIJQ; 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 sa28si1457491ejb.734.2020.11.20.03.07.53; Fri, 20 Nov 2020 03:08:18 -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=WCCFBIJQ; 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 S1727948AbgKTLEY (ORCPT + 99 others); Fri, 20 Nov 2020 06:04:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:51820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727940AbgKTLEX (ORCPT ); Fri, 20 Nov 2020 06:04:23 -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 D260B2242B; Fri, 20 Nov 2020 11:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1605870262; bh=OFN24E43YJvgaH4jHFbBy/LxYpvbUaHvyiPjFyTyebU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WCCFBIJQT42JE0pfmmh/RBTLpdeRw0JG78bDzxSOWY4RNONCqumpWfh7GOCSPTkKM 78sZJzOP6SM17SvpS1rw0g4APuXWqYrVLcjIwqx5LHggDL3Ir+2N4RkdyH9vfI46S/ 60yUzk7WGgYPyfIz7eehVmTvGpqYJOfDaMxLvuyg= 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.9 16/16] ACPI: GED: fix -Wformat Date: Fri, 20 Nov 2020 12:03:21 +0100 Message-Id: <20201120104540.521558662@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201120104539.706905067@linuxfoundation.org> References: <20201120104539.706905067@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 @@ -104,7 +104,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)))