From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 168AFC433E9 for ; Wed, 3 Mar 2021 20:58:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8F9864E87 for ; Wed, 3 Mar 2021 20:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1838657AbhCCTBU (ORCPT ); Wed, 3 Mar 2021 14:01:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236858AbhCCShi (ORCPT ); Wed, 3 Mar 2021 13:37:38 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D2F6C061760 for ; Wed, 3 Mar 2021 10:36:57 -0800 (PST) Received: from zn.tnic (p200300ec2f086d00c42804c7137f86b4.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:6d00:c428:4c7:137f:86b4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D5A2F1EC0300; Wed, 3 Mar 2021 19:36:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1614796616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=cTpX8tdaG4cEB5Oo/0I4OUwn2PmXYx9DU6+xKcSA6gw=; b=SG1KtJDmEDAttFzmoaaEfy2W4Jv5zYqLk8bYy95MOFBFmfwBUI25HC/GKs9dZ0s52c/Oxj 36VzJf7x+FUTvD26vGqhNCki3kUOkKGqEyQKKYNNhpnSc2SV9442l7m4n8AKMNjnjzpKIj zNWHTI4fCSCtvpCyLiyYvnVdrFLn4f8= Date: Wed, 3 Mar 2021 19:36:50 +0100 From: Borislav Petkov To: Jiri Slaby Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Sean Christopherson , Jarkko Sakkinen , Jethro Beekman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH] x86/vdso: Use proper modifier for len's printf in extract Message-ID: <20210303183650.GG22305@zn.tnic> References: <20210303064357.17056-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210303064357.17056-1-jslaby@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 03, 2021 at 07:43:57AM +0100, Jiri Slaby wrote: > Commit 8382c668ce4f ("x86/vdso: Add support for exception fixup in vDSO > functions") added a printf of len which is size_t. Compilers now > complain on 32b: > In file included from arch/x86/entry/vdso/vdso2c.c:162: > arch/x86/entry/vdso/vdso2c.h: In function 'extract64': > arch/x86/entry/vdso/vdso2c.h:38:52: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} > I know it is obvious but how do you trigger this? A 32-bit allmodconfig with both debian's gcc-10 and leap15's gcc-7 don't trigger that warning. Which might answer your question why I haven't caught it yet. :-) Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette