From patchwork Fri Nov 20 11:03:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 329154 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp1172309ejb; Fri, 20 Nov 2020 03:12:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJymilFooyWAf8Fgv4ghASbWrWRJoTY4TE3Zx/o87mPMtcXgesxajGDmRGUeXLpN++GCQYXn X-Received: by 2002:aa7:cfcd:: with SMTP id r13mr10376102edy.63.1605870776118; Fri, 20 Nov 2020 03:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605870776; cv=none; d=google.com; s=arc-20160816; b=08exS7q9a6ai829ZT59BKNAh96lEfXoHglcJjCkqhfF5jgLNeTXmszzdY+ufyGCvSM G7I5+4vMChfGKBZI67NNj6cMKWeVi9n/pkCe5xU3e6SzaKbBVgI5FS96j6Pbc5Yc//h/ VVR5Sr3K5AyZA5GBK3Az9V3q8Fscg3ec+Kpw60UrO+wpbJz1skjWB8g9wc5O8fSEvNzx apvZXd+q1tBPb2SYoOT1npUO4Wm91jBQKn7LCWsA459tI4LbYc0PpVPI+7tUM0kSjAZh EqQi0+NHlAl9lcfAiB5hEXX6lRjMIHmkUYEBhH64aS4lt7MtKQ8l17HsNMuY1CHYiR+v iwJQ== 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=BPLWSXZwxi9cbO++rA4TDhNhIAT0/3NLvuCarDs0/OerulizaYNhh5Umz55FVuyDgP QdoYB/BnhZCTQ7ggGfixfh1wDCd8TSP62gChyv6Fcw1CVwwmisenUlC872wpdrHrkZKa WDmcxe7YDI4blRISoUwBaco5xMHyvsTIdeAPPGzQUBTcitD0ztYvm+B2wFVFIjhNdafz dShHbqEkH1UwPBYjBOYse4ESEQflnT+zrBUZsKpTwXVR0z/j8Yv6Vh3w2Lh/jHakix2j j5/8D6Jqc/uIxMMGY+LIptzyfSxQ64+PW2c+mRgCnOrDIW84L6ALrmZJlRQEOWAnPWXM Ca+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iyuYSPlH; 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 rk8si1487316ejb.654.2020.11.20.03.12.55; Fri, 20 Nov 2020 03:12:56 -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=iyuYSPlH; 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 S1728254AbgKTLFr (ORCPT + 14 others); Fri, 20 Nov 2020 06:05:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:53266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728251AbgKTLFq (ORCPT ); Fri, 20 Nov 2020 06:05:46 -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 03847206E3; Fri, 20 Nov 2020 11:05:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1605870345; bh=OFN24E43YJvgaH4jHFbBy/LxYpvbUaHvyiPjFyTyebU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iyuYSPlHYNrBvzXK8eWKO+Gc4E50E838BfbgTPSxeeOgs42ouMYWpyb4iRE6eLQtr m8TkVkYfy3PC6kxzsR1pKbvrxnIpvY8mwm3j/NrbcouOGqMNAeIA43nb923XUlOVQe GFMU4zD/pBu9RnPBXOYzBknwE3YuHTTV0FI71sw0= 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.14 17/17] ACPI: GED: fix -Wformat Date: Fri, 20 Nov 2020 12:03:28 +0100 Message-Id: <20201120104541.268753844@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201120104540.414709708@linuxfoundation.org> References: <20201120104540.414709708@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 @@ -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)))