Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp170039rbb; Fri, 23 Feb 2024 16:29:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW/wfpZN5vl5szmCE9F19yAWQMYWirfWKI/Tl2/crpCghiYoHGqUsRuSyMCvmyYWV1tj07pY6e5gd5qZbAsqfVxf6FtUI6JVwox4h5dew== X-Google-Smtp-Source: AGHT+IHML4o4Bkc0VEfNv9RgKevG1qNGAyVIZ9/Q3VHlr6WhygbumuNOzgQmjw485h7GWO+C1/go X-Received: by 2002:a05:6512:10c7:b0:512:f306:414e with SMTP id k7-20020a05651210c700b00512f306414emr8049lfg.63.1708734557528; Fri, 23 Feb 2024 16:29:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708734557; cv=pass; d=google.com; s=arc-20160816; b=Ls6ovW4EeztyBvm7mBUdKees5or1RNaYIktaKYbErepLPH7YIFtFt3lcLj+5H2/jpG IrNNBTsC5D2wgkoSDx9yLp9IZDvLq85UjvHOGmtQsm7Gh/AyBGZkXBo+sX5vGZFGBPzI MCpTLCBqdBrnd7XvKc++WxQ3lkl8dFuYjdm+0B+WO0F1p83BbthCRZZxmX/jQ+0NntUo 9u0/eXY/HTmwn/bXhsaBnvspEcP/rCCWEOmpCVvyc5QiUynE3tJLp7ztP4twAZBRguAb QIB3yU1js2NwNlT3uGsvTO0a00ZuStCnUwI2y7gYuqKyTF0H9MujJ8Nkkc3qGRdHfFAQ WPjQ== 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=4uXKqvbumEDVF3TL2P92MblTjGuDcJSAWiwkp0vmwGg=; fh=XwoqLYP6FMCr1fn/4ckfYoqc/4QHPS0/OVNUWOvREUM=; b=W3aovKjHYooaP4WlyiT+9Qg4hFaVoHwLpg8+qtQ9BsJIBUzFv7ExUaQDCOSAsiuPOu hMIwhQH1lvsInIqgzAbTXpwZWthc3UIBv4iURZaAPbMaoyUxPExO0F9pfvCdao8wcbu0 EdnuTBcs+mK0XS5Sbh5/6x8kO5kJgtOuAPYwlKK5UfkLeToiketMss8HRxzvafHWqSaU NnMEB/FlEl2Zo6IgoRvhwdnGkqWU/eYuWZT3a/caQnXI9ANnwZzU4J8lLk5rVZ7elevx apBVbkpwy8mctF1LR/NsCFiImNa6aH3M9EE0r+kg/o7PPxag8iDV4BwJL3LQeWuac+Qv U+uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sqgJdwNE; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-79364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79364-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o12-20020a17090608cc00b00a3e9def21besi71138eje.445.2024.02.23.16.29.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 16:29:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sqgJdwNE; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-79364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79364-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4880D1F25D89 for ; Sat, 24 Feb 2024 00:29:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC56410F4; Sat, 24 Feb 2024 00:29:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="sqgJdwNE" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B876EA55; Sat, 24 Feb 2024 00:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708734551; cv=none; b=j6+LzqZacbgkE0bZDoJhINxjEX7qY4PB0LJDaQlZi5NSnycgwq3xmLrEu9jz+wT80hrldDF+RHtiv3FF+UqYpJ2RWsYMBu/f/8+K3hWTAXX/AOgbt0ffLnhMeFICfcg98ETV4/Xqm9tpHHA0LPi4JToQ+RBudpUPZvsbYDyTRXY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708734551; c=relaxed/simple; bh=D2Ymr1Fwng5x+vRge2/L1d/O2ki9hen1IPOBEBlpFvM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H2wErn+xSZEBM3lKfxXzJeWPmXrc7KcRQd/gi6x5k1WZ0p8t87nmMc8Crs/HhQevxM55lUvV1jbjF3sDHFSsdrU7Ko6rNa/vPZ4+IDawei95tHm5PMQ7Z7TGueR2yV285h8m6qcSU1FOppa2Na9fMpFh7y7x09gK1BVArXk2lA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=sqgJdwNE; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=4uXKqvbumEDVF3TL2P92MblTjGuDcJSAWiwkp0vmwGg=; b=sqgJdwNEq94uZLqCwsaLQbZQNg XUHWwWW+d+FrT/eqaVjc1+01H+jWWpxKt4UROHPE0I0JQCVFkAD+f3MAuniCKpQJiMVFmjXkxiGSY 1tBC6jbM1d6tbVrTRz2Smo9eyeWQdnjTiMseymqqTtqA23x63jugZzelC4Roledj1ozBTL3lGgitC mm7xiJDyQV+NcCM6vEVDHcVHuNSa4uf/gyunKgA2Fc83ppEL3rd22SHmB/KyYB9khyJ18F8pc6fnk QU9iJ5NZjLpQZLCFBKiGJCTw2dbfQk+bABWuRweCDmizZb1DZqeJcev2BR2Cr/wdfa1WQ7QgGtp2U LsF520bA==; Received: from [50.53.50.0] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdfue-0000000BgUh-2bC8; Sat, 24 Feb 2024 00:29:08 +0000 Message-ID: Date: Fri, 23 Feb 2024 16:29:08 -0800 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 2/6] sparc32: Fix build with trapbase Content-Language: en-US To: sam@ravnborg.org, Miquel Raynal , "Maciej W. Rozycki" Cc: sparclinux@vger.kernel.org, linux-parport@lists.infradead.org, "David S. Miller" , Andreas Larsson , Arnd Bergmann , linux-kernel@vger.kernel.org References: <20240223-sam-fix-sparc32-all-builds-v1-0-5c60fd5c9250@ravnborg.org> <20240223-sam-fix-sparc32-all-builds-v1-2-5c60fd5c9250@ravnborg.org> From: Randy Dunlap In-Reply-To: <20240223-sam-fix-sparc32-all-builds-v1-2-5c60fd5c9250@ravnborg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/23/24 11:36, 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 > Cc: Andreas Larsson > Cc: "David S. Miller" Acked-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested Thanks. > --- > 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(-) > -- #Randy