From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932823AbcLHQlB (ORCPT ); Thu, 8 Dec 2016 11:41:01 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52653 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932236AbcLHQk7 (ORCPT ); Thu, 8 Dec 2016 11:40:59 -0500 Subject: Re: [PATCH 2/2] x86, paravirt: Fix bool return type for PVOP_CALL To: Peter Zijlstra , linux-kernel@vger.kernel.org, x86@kernel.org References: <20161208154213.952687487@infradead.org> <20161208154349.346057680@infradead.org> Cc: Peter Anvin , Ingo Molnar , Thomas Gleixner , Borislav Petkov , Jeremy Fitzhardinge , Chris Wright , Alok Kataria , Rusty Russell , virtualization@lists.linux-foundation.org, Pan Xinhui , Paolo Bonzini , kernel test robot From: Pan Xinhui Date: Fri, 9 Dec 2016 00:40:35 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161208154349.346057680@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16120816-0016-0000-0000-000001FE0CCC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16120816-0017-0000-0000-0000060527A8 Message-Id: <474f05c8-8bca-f68f-6499-ce7b424ff984@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-08_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612080248 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, Peter I think I know the point. then could we just let __eax rettype(here is bool), not unsigned long? I does not do tests for my thoughts. @@ -461,7 +461,9 @@ int paravirt_disable_iospace(void); #define PVOP_VCALL_ARGS \ unsigned long __eax = __eax, __edx = __edx, __ecx = __ecx; \ register void *__sp asm("esp") -#define PVOP_CALL_ARGS PVOP_VCALL_ARGS +#define PVOP_CALL_ARGS \ + rettype __eax = __eax, __edx = __edx, __ecx = __ecx; \ + register void *__sp asm("esp")