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=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 529D1C433E0 for ; Wed, 10 Mar 2021 09:22:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F3C4064FF3 for ; Wed, 10 Mar 2021 09:22:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232580AbhCJJW0 (ORCPT ); Wed, 10 Mar 2021 04:22:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:52040 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232578AbhCJJWR (ORCPT ); Wed, 10 Mar 2021 04:22:17 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1615368136; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1y6nTbkc2BZ1puBINw0qrViHLJYP4GDPTEEElqmglWQ=; b=UxZ9ViBSccTF75jAfx5zbXUqTqAq43N89+KYesb//58yVyVF3WBnN69yBbXy16yh9RkwdC Tih1Qzk/I0bg3xWpMxAhXTaOuYMiCLdI1TceclFNSoGJ+LcZVfImBKZ3gwVzJJZiGIJ7c9 D0aopOOdLK6wZqa7nuu40WLZLaNsWyQ= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4A37FAD74; Wed, 10 Mar 2021 09:22:16 +0000 (UTC) To: Andy Lutomirski Cc: lkml , the arch/x86 maintainers , Thomas Gleixner , Ingo Molnar , Borislav Petkov From: Jan Beulich Subject: [PATCH] x86/vdso: avoid warning when building vdso2c on 32-bit host Message-ID: <14b269f1-a9d2-3083-00d7-c23368f135e9@suse.com> Date: Wed, 10 Mar 2021 10:22:16 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org size_t arguments can't compatibly be passed for l-modifier format specifiers. Use z instead. Fixes: 8382c668ce4f ("x86/vdso: Add support for exception fixup in vDSO functions") Signed-off-by: Jan Beulich --- a/arch/x86/entry/vdso/vdso2c.h +++ b/arch/x86/entry/vdso/vdso2c.h @@ -35,7 +35,7 @@ static void BITSFUNC(extract)(const unsi if (offset + len > data_len) fail("section to extract overruns input data"); - fprintf(outfile, "static const unsigned char %s[%lu] = {", name, len); + fprintf(outfile, "static const unsigned char %s[%zu] = {", name, len); BITSFUNC(copy)(outfile, data + offset, len); fprintf(outfile, "\n};\n\n"); }