Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2161058pxb; Mon, 23 Aug 2021 13:31:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCBlwzPbpTMTsgnDyAmRnrghZr7XfvT/K0z/q+Y0xB/CjNwdiDRTzG2OCKkjare+e0PDcO X-Received: by 2002:a92:c70e:: with SMTP id a14mr22852222ilp.299.1629750668860; Mon, 23 Aug 2021 13:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629750668; cv=none; d=google.com; s=arc-20160816; b=ESmuMge5dIJ1bzAq61LgEnY2H3ZO0p4tlg+xBRn4sXeVIU0RVOGnXO9rkqBylqQZsu rZPaiWRY3dK8pgaqNFvOfIwKo3iM2VMix39gr/fNF/c/WekCvQ9FNXRZ8MrtT8Y7zk+Q 8GPTyMSSmqVN4waIwesbtJ2UPyn37j0tlK8IdZM36aNWkL2lRQMzF76CUPVcPUahxl+L Kxhyr2WChDdxshZ2zmfbv5djRvohpcgO//wN1pZ0915gj//F0WCdHsgoaFzTfP4db0F8 w/teFNZc/K6FP7qXldEG/2r8ZgM7j1I2h7Ikk81fcoOWIfG32R4VTs9+6Sp+1RXz9ivr IykQ== 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 :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=jrb8MmGaC68emddPwQPjXM1GY7GuBgRkSODpa1XojoA=; b=Th0i7UOauTwpmC8HnfbLT0KU/pWYek2nHeGakfL5H82ImLx6XQ0eTZacWluTz7dcTL fcn5HSz5MAmSk0fHEsD6hBH7qYPZcqLVvlqTHxzldFymPKphp5GwbstHZStTWgYYluWz xZZ02cD8QWbYFSWxV5XHEgWlre5KPzIxBg345hFLuE532flPJ72qr5dyTzsLZJ2Llwfd a6yD1amnTE5EHVHvD+mJysVD/a9RpHpLKHOaEJT+axlTWiYOHIi9vvXcxoJXsEauVVqp n4jkrfyxqkXOV6WAV7raEDQ79FlpbIoF9yQolWPPyr+YOhoQvZRV0eMxb/u50xI7D/3Y FF1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Jix95rVY; 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 y15si15641540ily.49.2021.08.23.13.30.57; Mon, 23 Aug 2021 13:31:08 -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=google header.b=Jix95rVY; 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 S231569AbhHWUa0 (ORCPT + 99 others); Mon, 23 Aug 2021 16:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232165AbhHWUaZ (ORCPT ); Mon, 23 Aug 2021 16:30:25 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBBA3C061757 for ; Mon, 23 Aug 2021 13:29:42 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id f6so15918938iox.0 for ; Mon, 23 Aug 2021 13:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jrb8MmGaC68emddPwQPjXM1GY7GuBgRkSODpa1XojoA=; b=Jix95rVYPKxFfYL/aPT0sbEErQFG61rQbSUAEgNs/qK+fLsttL42hCyXs3hCp5CV0R rsX0/JQ+9CLBWK5wOGmo8fqZW/0iI/q+zzd1IrZBKMm0G27kGdG5UyrDI7/mtfbYoBCE nWdejcd7DXz4DhU5ADMGa0i1ys42I2y/8956E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jrb8MmGaC68emddPwQPjXM1GY7GuBgRkSODpa1XojoA=; b=gPbY7nHG66VdJmVdPNIBEVpbuifEA3YrMS3y/RYtofGOzmuTW3qIf/8EpUVmgJZsZC m8Bej5PRL6ap+LB8MToUfSzCFfvy6AnaUxmFk9CIiOz8x5sJSucYxMxgeAVV/aFNiPCe BsiEPC7GPTyOMb5/WjUw30X7TI2/CND4CInb0z4kahzVDocP/tmnyBike/u9O5nSQggA QFlcFtNHOMdgpdY0SGh5ZbvO55h7DWOvGg7utygu5e9L5j38f7ZEnQNn32MRXHIAO253 TLjQf6w0nJX2jQrDYUsW0jMAqSC7CGzeAd8hx2FciyLCDkNEk5sgKs5afd9EI5dAT93d tYrw== X-Gm-Message-State: AOAM533OclvJMsUPnpCbAwU0/UkMgZXDedrWSio73rQwHRKGIssRyOXV kR9hZk+NJ8l7ojrMzU8Eqh+qcQ== X-Received: by 2002:a05:6602:2ac7:: with SMTP id m7mr28422332iov.66.1629750582194; Mon, 23 Aug 2021 13:29:42 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id y12sm8635418ilm.81.2021.08.23.13.29.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Aug 2021 13:29:41 -0700 (PDT) Subject: Re: [V2][PATCH] selftests/x86: Fix error: variably modified 'altstack_data' at file scope To: Jun Miao , shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20210823135626.3926364-1-jun.miao@windriver.com> From: Shuah Khan Message-ID: <437f8945-cbd9-dccd-2d86-bd6746d1424c@linuxfoundation.org> Date: Mon, 23 Aug 2021 14:29:41 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210823135626.3926364-1-jun.miao@windriver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/23/21 7:56 AM, Jun Miao wrote: > Based on glibc 2.33 -> 2.34, there is one new feature: > > NEWS for version 2.34 > ===================== > Major new features: > * Add _SC_MINSIGSTKSZ and _SC_SIGSTKSZ. When _DYNAMIC_STACK_SIZE_SOURCE > or _GNU_SOURCE are defined, MINSIGSTKSZ and SIGSTKSZ are no longer > constant on Linux. MINSIGSTKSZ is redefined to sysconf(_SC_MINSIGSTKSZ) > and SIGSTKSZ is redefined to sysconf (_SC_SIGSTKSZ). This supports > dynamic sized register sets for modern architectural features like > Arm SVE. > > Build error with the GNU C Library 2.34: > DEBUG: | sigreturn.c:150:13: error: variably modified 'altstack_data' at file scope > | sigreturn.c:150:13: error: variably modified 'altstack_data' at file scope > DEBUG: | 150 | static char altstack_data[SIGSTKSZ]; > | 150 | static char altstack_data[SIGSTKSZ]; > DEBUG: | | ^~~~~~~~~~~~~ > Please give more context on why this change is needed? Doesn't look like you tried to compile this patch before sending this to me. > Signed-off-by: Jun Miao thanks, -- Shuah