From patchwork Fri Nov 20 11:03:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 329149 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp1166289ejb; Fri, 20 Nov 2020 03:04:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhjTfWRkER+FQ8tPS00F72EsW75WNumyn94JMD1BUt6fxV+ZoFOoHwEuOZ0Mgpa3piBWcX X-Received: by 2002:a05:6402:2363:: with SMTP id a3mr9592331eda.388.1605870286464; Fri, 20 Nov 2020 03:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605870286; cv=none; d=google.com; s=arc-20160816; b=XzvWbFLA2kH7ibpJ3PtUcmZQKNU8oEiWhkDjwI7NaF5yP5lFpxAtaHcSuxrIfGvDwp TfTn/z0eLFyjBJpfXCAspFkKhJ4FZ2wWz6Y3aCZg/fyFpYNsMJwwh9PsvQ74g94nTTsz WmNRNpOollV4Ehr96A27cvnWsG35nD3AE8fRKzijN4hMVTXcU/Lu9CI02oX7delf3i3L IGynBdqG8IwRT4s3aqXh2s57nr84Bin34cXMGv892tyxVvN7/WEpcVqg1oHCDHS/5gTN NEnXYJsuZNMiEjO9BzOI+HpGOR9j8fIE7hIDky/4UNx5cEwnpxMS6qhozy+BqtIJIlln LEhg== 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=PpocC5BFRfnMmHWej8PfD7017BATPGsjqfhdNMz2X/mDV3VSGqiwdC1nF6MbHZ6Eul +iQfjhfQeqxwSTwaoFm6GmDh2SY24Ae+ZprcyC7+DoF4h6k5KDZPiQRz8N+AYbOOAXah Pr4VJYsT2Z/Dhdk660+f5meAms2PT4jSQGvGjh02ypyiDJsJ89KlcFBYUbskN1qB8uaI eZdp2Xn5TPXtUZVSimkDOoKibI+D/aWS0rInq7mzUKMHN0aRn4TaFrggmMPyMoobr7eO WNcBK8V70IP9ZZsRsYCkzcsg178rWcckIQXtnl9INAne9Xp1w0mw0t0O8huynJ03qXaX TqWQ== 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 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 bx13si1538655edb.284.2020.11.20.03.04.46; Fri, 20 Nov 2020 03:04:46 -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=WCCFBIJQ; 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 S1727942AbgKTLEX (ORCPT + 14 others); Fri, 20 Nov 2020 06:04:23 -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 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)))