Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp54071imk; Sat, 2 Jul 2022 11:36:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sdLxT1wqoTMMUN4hQc6hmp5GCa2EenyY+xDQ7cMThNs3JtPBZ4Yf1obFIdM6u26WPGI5tv X-Received: by 2002:a17:902:e84a:b0:16a:5435:b5fc with SMTP id t10-20020a170902e84a00b0016a5435b5fcmr28579811plg.119.1656786999480; Sat, 02 Jul 2022 11:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656786999; cv=none; d=google.com; s=arc-20160816; b=tXkiLo4cxmUarRpSjWffhMuEkwHn7qC0hHb1R/Mjju02L4CkaxEVlruv1VrFdQ+is1 xU8nHmJ774evXUrxpr7jwRt2ikLjN6rucTR5lVUxpwvi9mT52oKy7xsD/QToIkEGYwSk om65KMB12DvPREbfexuxVg+dgKOFA/bdKUAr3234TT7AhFZvjzTAwNQfXlnUDTj3N8yr kLojxN2cxfvN/UE7MMD3/hQTIuB1cuPUjX/C6bTgeXcA/Wzbh5QzKbWx/mAu2WwXmGOD rEngam0/h+nEDDPDFtVvURC0iEne0Pzjem0gq9W3uE+LCej2ei4nnp1xTVSd7wzvGnTF Gl3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Nk2LiEx1zvOk7OdRWE7OLiAJ02hxlrTAVhR1a0226ro=; b=eSZ2EnATWdOqOKPoHHwLq/via8hJBfwy29oNun469r2ZpM6qTJbjeakJdsgqtBHhP6 B0N2d8+G0YdYMR8hcTKOdPM0b3supL1Um++PV2tJj/84kG9cc1B8sgpLGiG25PsFZ0GM R4mRrxpxRhbTKf2DRMJTVs8duRBNjhoxATnVxFz2SboSs/1obqmX483izABtwocTZNbG zhbsBfUZyh+SLv4rFJNsvt7dSo5Ys5Ak4R8k4CmAwiv0eZR1at55XhanuM3qcpQKnp+s yM6MuEw1/uRWWU79lJ62VW0fUCihe9FMQq6Ex1SRbuTmFsEIXpZzOtdNABN005kbq3ws 56ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a056a000b4200b00518a0f3ba68si3032117pfo.347.2022.07.02.11.36.26; Sat, 02 Jul 2022 11:36:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbiGBS3Q (ORCPT + 99 others); Sat, 2 Jul 2022 14:29:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbiGBS3P (ORCPT ); Sat, 2 Jul 2022 14:29:15 -0400 Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14C5EDED0 for ; Sat, 2 Jul 2022 11:29:15 -0700 (PDT) Received: from pop-os.home ([90.11.190.129]) by smtp.orange.fr with ESMTPA id 7hrio8ivT2ovC7hrioywFJ; Sat, 02 Jul 2022 20:29:13 +0200 X-ME-Helo: pop-os.home X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Sat, 02 Jul 2022 20:29:13 +0200 X-ME-IP: 90.11.190.129 From: Christophe JAILLET To: agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com, vneethv@linux.ibm.com, oberpar@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, almaz.alexandrovich@paragon-software.com, yury.norov@gmail.com, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk Cc: linux-s390@vger.kernel.org, ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 1/4] s390/cio: Rename bitmap_size() as idset_bitmap_size() Date: Sat, 2 Jul 2022 20:29:09 +0200 Message-Id: <3f2ad7fb91948525f6c52e0d36ec223cd3049c88.1656785856.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to introduce a bitmap_size() function in the bitmap API, we have to rename functions with a similar name. Add a "idset_" prefix and change bitmap_size() into idset_bitmap_size(). No functional change. Signed-off-by: Christophe JAILLET --- drivers/s390/cio/idset.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/s390/cio/idset.c b/drivers/s390/cio/idset.c index 45f9c0736be4..e1e77fe080bf 100644 --- a/drivers/s390/cio/idset.c +++ b/drivers/s390/cio/idset.c @@ -16,7 +16,7 @@ struct idset { unsigned long bitmap[]; }; -static inline unsigned long bitmap_size(int num_ssid, int num_id) +static inline unsigned long idset_bitmap_size(int num_ssid, int num_id) { return BITS_TO_LONGS(num_ssid * num_id) * sizeof(unsigned long); } @@ -25,11 +25,11 @@ static struct idset *idset_new(int num_ssid, int num_id) { struct idset *set; - set = vmalloc(sizeof(struct idset) + bitmap_size(num_ssid, num_id)); + set = vmalloc(sizeof(struct idset) + idset_bitmap_size(num_ssid, num_id)); if (set) { set->num_ssid = num_ssid; set->num_id = num_id; - memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); + memset(set->bitmap, 0, idset_bitmap_size(num_ssid, num_id)); } return set; } @@ -41,7 +41,7 @@ void idset_free(struct idset *set) void idset_fill(struct idset *set) { - memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); + memset(set->bitmap, 0xff, idset_bitmap_size(set->num_ssid, set->num_id)); } static inline void idset_add(struct idset *set, int ssid, int id) -- 2.34.1