Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp9409imm; Fri, 25 May 2018 14:54:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZocpy+SN/XiR+MdUP1ON20BiNh0pX0gZgx9ydM4RACHhOeh+6enG9+BVmHjle2T9R+1iyvV X-Received: by 2002:a63:803:: with SMTP id 3-v6mr3392099pgi.406.1527285254038; Fri, 25 May 2018 14:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527285254; cv=none; d=google.com; s=arc-20160816; b=YSgNL0rCfiqR4O3IzmryNLyEZOHyiHz5mI2DAAxJmNmZBkRzhTGohUsaNfs91LZM3j n69pa6jFif/IodOyLgABMNIGm/sIDAVDekWElDr6c17BQG7kLYqZaKHQ38MjpaiIB2Md QV+bc787LoSnSu/nWocAyZEm/wg2xGF/gClUsHj/wdi+rRnUQnO/rcLrYAyU31KNTXdq XZ7LVVRI4Ic98eGl+YUjJH15SP3IqMm6WzpWNvrSab0OvbOiqGasWtdQ0qCHKeFL+yP3 aCpjMR3HiBRomWv27O7F5gVElVST9nITBPJ4q7uE3LU+SsHRo3NrIKUXsuQKrCe6kf29 hmFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature:arc-authentication-results; bh=pgeNZMK90KKvMK3GntKb5cJmXgwFJuH0dGtYmp0CkAI=; b=lcmaXV63ZWmyCnsC7MJjjrE6OSrIqgWA3M9xDJjfmCd0ARL/+rJRdOKdJ4lU8DU3Th I8/C+hJt2/ijFKQ21UR8BxxwVn77loFjlH0I3/UyjOSlhslKzj+G/QFwJBeibMC+i37E ax2rde/Bd5hii0GzeUj5VyMZkHLc+OmlfpO3bN9/pIZBOjWCCxEvQvj8qjidqrKcZT90 YU582OtiksingUYyoBRREYFsAj+lCsycd91tRifQJN09DGygNVH55T8157jGbz8VuRZp qjoZwZO3sH9lhNJVpJ9h/iHY5HG6jEgortYkfLp/e/dAmlF4M5iNpagghwR+XQqMFXhF 1R4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=AeHNKmLw; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=M8ecN3iN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10-v6si6747030pgf.354.2018.05.25.14.53.58; Fri, 25 May 2018 14:54:14 -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; dkim=pass header.i=@fb.com header.s=facebook header.b=AeHNKmLw; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=M8ecN3iN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030547AbeEYVxm (ORCPT + 99 others); Fri, 25 May 2018 17:53:42 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:45428 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030394AbeEYVxk (ORCPT ); Fri, 25 May 2018 17:53:40 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4PLr7G3026800; Fri, 25 May 2018 14:53:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=pgeNZMK90KKvMK3GntKb5cJmXgwFJuH0dGtYmp0CkAI=; b=AeHNKmLww47TSM4ZtRr3NYYEAy82ylU8y5T5r+valVo79YWSIDxn87MhBA/CBglyqC8O WS8ovUMl09NTGuUaYSKHNo9HXVRA2Jxc/6hZofNdm9JKu5f6Y5erIRuBUykkXNi46LQv KiwyVn7HiKE8tgeTaP551ShWsf8plXlPhgc= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2j6nqx8tam-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 May 2018 14:53:15 -0700 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.22) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 25 May 2018 14:53:13 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pgeNZMK90KKvMK3GntKb5cJmXgwFJuH0dGtYmp0CkAI=; b=M8ecN3iNXIEomCCWlmY5n5F+FEZeAZhri26vHIF5DQ8yf4sefl73usunGJaBqZLoa2JH7ad4aF/zI7v5TZkfNweOf0D3iySj3/dtjLVVdyHJJyDTeZM8Dwg/7cnh6+tC4txX9HfN0V/SQOh21jEtOQca52O13R2O8c6cLCc/58I= Received: from MWHPR15MB1165.namprd15.prod.outlook.com (10.175.2.19) by MWHPR15MB1421.namprd15.prod.outlook.com (10.173.234.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Fri, 25 May 2018 21:53:11 +0000 Received: from MWHPR15MB1165.namprd15.prod.outlook.com ([fe80::9485:7727:4b71:8cc0]) by MWHPR15MB1165.namprd15.prod.outlook.com ([fe80::9485:7727:4b71:8cc0%14]) with mapi id 15.20.0797.011; Fri, 25 May 2018 21:53:11 +0000 From: Song Liu To: Arnd Bergmann CC: Alexei Starovoitov , Daniel Borkmann , Martin Lau , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH, net-next 1/2] bpf: btf: avoid -Wreturn-type warning Thread-Topic: [PATCH, net-next 1/2] bpf: btf: avoid -Wreturn-type warning Thread-Index: AQHT9HAeHmBMspT3K0mRxe5qBEwilqRA/KeA Date: Fri, 25 May 2018 21:53:11 +0000 Message-ID: <97F843D7-7E81-44B3-AE97-112ABFE8E892@fb.com> References: <20180525213331.2115471-1-arnd@arndb.de> In-Reply-To: <20180525213331.2115471-1-arnd@arndb.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3445.6.18) x-originating-ip: [2620:10d:c090:200::7:1409] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR15MB1421;7:0aDEH8/NWrvGsKvImb8DNxkMSuA5PiCwzI/RrT5JQDLZrFBRSaei7xy0ZvTMc9QT/spesxTy2IMRtWvgZcuVVn14S9e3Y/L5u2dLE+aBPEAT2Ql3/dFs0P1Ky6WTgeoTdQPZU1aLRujaLNnb5UPjWELmrNPWJ8Te0Xx2rPjjCz3xNHDCh1EbWyFfuUT1f1FVIJ8e9ltq91sSwLOGxhEsuFKGFEvWButrsVitG37afiZujG8M2orQ6dR4nhXJPGij;20:rYbWYQSoTnb3CDdGRWgrbiB9A5XFLXrhcIpNcQVpkrWU8Cn8frGp2UrVrp7CHwpBsnDetkHWePO84/jzSjym5VBSqo8TZZeVFaLOurZO6OPc5d7wnLe24xsq0O+FybsnYnOTZrCCEAqfG4y5EmZaE+2yKLzzTvcIZgjsSqQqViY= x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10019020)(346002)(376002)(39860400002)(396003)(39380400002)(366004)(199004)(189003)(478600001)(57306001)(14454004)(105586002)(97736004)(83716003)(7736002)(2900100001)(575784001)(305945005)(86362001)(46003)(36756003)(446003)(8936002)(5250100002)(3660700001)(3280700002)(50226002)(8676002)(81166006)(81156014)(486006)(6116002)(11346002)(476003)(2616005)(59450400001)(76176011)(186003)(99286004)(316002)(54906003)(102836004)(53546011)(6506007)(6916009)(2906002)(68736007)(82746002)(5660300001)(229853002)(33656002)(4326008)(25786009)(106356001)(6246003)(53936002)(6512007)(6486002)(6436002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR15MB1421;H:MWHPR15MB1165.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:MWHPR15MB1421; x-ms-traffictypediagnostic: MWHPR15MB1421: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(67672495146484); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231254)(11241501184)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:MWHPR15MB1421;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1421; x-forefront-prvs: 06833C6A67 received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Zcd5DCqjj1HzC5DTY563DyKq8UP7wK5X5Zi8xI4nz/OjOCtpSCjPl4U1dg2YaFnYw2fcZ3QoUjeetIpuIs0qQc7QuRMbmXF7j+3up8lIq7OiQwkkCdVmwpYOml92Qm+gYkQTDogTgKe90oDI6CXAb8xEzU+uVywHHHcCSQwCQsHdegBZjdTu7br9K3eCrkUz spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <31735B12AA337744AA1A4DF0AE6B59F9@namprd15.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 3b38675c-2b01-49d5-c088-08d5c289e8d6 X-MS-Exchange-CrossTenant-Network-Message-Id: 3b38675c-2b01-49d5-c088-08d5c289e8d6 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2018 21:53:11.3614 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1421 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-25_08:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On May 25, 2018, at 2:33 PM, Arnd Bergmann wrote: >=20 > gcc warns about a noreturn function possibly returning in > some configurations: >=20 > 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=3Dreturn-type] >=20 > Using BUG() instead of BUG_ON() avoids that warning and otherwise > does the exact same thing. >=20 > Fixes: eb3f595dab40 ("bpf: btf: Validate type reference") > Signed-off-by: Arnd Bergmann > --- > kernel/bpf/btf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c > index 9cbeabb5aca3..2822a0cf4f48 100644 > --- a/kernel/bpf/btf.c > +++ b/kernel/bpf/btf.c > @@ -749,7 +749,7 @@ static bool env_type_is_resolve_sink(const struct btf= _verifier_env *env, > !btf_type_is_array(next_type) && > !btf_type_is_struct(next_type); > default: > - BUG_ON(1); > + BUG(); > } > } >=20 > --=20 > 2.9.0 >=20 Acked-by: Song Liu