From patchwork Fri Nov 20 11:03:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 329150 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp1169733ejb; Fri, 20 Nov 2020 03:09:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzROtpLeKUi1GJcaZg1tBovntRUa9aA3j3WOaE+JE4ZizPYK4KL+rjlZa/VsBr5MQjgwHpI X-Received: by 2002:a17:906:3608:: with SMTP id q8mr1254265ejb.39.1605870550966; Fri, 20 Nov 2020 03:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605870550; cv=none; d=google.com; s=arc-20160816; b=P/Cxd+EJ4GuIxDmprdJ1waNykA9uJs0zccq16ymIHR7WIsPwfo9UHOznVYJABvOPUK /XLuewnf+Qy9ssaFxlBp//A+2cW2HPK8NKj5biamv+2/eOT2HD3gbxd5DLWtN4pnqt8m sJ4qQw79MgspS65vVbQX2+9xgd+hC4GksZal5dv2Ckk39FchFs91JY6x+Qwo7NKW3/mQ /R0nVCC5VV5olAtKUPI6QHdyQBDdacJDa13UpKY1vz5NL+o4ZnS0GPAAaynykKcoPHN6 E+XvEWmeVloi56+dHuiUIQ+xbXPEUbY8R8zkQm/U7+5rpAeoX2q1q3Lhp6L4YsRGDhCl JfIg== 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=vvL26nL1pnjpjXuohg3RwFE+jRwHN3jQR/7JwiPh91c=; b=wv3JPHZdkzDVOGro++JJ0NhlZ+1/7FUEPpoVmELkB57OmPPjtwZDs+k3koc9pGWVP4 yXq/p6t2zolhQvwQ+8vBmCt6udOLpGSpGcDAVXfhErxQokEJKrVo/8abSJQ20A3Y04xg DKr46TPyVSx6w5uJCTQwQcwiIQB5MOJs+rxnoF5DF3j+IQf67VRIODKTfyyZU4C+AktR vtIvHi44YkiYbazao/+0deyG/Y7Trx2xMVGmL+wKKKfwe9K9QjnAymO35kQkIGWuxWu0 5T/s2B8j/AoF0YvkH9UIJSo41FTdy0UEYbUayH1Q30WwgkHg4sK/CLtucp8iH+N12z6L 8uHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qi8PqQm0; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 s18si1776570eji.422.2020.11.20.03.09.10; Fri, 20 Nov 2020 03:09:10 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=qi8PqQm0; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S1728600AbgKTLIK (ORCPT + 14 others); Fri, 20 Nov 2020 06:08:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:55958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728598AbgKTLIJ (ORCPT ); Fri, 20 Nov 2020 06:08:09 -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 B90E52236F; Fri, 20 Nov 2020 11:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1605870488; bh=BXCl5lnHPHbgAc3oM33JSIXt4g6ZDhwRntFQ5umQ1As=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qi8PqQm0nfzDlqOgiN7js9jDga9GanEArNFdicXUp/IIgE7y4qGFkfM3M7uuGOJU/ TS6mWFEnBKRIrF5cCg+HTXax9xQ1nvrLdtOCWOCrpUWE7my4Ru1tgUwUDEzU8KYal8 2BIb4wapiFY0ZdysGJ1nSzbQHQe2aNaYa9un/Vks= 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 5.9 14/14] ACPI: GED: fix -Wformat Date: Fri, 20 Nov 2020 12:03:52 +0100 Message-Id: <20201120104541.864391180@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201120104541.168007611@linuxfoundation.org> References: <20201120104541.168007611@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@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 @@ -101,7 +101,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)))