Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1176723pxb; Fri, 20 Nov 2020 03:13:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcGt18ytVvWftWzRSsjkP3PnzoAtd8n+7NQrSTqV6WNd2O/HOz0sEMBXoybPPi8OhruHQu X-Received: by 2002:a17:906:b20c:: with SMTP id p12mr31998320ejz.369.1605870781557; Fri, 20 Nov 2020 03:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605870781; cv=none; d=google.com; s=arc-20160816; b=jE5pHsjD2RvouJkbYYcn7ClEqA405I/SGkt2xtznxLpeNCQ7htehGNZFW/hV4IH+Ku kmQzO6SHpdRqQoeQGu4UmUn1hjPjaW7JhWGHpM3qCl18rbkacIFXBrFd/D+QAUcvWt+Y GjBJagRBVJHcSbVrlH5bbqaA/W+NySh5MFx0ApIywfnaP6Kv5NxTVSQk/CInsWTZtU4Q PI8mYvcTbtIm699Xt8ee00M7IyF9KQZLiaTzIwWE6bzkenU+8BsWkqB6N+ahMdrhd4/d oaYua2JG5xknVJtBBAn7WhREXIyR17kRoGpNOAGoa5ND5FgnGrSl8b5JtsawPKJGA8ac hIBQ== 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=dDdBITWmC2rOGQJd19DueLM0aoyc6z27gfHOx8Hucf0PlpowlrX0IuE8n5sv92jxZR 6aoy3CLuW2dBVl0QvXzEYdcVhUEv+8GpOn4X1twqZrS3Ge5pWflcPwK2gI4OH0luIM9c oJJiUM5/qf9OqLvmFh85kCJlNWFr57gxbioGcphylUycgr+d5IoKdNapXM4Jn6K98afn R85fiWoH/GeFSNPaTpDJ+LaMIj2OeZ6KFY8ereOZxEI6R44W1Uup2lOiWkEeGlrzCMew U8qP6xdPimc6ipDRnpmn9v8oSUAusOC5jR47kLLbpUjex7tnsZFWz1f8ArnhvsKKSYKG Q/Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zte8ysTK; 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 i2si1715027edn.398.2020.11.20.03.12.39; Fri, 20 Nov 2020 03:13:01 -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=zte8ysTK; 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 S1728470AbgKTLJn (ORCPT + 99 others); Fri, 20 Nov 2020 06:09:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:54908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728475AbgKTLG7 (ORCPT ); Fri, 20 Nov 2020 06:06:59 -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 C2EBD206E3; Fri, 20 Nov 2020 11:06:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1605870417; bh=BXCl5lnHPHbgAc3oM33JSIXt4g6ZDhwRntFQ5umQ1As=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zte8ysTKuMLp190ftSCN9hwXkQTcmSmOWubpyO3DowZiB3Ysd1HzeRREyKjgsUbkg xnwedGiWP7uqg2BY2pjzeN0xyuTuFlWQR10szOc9b7wmv7KhqpvmD9LAiJziHJ7GgP IrEp64wLoB80okudS+XEHmGXKzcTAoaLj2ajKnjU= 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.4 17/17] ACPI: GED: fix -Wformat Date: Fri, 20 Nov 2020 12:03:44 +0100 Message-Id: <20201120104541.906965532@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201120104541.058449969@linuxfoundation.org> References: <20201120104541.058449969@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 @@ -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)))