Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp986348imu; Thu, 20 Dec 2018 08:19:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/VS+toFvuw26eJtSPnzuRuaZh71lJ1CuznMnn/Hg5iGLwykYzfyRySJaePw4hq/KUz+KNY7 X-Received: by 2002:a62:18ce:: with SMTP id 197mr25839718pfy.88.1545322787191; Thu, 20 Dec 2018 08:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545322787; cv=none; d=google.com; s=arc-20160816; b=Hrgvkczrdj5R9dY8neyhDMbdPkRS8IYx51b4Lt68OH1V0twSWo31G5Ts8j03bQ4ztf JlHj5f38xBDvCRyAR4mv4UKIo/6SbW07D+r9rha61ZdR3uD5nCOhrpMsnx6tXZQYqFC4 uLjHE4kShc4mAxDQJgM1f165A/Hg+gK/Svmu9C6PrAzLrkwRhrhklLK2TCMbKttPr73r gaPb9v5IyYYARsHyngonU4kIzI53y3xnD1urODG9jk354phJRHvDdwUEd5GF3FpeTjy4 yrbvZksFnRn1XUCUI3CzWJrWsXQDUy3sLa/nwGrsE2oohyGkvkTvAn2gd4WbdV7QzWmH YyYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :organization:from:references:cc:to:subject:reply-to; bh=2cfXdJkeGtXlHZZLfToe8vWJKDGuXxRT3vQEqWFM9mk=; b=aeUijPOG5gWqhd9NdZZXyRrZ2i98dguHgWW1k5Lrqqf+TIth49RvasoocN+BSeYnCU qkG5BYCeiexD9nHUriM5Nl/hTy2LWccZ5nB1+ljnOQXb+PX7a6aooRleGIcoFloo9C4I X2pT70bA+Vl3qS2NJONWaV/wjwhMZZF25zYaWoCprg1PN1YFUK0Tj8Mq+4LUUkxKGCua oQ6hkaJ0oxRVPEm6GElmPiFTce9a/L1xX6C3GBubUHFBg1Bjps4XVmZ6H/dtj9vPsQmf 3vcGB1ICnIkP6fJMogF81f8D44iVfbwUmrb72oY1pv5n077t35Y5VHUY6/8OY++eDUw1 bveQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si17733845plp.269.2018.12.20.08.19.31; Thu, 20 Dec 2018 08:19:47 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387435AbeLTOhK (ORCPT + 99 others); Thu, 20 Dec 2018 09:37:10 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40072 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731737AbeLTOhJ (ORCPT ); Thu, 20 Dec 2018 09:37:09 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBKEYclC103163 for ; Thu, 20 Dec 2018 09:37:08 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2pg9jqtesk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 20 Dec 2018 09:37:07 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 20 Dec 2018 14:37:05 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 20 Dec 2018 14:37:03 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBKEb2UN22478978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Dec 2018 14:37:02 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DD7D15205A; Thu, 20 Dec 2018 14:37:01 +0000 (GMT) Received: from [9.152.224.123] (unknown [9.152.224.123]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 81BE25204F; Thu, 20 Dec 2018 14:37:01 +0000 (GMT) Reply-To: mimu@linux.ibm.com Subject: Re: [PATCH v5 06/15] KVM: s390: remove prefix kvm_s390_gisa_ from static inline functions To: Cornelia Huck Cc: KVM Mailing List , Linux-S390 Mailing List , linux-kernel@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , Christian Borntraeger , Janosch Frank , David Hildenbrand , Halil Pasic , Pierre Morel References: <20181219191756.57973-1-mimu@linux.ibm.com> <20181219191756.57973-7-mimu@linux.ibm.com> <20181220132430.7cea69d3.cohuck@redhat.com> From: Michael Mueller Organization: IBM Date: Thu, 20 Dec 2018 15:37:01 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181220132430.7cea69d3.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18122014-0008-0000-0000-000002A41770 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18122014-0009-0000-0000-0000220EB579 Message-Id: <49e2b16f-23a3-73a8-75b1-b03d5c9ad8a2@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-20_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=928 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812200120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.12.18 13:24, Cornelia Huck wrote: > On Wed, 19 Dec 2018 20:17:47 +0100 > Michael Mueller wrote: > >> This will shorten the length of code lines. >> All GISA related static inline functions are local to interrupt.c >> >> Signed-off-by: Michael Mueller >> --- >> arch/s390/kvm/interrupt.c | 26 +++++++++++++------------- >> 1 file changed, 13 insertions(+), 13 deletions(-) >> >> diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c >> index 4ab20d2eb180..9b1fa39b6f90 100644 >> --- a/arch/s390/kvm/interrupt.c >> +++ b/arch/s390/kvm/interrupt.c >> @@ -224,22 +224,22 @@ static inline u8 int_word_to_isc(u32 int_word) >> */ >> #define IPM_BIT_OFFSET (offsetof(struct kvm_s390_gisa, ipm) * BITS_PER_BYTE) >> >> -static inline void kvm_s390_gisa_set_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc) >> +static inline void set_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc) >> { >> set_bit_inv(IPM_BIT_OFFSET + gisc, (unsigned long *) gisa); >> } >> >> -static inline u8 kvm_s390_gisa_get_ipm(struct kvm_s390_gisa *gisa) >> +static inline u8 get_ipm(struct kvm_s390_gisa *gisa) >> { >> return READ_ONCE(gisa->ipm); >> } >> >> -static inline void kvm_s390_gisa_clear_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc) >> +static inline void clear_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc) >> { >> clear_bit_inv(IPM_BIT_OFFSET + gisc, (unsigned long *) gisa); >> } >> >> -static inline int kvm_s390_gisa_tac_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc) >> +static inline int tac_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc) >> { >> return test_and_clear_bit_inv(IPM_BIT_OFFSET + gisc, (unsigned long *) gisa); >> } > > I don't disagree with making them shorter, but I think the code would > be more readable if you only dropped the kvm_s390_ prefix and kept > annotating the functions as gisa_. applied >