Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1762122imm; Sun, 27 May 2018 15:37:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3IhZwiXwu/XIibn/aFg5oh4/Uk3FwG63AH+PuvR2ycQfMZcsrv7/xEFQbftnAY/QHLx6+ X-Received: by 2002:a62:5281:: with SMTP id g123-v6mr11089263pfb.22.1527460646628; Sun, 27 May 2018 15:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527460646; cv=none; d=google.com; s=arc-20160816; b=ow9Qa7xRm8nzg+4iomZJS4e0RahX/ntYgu9LFM5XgFyI+Eb9TShv2ML1g56Wn9NjZp zxK5Xe+0NxEcKAMARpZlZ01LYpWgS2bhQkl3wAKxewq4IWMwmtBF6fwnO168VNlyyy+0 McNkT3QrrY6qKxEBH9cEmV5gKxROO7BJzh+Ayvt/Wj798Y3ARa0dbSSMKGrCEXmTVJnx XkK9cMJEImYPT3UI29GKY2G7vuY3RdsQXBIw4+7cL+3b/94tmhoF+ejPXm+NADfO7Q54 iEGNpdi5J4g6yDYKqJl2PK255IiyuyCrnauv57ue0NKosKk2IMGa7k+Jr18u7CG9LiG/ C32A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=G/RCq0HHgj5k7cgCduSUg96BjmaZPFxo+KzRnEAKlbE=; b=vEthxttT8F54TVmxcAQewN8nh/JQYIrNqseDqEWdzSHD+pXeIhGkiWDPHDwXmCCVov lf7AG5xvkalPRrF2NdrTvWuXV9sSdKt4ksi0wEUvI0vORSUhSIz/OUQIdiFdAc0pQ11h 50mAn2MnmrpF8z/x6FV+vHMATs+EQRweNMU6JUz7J2uG4JvzjoNt27fYMFIvdIfUOBCl p4hTqE091vsU4FAZjEiobt3YIJsvS5WBMtZiRk/bQLuQLnuBEZGUVLbQ4NlZrrZ2Y8ue zRbljkfhaIfPpFVSzQg9pKAH1KkMnel15nx6//shWv59dn1yJGV4DNALcpo84gOz/ugF k3Ug== 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 m37-v6si28924510pla.148.2018.05.27.15.37.12; Sun, 27 May 2018 15:37:26 -0700 (PDT) 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 S1752631AbeE0Wg4 (ORCPT + 99 others); Sun, 27 May 2018 18:36:56 -0400 Received: from www62.your-server.de ([213.133.104.62]:49177 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbeE0Wgx (ORCPT ); Sun, 27 May 2018 18:36:53 -0400 Received: from [62.202.221.10] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fN4HS-000066-56; Mon, 28 May 2018 00:36:50 +0200 Subject: Re: [PATCH, net-next 1/2] bpf: btf: avoid -Wreturn-type warning To: Arnd Bergmann , Alexei Starovoitov Cc: Martin KaFai Lau , Song Liu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180525213331.2115471-1-arnd@arndb.de> From: Daniel Borkmann Message-ID: Date: Mon, 28 May 2018 00:36:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180525213331.2115471-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24609/Sun May 27 22:30:39 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/25/2018 11:33 PM, Arnd Bergmann wrote: > gcc warns about a noreturn function possibly returning in > some configurations: > > kernel/bpf/btf.c: In function 'env_type_is_resolve_sink': > kernel/bpf/btf.c:729:1: error: control reaches end of non-void function [-Werror=return-type] > > Using BUG() instead of BUG_ON() avoids that warning and otherwise > does the exact same thing. > > Fixes: eb3f595dab40 ("bpf: btf: Validate type reference") > Signed-off-by: Arnd Bergmann Applied to bpf-next, thanks Arnd!