Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp801572lqc; Fri, 8 Mar 2024 12:02:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXb7R0USKpq2nTHoGyZV1G3puwEnxpU1bpKtynMaUOeeGvJMbVvUodKBgGGosy4Z3vPgbdICs7FsCrcW05duySoZNJt6NO7pUaQDE2CIg== X-Google-Smtp-Source: AGHT+IFFeQUvVMmtvLlrIMXx11dZwYkgn/c3XoWVD2tYxYz6kqeqN2p16pod3jdh+HXse/ej63J5 X-Received: by 2002:a17:902:f783:b0:1dd:2eed:52a5 with SMTP id q3-20020a170902f78300b001dd2eed52a5mr85454pln.37.1709928131602; Fri, 08 Mar 2024 12:02:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709928131; cv=pass; d=google.com; s=arc-20160816; b=OPIYmZR7FhGuRhl1+DYsIJZbEx5qi9fE5f5r0TPyo3qYQRxMah9RhzONlb78Q4uXne KzOEXGlXCiEng+cK9HGUZzRNFVWHnPARNbsNrGENylhwFO+mxm9PUGbQlk7Ce0lUtn/r MJdlsVw7GGCO/vEQj+JYRFDnoYdudMq5TSh3XdKFz8ugmFDFYtPKzbPmHw+nRxUM5gNE IL6/g9vJcWd889CW82JDJYUGxE40v+OkKjPdjJxPu31Jrl/sQRD9VXx6nEmTq+/Gs289 SP1PEhWoe2+P6tSkUawyF1SEjT8/H9EZZ30VQfrb45Qed9cYtGg/ZdfM3dhyMzwvGOOP ldFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=X3/rFw2DP5ULtZhyu5nw+e5CpPRD0KcFBiZwM7ZbUNo=; fh=kOGUd5RihIS3D9KWC642uwNb/8NYH1nn7SscoJ4IiSU=; b=d/vHRvz3Tbb5+N27AkaMo8xesoRWg7AfywP+30drTb/dD7t8zUlKY/DCp7y/Gpren+ rSNXYOzBucrS+SAo+ptpOT76eIGMGnM+DQmEIJeC2bX5rQKdOtyJTuAEDdfOCHK2gUg8 vq6YUc7PaxhChC+ZLrZaOq9HQSaQnyK8s/nwOqByCy75pnv5pu3awAhFSJSe4iDYCgFr C2BxXYJiF7yCOYiYQkBCQVcveeOJ+2iyxRE6AsMK3yZHe7VCdBioISb6yrtl6uf1TzOf YBeFjw/bCLbV1meQIg9cgpX7Qolgnep4deOr6qKyi3KDiMSJ2jeBTUs3o4sbsVP8HoAb FBRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b="gtuHcD/a"; arc=pass (i=1 spf=pass spfdomain=gaisler.com dkim=pass dkdomain=gaisler.com dmarc=pass fromdomain=gaisler.com); spf=pass (google.com: domain of linux-kernel+bounces-97527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p1-20020a170902780100b001dcabe5b3absi71044pll.33.2024.03.08.12.02.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 12:02:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b="gtuHcD/a"; arc=pass (i=1 spf=pass spfdomain=gaisler.com dkim=pass dkdomain=gaisler.com dmarc=pass fromdomain=gaisler.com); spf=pass (google.com: domain of linux-kernel+bounces-97527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BD6CFB21E34 for ; Fri, 8 Mar 2024 20:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70F6E5A7B8; Fri, 8 Mar 2024 20:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b="gtuHcD/a" Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (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 67C8850A80; Fri, 8 Mar 2024 20:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.231.106.210 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709928119; cv=none; b=mmU+sRYH66nxqLat4Ygys7dljzv7x+rqQ/MhHF3qDqeum16jTDQh0HzDgzoCkLDOVnHnc5lAJQBarD7wyn9rPfiRm8IuVNMs5t3BnUnibrnTTGGIDlbXKIZN+3K+m8ZeQGWpsgCwvK+t+lJDCPa4SMKNi6DA1eIFmsrxbhmLL2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709928119; c=relaxed/simple; bh=5ytxsqFxTxwzlMrfzhQvGBhWVmRUCy3wGxkxC8SS2ys=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tFPt95lKwoO2hl/dGgKjfhLL6Mhl1BL7IzdiYjEUYPKdTjbo+HC8MZL+d3jhlz54nLIB6ys2jbd8H12umZILLmnEI+wB1hqxRk+QiY/U+3hzLzhgYGFfEdF17lw9ySF8HvDgsqSaGOBLaQ4k6r3pPSPoxwd3BeD66EwlAH8UC/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com; spf=pass smtp.mailfrom=gaisler.com; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b=gtuHcD/a; arc=none smtp.client-ip=94.231.106.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gaisler.com Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4Trxry32DKz683p; Fri, 8 Mar 2024 21:01:54 +0100 (CET) Received: from [10.10.15.2] (h-98-128-223-123.NA.cust.bahnhof.se [98.128.223.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp.simply.com (Simply.com) with ESMTPSA id 4Trxrl6p7Xz683j; Fri, 8 Mar 2024 21:01:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=unoeuro; t=1709928114; bh=X3/rFw2DP5ULtZhyu5nw+e5CpPRD0KcFBiZwM7ZbUNo=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=gtuHcD/acSa2BfxkLaRl860FgKnGSt9fSIaUbHuMCJH1lnikto+BSwmSMCOjwNYre GszeJQfGs3MJkYdmi89LkLWbbrCg4P6OuCVNqA5N4NQiaROJLhVuZ/MpH1g0uvSSLe kyRlWw1g1X2BuQ5zyoXvpcMPv8Oil0jco1v7ZE4U= Message-ID: <9294db8b-5f25-4e3c-99fc-9ab9c7e09bba@gaisler.com> Date: Fri, 8 Mar 2024 21:01:42 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/7] sparc32: Fix build with trapbase Content-Language: en-US To: sam@ravnborg.org, "Maciej W. Rozycki" , sparclinux@vger.kernel.org, Randy Dunlap Cc: Miquel Raynal , linux-parport@lists.infradead.org, "David S. Miller" , Arnd Bergmann , linux-kernel@vger.kernel.org References: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> <20240224-sam-fix-sparc32-all-builds-v2-2-1f186603c5c4@ravnborg.org> From: Andreas Larsson In-Reply-To: <20240224-sam-fix-sparc32-all-builds-v2-2-1f186603c5c4@ravnborg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-02-24 18:42, Sam Ravnborg via B4 Relay wrote: > From: Sam Ravnborg > > Fix the following build errors: > irq_32.c:258:7: error: array subscript [16, 79] is outside array bounds of 'struct tt_entry[1] > irq_32.c:271:14: error: assignment to 'struct tt_entry *' from incompatible pointer type 'struct tt_entry (*)[] > > trapbase is a pointer to an array of tt_entry, but the code declared it > as a pointer so the compiler see a single entry and not an array. > Fix this by modifyinf the declaration to be an array, and modify all > users to take the address of the first member. > > Signed-off-by: Sam Ravnborg > Acked-by: Randy Dunlap > Tested-by: Randy Dunlap # build-tested > Cc: Andreas Larsson > Cc: "David S. Miller" > --- > arch/sparc/kernel/irq_32.c | 6 +++--- > arch/sparc/kernel/kernel.h | 8 ++++---- > arch/sparc/kernel/kgdb_32.c | 4 ++-- > arch/sparc/kernel/leon_smp.c | 6 +++--- > arch/sparc/kernel/setup_32.c | 4 ++-- > 5 files changed, 14 insertions(+), 14 deletions(-) Reviewed-by: Andreas Larsson Tested-by: Andreas Larsson Picking this up to my for-next. Thanks, Andreas