Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2285212ybl; Sun, 18 Aug 2019 22:52:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqcU/ZTb4s35A9+5CQ0AX/anvzlD668noYYNpnno1XhVzdXGk+V1tqqD/HabbJmTr+sokV X-Received: by 2002:a65:5b09:: with SMTP id y9mr18890336pgq.345.1566193960153; Sun, 18 Aug 2019 22:52:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566193960; cv=pass; d=google.com; s=arc-20160816; b=FyQU0MuNWe7CpvMETvK1lUvfjywHMOibVa/dlh8oq7TP4MvDjzHbkEI/8L+55pe8kv ozANwK7YjQVKHvqooSLxStchw+QbbVQvXCJNoYQKRXYnnfefosywVByZ/i4CILNT5H81 k6y90HWjcwLed/wYk7sLD17m3EWr+jy69XbHnnRP+Kz5CuB4n1U0EHmC+pYFmQDhufX3 x/cuSQqOgLNf4iqLf7tSv9dUA+GnYQoScLz1dEyM+aqsugCQpDZbdhnuJqv0H6mCqkIF FRtCJ4QBArPuq/vVkQyvV2PqOKipOFmvEBoAKb9xE3NQ0PYfLMHiZiEusb+xEmg//vXf ISKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=/D1aTRNaQpXeGhUKDkRERGc+8ROoHc7Ime160JrClvc=; b=O0dH9fsfytxSnxT9S5z+El0l/CH+BSeWR1ElhLv8zH2tEUZ+rRGLZIOQWt/+0mVk8R BstEJbQXQ0i+XVWDoIIshPgQqGzh+KhiXZLjkVflj/m0ImcwnjuOQz/Pg/WMInquuou5 liMoOOaUit5oJI/w1ZDmaWLoasRm64Y3MqvOi6Jacn7axJzA6K3V5izvFP6yGgOGQ8MJ vzr5agB/iPArkOYaU4jZWTaitJFLwUD0D1UEtBxCAfH97Iu3hzPWDLfohcLVjH+AitSa QPuj8QXe+W3tGr6Rvl5XzeV4y22bgBAxzFJyb9EyxuBxZ84LGrmr5PiZNfCjiChRx2ZH rBdg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=oy1q7Cdh; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=WxRT3jjY; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.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; 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 t36si9153922pga.32.2019.08.18.22.52.24; Sun, 18 Aug 2019 22:52:40 -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=oy1q7Cdh; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=WxRT3jjY; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbfHSFvf (ORCPT + 99 others); Mon, 19 Aug 2019 01:51:35 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:51012 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725846AbfHSFve (ORCPT ); Mon, 19 Aug 2019 01:51:34 -0400 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7J5nugR014183; Sun, 18 Aug 2019 22:51:12 -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=/D1aTRNaQpXeGhUKDkRERGc+8ROoHc7Ime160JrClvc=; b=oy1q7Cdhy5p8blsWij0JAI5ZmvqnMgN5FosnSIsebyvC+OCnN+MvmtOlF6AcG3mhPR99 pkioYPNFq+t9eyPXgRLZFgwCqd48IE4rsAejFKA1uzF0I2foZ9IEe37uNS31xTQ0doWj hT5wiZ6sNVtO2hZyD4gMf+/LgKMCVv22oTw= Received: from mail.thefacebook.com (mailout.thefacebook.com [199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2ufnqb01h1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 18 Aug 2019 22:51:12 -0700 Received: from prn-hub04.TheFacebook.com (2620:10d:c081:35::128) by prn-hub05.TheFacebook.com (2620:10d:c081:35::129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Sun, 18 Aug 2019 22:51:11 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5 via Frontend Transport; Sun, 18 Aug 2019 22:51:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N2FdP9OF8w6o9nZicQ4Ppzy1cUH1C+6fLBcnc97XUKYTl+/09zPWoUdBK0vpDIjn6XBJMTW6gMn+Id6RL0wptHTYyAbkquwSfrfStwhMEpSNTloJGM2AtvXA+A/slH95RjJDh8CJRQwP2qPW9M2jv7H8NLlhNcXEoJxmKMuJXy0uTb0MVZYY6/AMmaMHQFSN0bPq27lOwV5mKL9Pac/wYVE6UDSByCU9NeCRXpaRlBEFzCF34TdvKUlhoOOe9TEDXjWQB//bj0LLVeXTZcpOG/p9RqbkNOTJ+zmJAyTTJDYZk+Ufa9YzseUNUp91/19KWwiPq2oXVTwXAPACEFaNZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/D1aTRNaQpXeGhUKDkRERGc+8ROoHc7Ime160JrClvc=; b=D50Bh+1C7VKLPMNS1VEeK8hagr6aJcwJK1Iu549RvP+h9cmNh6uMyqJbJ/TBOy2bqvWOTht+qkYK0lE46+k+Z+NxaBEYH9t3PjOjscp6LvcNaIn9p8dPRwxEUhUn3EezVKQrs6vQgijPNDO2qsU9EvaJCXfg2CZ5LQOIPgaOAsJaA7rEEVW0LIw2JeWoOtjNnEo2QnmSYY2iPJ/ltMmPFDIP0SyvFQ+PYznIAxZD6LgtNuMkC3RdDcT+umOkF/fc/Pcvv5tqeuNbQrgdA4k/mpK/zloHbBPO2cul8RJB3sGaAWANyr8leE9eHdM6NS3IYyxq80p2tMWDX5iyQeDqvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/D1aTRNaQpXeGhUKDkRERGc+8ROoHc7Ime160JrClvc=; b=WxRT3jjYgJ3H11Ri1JhOaSxYrrX56b8snR7oe7cy+b2HqJLSZcwIZ/SZoLGf2KwsQ7ckyNBiis+9LofwDvbW0f8sSVSyW31/p/E2aO9zDT21eNyRLKOrDx5QSWzyhs8S2MqYlZfKXAASNW6Fh1ykB1IEPrPaa4o/jnyZ+2krmtc= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.59.17) by BYAPR15MB2439.namprd15.prod.outlook.com (52.135.198.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Mon, 19 Aug 2019 05:51:09 +0000 Received: from BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::d95b:271:fa7e:e978]) by BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::d95b:271:fa7e:e978%5]) with mapi id 15.20.2178.018; Mon, 19 Aug 2019 05:51:09 +0000 From: Yonghong Song To: Nathan Chancellor , Alexei Starovoitov , Daniel Borkmann CC: Martin Lau , Song Liu , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "clang-built-linux@googlegroups.com" Subject: Re: [PATCH] test_bpf: Fix a new clang warning about xor-ing two numbers Thread-Topic: [PATCH] test_bpf: Fix a new clang warning about xor-ing two numbers Thread-Index: AQHVVkfGI3lq+eqY6EetOxo2qpIqHacB956A Date: Mon, 19 Aug 2019 05:51:09 +0000 Message-ID: <00b21133-196c-f304-14a1-facb24c09103@fb.com> References: <20190819043419.68223-1-natechancellor@gmail.com> In-Reply-To: <20190819043419.68223-1-natechancellor@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR21CA0034.namprd21.prod.outlook.com (2603:10b6:300:129::20) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:10e::17) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::a8b3] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dfe2e8dd-f4e8-42a9-b03a-08d724693c09 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:BYAPR15MB2439; x-ms-traffictypediagnostic: BYAPR15MB2439: x-ms-exchange-purlcount: 2 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0134AD334F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(346002)(39860400002)(376002)(396003)(366004)(199004)(189003)(25786009)(6246003)(14454004)(66556008)(478600001)(64756008)(66446008)(66476007)(53936002)(229853002)(4326008)(966005)(6116002)(31686004)(76176011)(52116002)(2906002)(446003)(5660300002)(6506007)(102836004)(6486002)(386003)(53546011)(7736002)(14444005)(31696002)(256004)(305945005)(86362001)(316002)(71190400001)(71200400001)(66946007)(99286004)(186003)(81156014)(81166006)(110136005)(8676002)(8936002)(36756003)(54906003)(6512007)(6306002)(6436002)(476003)(11346002)(486006)(2616005)(46003);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2439;H:BYAPR15MB3384.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hU0I7CBEUiZygn4rD/I4IEwG8R8TciSNnNLFEanXgdL03ngJSp55zV6zfpNTaGPc0mVyp3MEDBJjq8zEiORqZwjahs/AvDPSDSy2Etnv1PZJvawtjUd4Nx49IuRmpH5DbtCxg6E4yf5x9Q4I4rFpzIaF+LUkRBtTJC4eScDTILvKnljI55x6teaKg/IjhF28TXgpxxGYl/w0W6Cdsu6PBgHmr+A8LbQAq78fmflgT/3xUpNu+llyBa3aVKbr9pOgflmXHnzFOhidzgGmsiLhBd/SZeIxMS7jomspSqU4ddLIJxz9yBai4zxxtI5BsA/h6g5BgJZOMZmIlMEVN/OMtVrw1jnwsBCCfqnmZ6XGKiMGZ5C/dJUrnIMQGk/lK1nW3f29ocm6Dmh8bBwQFkszaWh0JXZRKYb4ZTQGDUmcOhA= Content-Type: text/plain; charset="utf-8" Content-ID: <1F8ECC3C16EEA947B68204269CE85C56@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: dfe2e8dd-f4e8-42a9-b03a-08d724693c09 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2019 05:51:09.6716 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rH0w1dUzAX1Z514QlhnfdCSSSwAHmRsHQLrydg7wuDMMXwtH6t5R84VJXnni0GvB X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB2439 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-19_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908190067 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDgvMTgvMTkgOTozNCBQTSwgTmF0aGFuIENoYW5jZWxsb3Igd3JvdGU6DQo+IHIzNjky MTcgaW4gY2xhbmcgYWRkZWQgYSBuZXcgd2FybmluZyBhYm91dCBwb3RlbnRpYWwgbWlzd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