From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta1.migadu.com (out-184.mta1.migadu.com [95.215.58.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC50C1DE88A for ; Thu, 16 Jan 2025 13:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737032490; cv=none; b=JaLbmrfGc2s+oFlVsrE02fuC1RJC24MZ8DewFH6L1vJbMO75woBbsNqTA8BHojdb3kbuV0efhxrfkkmZpSYTPPnl8hunfYyEcwKTFCB7dMqC8OxhQBhaPc2JcU+DJZI9HrsxuCJyEMeoPkgV84ruCnxsTOSQx5ljrqQcHjJK0BE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737032490; c=relaxed/simple; bh=N1oHQnHJ3f+5dDBkWdR4qPIpHbUElgbdGFSpDPpVeIk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HQQ/wbNP2sFvd22uSldYARSFzw+N3Xg/7lG+sKwvIEjEnjuV0tCCV6rHuGKi6JDya5CFrhYHF40U3q4OY9CVg+LhmgsArDf9VGPpM9VRkKlgvjc0uvFAU63jRCWMKHLVQIvwtGoxSreUHp8eJP0hiibPJDE+d5nDCGYIax3SO7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=qFzrLqZD; arc=none smtp.client-ip=95.215.58.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qFzrLqZD" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1737032472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2EWcWDwVr0uBRcUj0DpQw/Dcwq2s/V5mUKlMitAgwxU=; b=qFzrLqZDaPAEbcqDOEAYNS+Va7AMs2Dv3KgSJq8x7ybToTHQzYDJ+oQC8qBzep5wXWD8bh UnXABUupL7vG/V5+STU+6X9dHWMiOcEXhs0/adqOo9ms+UpE/3nAXkwoPagkcGW/PjP0/Z HaWINRGzciSVot/rfXbl6JWXIiTPi1U= From: Thorsten Blum To: Richard Henderson , Matt Turner Cc: Thorsten Blum , Kees Cook , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] alpha: Replace one-element array with flexible array member Date: Thu, 16 Jan 2025 14:00:58 +0100 Message-ID: <20250116130100.86093-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Replace the deprecated one-element array with a modern flexible array member in the struct crb_struct. Link: https://github.com/KSPP/linux/issues/79 Reviewed-by: Kees Cook Signed-off-by: Thorsten Blum --- arch/alpha/include/asm/hwrpb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/include/asm/hwrpb.h b/arch/alpha/include/asm/hwrpb.h index fc76f36265ad..db831cf8de10 100644 --- a/arch/alpha/include/asm/hwrpb.h +++ b/arch/alpha/include/asm/hwrpb.h @@ -135,7 +135,7 @@ struct crb_struct { /* virtual->physical map */ unsigned long map_entries; unsigned long map_pages; - struct vf_map_struct map[1]; + struct vf_map_struct map[]; }; struct memclust_struct { -- 2.48.0