Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46DD5C35254 for ; Mon, 10 Feb 2020 18:37:32 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 188F720656 for ; Mon, 10 Feb 2020 18:37:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AYHYMyiV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 188F720656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D82EB85166; Mon, 10 Feb 2020 18:37:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kgiC3SGBqdZw; Mon, 10 Feb 2020 18:37:31 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 80B2285190; Mon, 10 Feb 2020 18:37:31 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 70390C07FE; Mon, 10 Feb 2020 18:37:31 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9A357C0171 for ; Mon, 10 Feb 2020 18:37:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 949F4860F9 for ; Mon, 10 Feb 2020 18:37:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WloSIup9h3dy for ; Mon, 10 Feb 2020 18:37:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1913185C04 for ; Mon, 10 Feb 2020 18:37:30 +0000 (UTC) Received: by mail-pj1-f68.google.com with SMTP id ep11so131064pjb.2 for ; Mon, 10 Feb 2020 10:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6lwk7miD+ae4jYYUu6bZ8+EVLNhjmBds1tK8zZYoDaY=; b=AYHYMyiVBRhvvhLK2Df31om+O/xI0JupMjAhijHFJeHmLBOMZaWGpChcBRc8j34moa c9K9hFTlP6fEFDI4kCY77reTrKUghuTWoxDnahIcliazM3xnzmkfkshbdQKBq5x0pPlk U8XwKvDQqUGgGYhrrP45KXuGA0CSdc/DKaHy2anZASMikSEeKmtaJrfFkD9/WgAulcSo gwdVRMHtoIkEG06e7RKXQ4r3IDRZ72n/Fl7TZfeOnTj971VvN1QU60wG8cNMPmx+hNFJ FGmTZwowFK/IcHtLOkZFAFL7uBflq/c03u75SdU/4xZnxTRJgf5Dlx+A6ChwYIXqOzlk XCMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6lwk7miD+ae4jYYUu6bZ8+EVLNhjmBds1tK8zZYoDaY=; b=ceFuZFigPoxzsD7cBjS2f87rcqmzBb8yqcK+d3RkKSAY9JQfXKdhH8lNZ6+nHFJqwb UJjKVlibgQnimemSRT9IfDOrhUKFUhQea/gEtmNbF1P/Ol9JoGXlykh0SkeCoW/ky2rG 6iW6xXnpT5jg/HtT2lGyffgUUhymD2XUFIZU6BwLgOvKUCL3oJPtEWeTO27x6SySUcxe SWb1TWcaKfDu/41dbEpnecgXwXXS6s8uNkx460tsVWThz28jDvojwRmF8xZ5KRV++xsi azb/oKRIE2bcAfliF84rc6P9fYKXqLp2RQWq8W3zlIBPYKnVG/q/UReKp8t3q8bNGn+S rTdA== X-Gm-Message-State: APjAAAXVkCA8o5roZzO2CGOPMz01fMunKKxmHBFqoh3S3b5CWCMlZkU+ kjgV0T0JqJQwtM/F5dizpQc= X-Google-Smtp-Source: APXvYqy9BhBfDaOAN2mGbOwrysU4PzmHuWlw6ufGWELxO5+2Bk5SILjeWy2pZchgdlgTrLTs80YRJw== X-Received: by 2002:a17:90a:af81:: with SMTP id w1mr505149pjq.14.1581359849734; Mon, 10 Feb 2020 10:37:29 -0800 (PST) Received: from localhost.localdomain ([2405:204:8308:74f3:144f:bb39:afc3:51b0]) by smtp.gmail.com with ESMTPSA id gc1sm124922pjb.20.2020.02.10.10.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:37:29 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Date: Tue, 11 Feb 2020 00:05:51 +0530 Message-Id: <20200210183558.11836-13-pragat.pandya@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210183558.11836-1-pragat.pandya@gmail.com> References: <20200207094612.GA562325@kroah.com> <20200210183558.11836-1-pragat.pandya@gmail.com> Cc: devel@driverdev.osuosl.org, Pragat Pandya , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [Linux-kernel-mentees] [PATCH v2 12/19] staging: exfat: Rename variable 'UsedClusters' to 'used_clusters' X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Fix checkpatch warning: Avoid CamelCase Change all occurrences of identifier "UsedClusters" to "used_clusters" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index aa6c46628fdd..01d79dcc1c94 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -246,7 +246,7 @@ struct vol_info_t { u32 cluster_size; u32 num_clusters; u32 free_clusters; - u32 UsedClusters; + u32 used_clusters; }; /* directory structure */ diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index dcccf4170afe..7d70206eb5f8 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -497,8 +497,8 @@ static int ffsGetVolInfo(struct super_block *sb, struct vol_info_t *info) info->fat_type = p_fs->vol_type; info->cluster_size = p_fs->cluster_size; info->num_clusters = p_fs->num_clusters - 2; /* clu 0 & 1 */ - info->UsedClusters = p_fs->used_clusters; - info->free_clusters = info->num_clusters - info->UsedClusters; + info->used_clusters = p_fs->used_clusters; + info->free_clusters = info->num_clusters - info->used_clusters; if (p_fs->dev_ejected) err = -EIO; @@ -3348,8 +3348,8 @@ static int exfat_statfs(struct dentry *dentry, struct kstatfs *buf) info.fat_type = p_fs->vol_type; info.cluster_size = p_fs->cluster_size; info.num_clusters = p_fs->num_clusters - 2; - info.UsedClusters = p_fs->used_clusters; - info.free_clusters = info.num_clusters - info.UsedClusters; + info.used_clusters = p_fs->used_clusters; + info.free_clusters = info.num_clusters - info.used_clusters; if (p_fs->dev_ejected) pr_info("[EXFAT] statfs on device that is ejected\n"); -- 2.17.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees