Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2762381pxv; Sun, 27 Jun 2021 08:04:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj/6SLWGjDSwcLFfh8ZsfDQirHVAhDBT4+tTxcedRXw4WHQkhYK+iaJDrfre8C6OM6GPqM X-Received: by 2002:a02:230d:: with SMTP id u13mr18383230jau.138.1624806275510; Sun, 27 Jun 2021 08:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624806275; cv=none; d=google.com; s=arc-20160816; b=MulxOVAzSdiBpqLbZBgRB0LLf4Mxabz0v0DpoTy75Sulu4Kbd6hvb9P7Wanndcothw KwcVn3+SAcH0ehZjMhqDCwChiIqRKFCjKsQTknsYaD7KsOiSpBok1xSLldOdS0z25jYU k9+fdXN4gf1tTAVv3LPISS9sEsXiWgrMMq4AMHPNel2RIbhEFlHIUE3rl742ok80yy74 hQeGhhAlEYeKqYYCfMhJpKGvpsSND4/N3+x4Xrxs4gDa1K3jcHiJPwIgYPxaoQvEq7uz lN7CQNySeOTJrbJosHvEQ3RzAf308HqKYbkWnw0WmPDHBdmb7v/HCxkDJIAT+cS6ZBUH QeHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Wf5BFkhC4eHDLzGVUM0RvIcfKLSUjgXgNXrbFNbzz6g=; b=R2RCgtyslJKhcd0QwYTylI/hJKfA61WYj13oKK47hu32ccVmim+5owReyQi34OEv37 EV5zeFxgDMZ+lsMHaiYbPPJx0Ugth197EDTuMBFpXnBEowldpcMFsQMBLn9Vzgv3NJas NH1bLQJw5UkhJL9QYmi5oJehMMK+d3VSsqVZdzS6LdxJ8gImLaxVUnNMnn7cBdkm8SVu 7O71BVhxlB1evmDcN3gkLoaY/LKhVssmA2zy+C8di+yZtOr3+4lSuZExir7wLxwJRf+V f6E98M8pMrFLur0ayB4vOjdzPtIRvEbimjz0p8B84k2PsxvRTPaZI/WVeks85NlIdL5K v9ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Zmt08efp; 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 n28si5344034jap.124.2021.06.27.08.04.21; Sun, 27 Jun 2021 08:04:35 -0700 (PDT) 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=Zmt08efp; 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 S230309AbhF0PD6 (ORCPT + 99 others); Sun, 27 Jun 2021 11:03:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:36882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbhF0PD6 (ORCPT ); Sun, 27 Jun 2021 11:03:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 776F96161C; Sun, 27 Jun 2021 15:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624806091; bh=7/B22glLEoCb0RDdvXFkykmhtwP4ub1qksrbrrnFj/s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zmt08efp+LWSVmlXPfUtrB3FqAsKiIFdK94LlCfZSrMQoNxC9pG73A896qF1PWSAe 4eZz8va8vTMZQRrOW6tzCVrhnTtNKzPWcYbthSPKVyfLsFT2RMEOYtFqXUw3rsZjHP BMRmUsbjMNyO9T3glDdouT46cwm+rBnd+xMSu5yI= Date: Sun, 27 Jun 2021 17:01:28 +0200 From: Greg Kroah-Hartman To: Borislav Petkov Cc: "H. Peter Anvin" , x86@kernel.org, Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH] x86/tools/relocs: add __printf attribute to die() Message-ID: References: <1EFF7FE1-D341-41DF-8681-D386A1BD6F7A@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 25, 2021 at 11:07:28PM +0200, Borislav Petkov wrote: > On Fri, Jun 25, 2021 at 01:38:51PM -0700, H. Peter Anvin wrote: > > 64-bit cross build on a 32-bit platform... or Windows. > > Meh, nobody cares about those... :) > > Hmm, so looking at the PRI* inttypes.h things again, they're C99 and > they kinda look more elegant as they don't make us cast stuff. > > So how does that look? > > --- > > diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c > index 04c5a44b9682..2582991ba216 100644 > --- a/arch/x86/tools/relocs.c > +++ b/arch/x86/tools/relocs.c > @@ -26,6 +26,9 @@ static struct relocs relocs32; > #if ELF_BITS == 64 > static struct relocs relocs32neg; > static struct relocs relocs64; > +#define FMT PRIu64 > +#else > +#define FMT PRIu32 > #endif This works for me! It should fix the static checking tool that keeps tripping over this pointless warning :) Want to turn it into a real patch? thanks, greg k-h