Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp123696ybt; Thu, 18 Jun 2020 20:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw19BvzcIeY+U/hIbArPYSxg6ZWHHlxaU8US8rtMVIF4i9hp1AnyF4OkErXEuSCqG1H7zSw X-Received: by 2002:a50:fa84:: with SMTP id w4mr1251312edr.83.1592536990279; Thu, 18 Jun 2020 20:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592536990; cv=none; d=google.com; s=arc-20160816; b=FE6+mV0ZiHbl74bRJiG7OmFacHDOxWHz1ul1l6VL7gVzuP/7KHwtkNQRxiMSMGj3sg guasSklZVpKjhhDcXOkr25bQCgSJNgQPFeF3voP7M8OT/WdFXpeow2kVVOqw/3t0PBXm dtu06i8ra3c7yxOnPhInZK2ZZsnI7vt4b2mCpS03M9tWzvpNyu2D/F+c+kQsSIP7rZU3 4IDqyX7IPHQ1vjXvHBBOK85oK53LBgBkxTvcNLofX9scY/gPqFnWOdTYT0dapqjYOBQd UQ2IAQ+KtpN8ze8xF4BR6j+dX9I8J2ixPwcJmsS4jRXoWXn4htHLIQ2CUz6LcINOnPqe /qWA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=eSIoLyaJEFkINxafFPsx03C8ForADV0MP2v7hBefnU4=; b=W+nG9YXogkapMUCofYJ1Lm9hVv70YfrWtgprmJxjW3veUwSujV6/NpVLHkk25a5H9X lRBVeqflsU7Z/Alm2wQJPeZhkObnAclHyBAkAbldV1x00rOjWZCDsQ2xsq2wvM78r1UT 4StZkjlOchlPKUgXof6YoABm0AebSzSI8aUk3U+2OOh/BBgdogSF57QW9CLn4TwVGww7 zZM60Y6aLpJlhnZH6x8aFe0quGmORXlBkvqiUSflJm959OOMUOukXcRpa5rHoMcg3+MF yUzlueOUAgNXKE+Q+twN9AsvexigN88K+o5Lywc+D43nxh2j6vl0YNzNupgqzwknIPJQ 7o/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YSqcfWE7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si2906593ejr.6.2020.06.18.20.22.47; Thu, 18 Jun 2020 20:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YSqcfWE7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730765AbgFSBzL (ORCPT + 99 others); Thu, 18 Jun 2020 21:55:11 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:61727 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728414AbgFSBzL (ORCPT ); Thu, 18 Jun 2020 21:55:11 -0400 X-UUID: 36793c47f4934525899c2ced162e9734-20200619 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=eSIoLyaJEFkINxafFPsx03C8ForADV0MP2v7hBefnU4=; b=YSqcfWE73wFZ8YSKTFDeIGjJJ1UHFXicZar1Ymvmsd/Xio3KddIHfo8pbZEQ1e1JFCcEe2ix8GIf9q4uiZwmK2qvJ4nHNv3zfqiA6LDxvaluGjFoscorshvJNIShs1IXpEUnGAl3YhgyljfO4kHMkrYXLhqxUYV3Pyw37xpr7bc=; X-UUID: 36793c47f4934525899c2ced162e9734-20200619 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 485305922; Fri, 19 Jun 2020 09:55:08 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 19 Jun 2020 09:54:58 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 19 Jun 2020 09:55:04 +0800 Message-ID: <1592531704.23014.1.camel@mtkswgap22> Subject: Re: [PATCH] Fix unwind_frame for clang-built kernels From: Miles Chen To: Nick Desaulniers CC: Nathan Huckleberry , Russell King , Vincent Whitchurch , Linux ARM , LKML , clang-built-linux , Sedat Dilek , Catalin Marinas , Kristof Beyls Date: Fri, 19 Jun 2020 09:55:04 +0800 In-Reply-To: References: <20200616223633.73971-1-nhuck@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 7E2F102F10D549D6E1CCFDFA8195D3DEE40C7CE5360F0C642E1E211402486FC02000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIwLTA2LTE4IGF0IDEzOjIyIC0wNzAwLCBOaWNrIERlc2F1bG5pZXJzIHdyb3Rl Og0KPiBPbiBUdWUsIEp1biAxNiwgMjAyMCBhdCAzOjM2IFBNICdOYXRoYW4gSHVja2xl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