Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp618127ybl; Wed, 11 Dec 2019 05:01:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxEH+scs6RmvFmOGGeXqk8JKGrKeZ7BaItiOoEPCRb2Pt/Ca/WFuc/UeOtEcgsV8wEPpM+w X-Received: by 2002:aca:48cd:: with SMTP id v196mr2728557oia.102.1576069304881; Wed, 11 Dec 2019 05:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576069304; cv=none; d=google.com; s=arc-20160816; b=D3Gu2hAZPljM3ZteEseMJqru9POC8UgxFz26nzepmDO/Cq1efYOYqqfyNwZ18T1VxA EE3LhpEctTAZJtr4GK0GMxjInpJJ64Qw6UeFTSXfdkK3LjORqDwOMpk0QNzrYkWPaUL3 nHm4J0/UQQGtLnLd/f/zqMvZe19Wl1dBnrK7Uv+/hxXM3XR2OKqlTFpxPZ268tjbG+4p H/SfUoqv6rtYNVQBKW67xxzg95x7BSbfH76Zs8ZYvoW+NudDhGMHJpyMJqTvTGVNXYem FLWyPtRdQTnow9wZ6o3nWtIqtBpzuRD7adQ3RuyYN23vXA6TlKOFLwmtuDDpXPaHDJ3R Wbrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WDxsbZ8baM05O6F7PM87Im5lNSA0ZhF4ZgKFAbC992U=; b=SG3x3BCI+J0CXYf08pRGPAQgafeECY143hCNysJrOxTjpEfLFDJs6i1f+oMCOHD9XU 3nwRCdrOqe9AiiE0csDzynWS0f2ETZt0FX4fpmXe1fcgkheQ+X+mk6LA8+jqz7dFfJWZ nE7pqYxaYXYrS1ViesALCX9HcaOk/83ZfE5Sixr3Az9X+4pCnbr93dUg0svrKtJTXrMO f3migbmdjs55w/Li3cXqKav446zqMRp3gy0pdTPk11AckXmixyoywRfzOtXGm/WJ4TT1 hgItA9SJsrZBhrrMGDDEcXqB+fPRFeu0BSLp5CxbL4LfjyNc/uHHq3SbXxY6jCV3vKDu iFyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si1033194otk.120.2019.12.11.05.01.30; Wed, 11 Dec 2019 05:01:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729377AbfLKNAf (ORCPT + 99 others); Wed, 11 Dec 2019 08:00:35 -0500 Received: from www62.your-server.de ([213.133.104.62]:53664 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727402AbfLKNAe (ORCPT ); Wed, 11 Dec 2019 08:00:34 -0500 Received: from [2001:1620:665:0:5795:5b0a:e5d5:5944] (helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1if1bU-0002Im-Km; Wed, 11 Dec 2019 14:00:32 +0100 Date: Wed, 11 Dec 2019 14:00:32 +0100 From: Daniel Borkmann To: Arnd Bergmann Cc: Alexei Starovoitov , Randy Dunlap , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Quentin Monnet , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bpf: Fix build in minimal configurations, again Message-ID: <20191211130032.GB23015@linux.fritz.box> References: <20191210203553.2941035-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191210203553.2941035-1-arnd@arndb.de> User-Agent: Mutt/1.12.1 (2019-06-15) X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.101.4/25660/Wed Dec 11 10:47:07 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 09:35:46PM +0100, Arnd Bergmann wrote: > Building with -Werror showed another failure: > > kernel/bpf/btf.c: In function 'btf_get_prog_ctx_type.isra.31': > kernel/bpf/btf.c:3508:63: error: array subscript 0 is above array bounds of 'u8[0]' {aka 'unsigned char[0]'} [-Werror=array-bounds] > ctx_type = btf_type_member(conv_struct) + bpf_ctx_convert_map[prog_type] * 2; > > I don't actually understand why the array is empty, but a similar > fix has addressed a related problem, so I suppose we can do the > same thing here. > > Fixes: ce27709b8162 ("bpf: Fix build in minimal configurations") > Signed-off-by: Arnd Bergmann Applied, thanks!