Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp104478pxf; Wed, 10 Mar 2021 01:24:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgnLNmZNJ0HHaPXunJHecrZ27UTwXVtFqkmjZPNfkiTK8ZIgGX5zwKU+PwHVb5A/I/Q2oG X-Received: by 2002:a17:906:8583:: with SMTP id v3mr2640116ejx.361.1615368255130; Wed, 10 Mar 2021 01:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615368255; cv=none; d=google.com; s=arc-20160816; b=pkBasiFVQyGnvKn4cqEgqmO8y/sdMzcP0YTL0zTwipyBSmom9wdRMBgQ/l0Bal1QaQ B9abvah+pi7gAscxZwqWb8Cq4pKI/b9kIFx81gWLNyos9HetwnAXCl9v8E/ySluNwZE0 yLK+QbXAz7PabGPfLSITySxKTp3OwneJE4v+2/J4kJy1gznd/ahFE66gz4xSNUNAZ7hx /RU6otRkaw5xGdUV06GkKEH3WiuhPRBQlF2jn1r8bV8ivrbzfaNlUEMnQgrySxKQQ4uM pIeVQ+QZMdLu33xHnivROdmyja1F9gKsyWHaJm/z9LuiBOmCVDB8oxwHmm+iloGxcdBD 0+gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to :dkim-signature; bh=1y6nTbkc2BZ1puBINw0qrViHLJYP4GDPTEEElqmglWQ=; b=YKvSsIMnC7AArPHcIPuB7SX8N67GXCabEZrIPbbg0fe4DB7E/H0fjBWNkmVPnIg4Wd 0xzeZ0pTdOEoOCrFP21M7rHYfd3qjQA+07fXTDwv9F9SpcYmSBB8fNB0EZFRApattbrJ zjsIX6X3vJ1sgcNn/Wq+aYe2ALK0OtKJgREi+VCdiD8umocWf3EgEVS+/aOzpzonH/w8 Ns5UYyUroFoiYCkwovPssSDq31wucNIpDKEFdookkiitPy+gzpI/g6bl61Gjyxi4y3C0 dKiGs4VZu3poAfdoBL3ZBDvjqFQGrVKNM7mIAE7aF/lCt1OVhAbfY+x7pCTL9XH9LHOz 0C3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=UxZ9ViBS; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk18si10839773edb.178.2021.03.10.01.23.53; Wed, 10 Mar 2021 01:24:15 -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=@suse.com header.s=susede1 header.b=UxZ9ViBS; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230525AbhCJJW0 (ORCPT + 99 others); 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"); }