Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1196283imu; Thu, 20 Dec 2018 11:51:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpBplGQcE8EbJnJnfhtt+NN0EiUCe2YXMWHyFgRS3zNvOF/l68ts5F79jqMdVHW7k95Q7z X-Received: by 2002:a63:ab08:: with SMTP id p8mr23813499pgf.87.1545335477250; Thu, 20 Dec 2018 11:51:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545335477; cv=none; d=google.com; s=arc-20160816; b=PLyN21yOO8UlrupuX9su4a9fMjbt0hPUZYYtqWxdAgEzeBlyrdWNPPi/yTIVwT7ZBx rB88Fwq/oCIFcXtEHvOFEFZje1WbMtCREFAuvRMquvD902OI2cR+2V1uwpsh48y7T4Fo iYnupoumgiDhXX1IpqoKGmyjP4iQajwQEe0y3akjuoFRB2sgUBnO//WhnRkfbvlx7gBx XKGN98er8o2o/AGRrT8STcbECwI3PLDsEqWgZvHndsFlA0BjXFJPX9NbLjytvyLgMFpO lbeZdSHTbmbDbj8sc9uotbbtvFLmIL/SJpwk3qzk0xVLSEooeF9k3yH5xmhdK1hra6r+ Pu5Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=yd7CoP8A9FoyLrJpObQOGsXHXwDmV5CJeQfcXFPNOaU=; b=QMKoDkDwzA0dEsUE1OvFfwF37O6BAlKF54MfRsnhmqDhZn7SPt9j8IGSdz9ifjFVY+ NtOKMNJsmGiijkzvJtm5xdTqS0zJ3QM7eUP0IwIl0KMB0u1xvbClcS++FNxLSnzeKI3O qRtsqtA57GdxJj9jN/QUnVfbAeSf0u7CbvMfpFk8H1ML79FNvW2/kvfl9ariCeaab5mb +zIlJBIJwXs3QfkGtIC6is/nNx3qvbRbpTLpXkYcgEdlbdFxJBwHzkheu0x3NqKqgV6B EcikKg+KqZ32+cpgamcny7A7lN055UlLJPhGc8IYJwkZYwaTElbhHmcKRK/B9sXfzJDQ TUWw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13si17814942pgp.540.2018.12.20.11.51.01; Thu, 20 Dec 2018 11:51:17 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731900AbeLTMYk (ORCPT + 99 others); Thu, 20 Dec 2018 07:24:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43244 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729161AbeLTMYi (ORCPT ); Thu, 20 Dec 2018 07:24:38 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 22E24C0495B0; Thu, 20 Dec 2018 12:24:38 +0000 (UTC) Received: from gondolin (dhcp-192-187.str.redhat.com [10.33.192.187]) by smtp.corp.redhat.com (Postfix) with ESMTP id E495219C65; Thu, 20 Dec 2018 12:24:32 +0000 (UTC) Date: Thu, 20 Dec 2018 13:24:30 +0100 From: Cornelia Huck To: Michael Mueller 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 Subject: Re: [PATCH v5 06/15] KVM: s390: remove prefix kvm_s390_gisa_ from static inline functions Message-ID: <20181220132430.7cea69d3.cohuck@redhat.com> In-Reply-To: <20181219191756.57973-7-mimu@linux.ibm.com> References: <20181219191756.57973-1-mimu@linux.ibm.com> <20181219191756.57973-7-mimu@linux.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 20 Dec 2018 12:24:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_.