From mboxrd@z Thu Jan 1 00:00:00 1970 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,URIBL_BLOCKED,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 19DF5C2D0DB for ; Wed, 29 Jan 2020 17:00:12 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 E4C132071E for ; Wed, 29 Jan 2020 17:00:11 +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="k1WtaHw0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4C132071E 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 whitealder.osuosl.org (Postfix) with ESMTP id D88C687469; Wed, 29 Jan 2020 17:00:11 +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 nb4LqzrdjCql; Wed, 29 Jan 2020 17:00:11 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 6324D86E1A; Wed, 29 Jan 2020 17:00:11 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4ABEAC0178; Wed, 29 Jan 2020 17:00:11 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 98801C0171 for ; Wed, 29 Jan 2020 17:00:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 861DE838D9 for ; Wed, 29 Jan 2020 17:00:10 +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 ekKnDi0nOKPH for ; Wed, 29 Jan 2020 17:00:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by whitealder.osuosl.org (Postfix) with ESMTPS id 13973832E1 for ; Wed, 29 Jan 2020 17:00:10 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id a6so173652plm.3 for ; Wed, 29 Jan 2020 09:00:10 -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=9aeiVANobTtX2du6RvB/Di8UDcO1ImcJlTwuVWcf+30=; b=k1WtaHw0ZIub3Ihonid26f1Rdn8lq9AHxeZY2KVIXqoGqq6qMefdsu0jtCKpO17guf pbSxGpJrXZavkKIQsRGWgL92za9fhwDmW2Rtv2b8QVB9+8fbiekFaOZFUUvf+YhrjZ/U /8ZNYxooQmHSguKjS+1QxfNLOGZkIIXpGGQw23vYu2bqGPoftUoNWT+zV6r/rThs4R1S aTeGpJnxOvQrtG1clWSIK27TorFeLeB4ubK7acsmtEsIZOiMUgr6WWymSChy2T+eHgkM 1zcBbOq3yD0nrB1C2d2I706iK4ZirE1dOyBRzzpi9SFIDcsCb1cCPmZKhPYe9utvJVUP kH5g== 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=9aeiVANobTtX2du6RvB/Di8UDcO1ImcJlTwuVWcf+30=; b=TNXX28guGC1Z/iRt0ExdHegjDdVl3C+Fb3hIx1/aWicYWbwkPV9aIxkn4pNN/ks4vJ 7AyslWUNuG7VN37Ym8saBYbdiBv7Cra6SSjWZDtW5YhKuB8zo8j1zNAaojxeXMnZtAiF U5BrJfR4djwuPbBsEJKW2+JCLIlLNqmhLxaCALT5LBYV+UGV5wHSkkUBzd/BYh3CDpTK 11OuFiO/7za6IMhVaF+v7ibY6Fab8hpyo+szb5u/cafrGGEhzJG+7Rf3EdVYDHRHfYno +uk61+WRg3K95gtAPhsKYAT38hT2UW7OSijDQW6XHdNX9dVj+Mz0QP8XA3R2NdvFJV6F LruQ== X-Gm-Message-State: APjAAAXmZGwoDof5kFRl16d2Tc4mnnVy4rkD5LhL0VAZAkECjh1ARiDM o5X2WHaY1dxXApEQFzxb0PkOJRgHIfw= X-Google-Smtp-Source: APXvYqwoxr62sLiUXS6Pzcz1MyevOZgjh8DyFmryp8Fk9RTl5zR6fobYKH+H/3go+qJ405se8eX+5Q== X-Received: by 2002:a17:90a:26ab:: with SMTP id m40mr641511pje.42.1580317209743; Wed, 29 Jan 2020 09:00:09 -0800 (PST) Received: from localhost.localdomain ([2405:205:c92f:3ccd:49ce:a9e3:28b5:cf94]) by smtp.gmail.com with ESMTPSA id f8sm3223610pfn.2.2020.01.29.09.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2020 09:00:09 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Date: Wed, 29 Jan 2020 22:28:27 +0530 Message-Id: <20200129165832.10574-15-pragat.pandya@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200129165832.10574-1-pragat.pandya@gmail.com> References: <20200129165832.10574-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 14/19] staging: exfat: Rename variable 'ShortName' to 'short_name' 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 "ShortName" to "short_name" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index e74e4d5fecd4..099730e5b9f1 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -273,7 +273,7 @@ struct dir_entry_t { char name[MAX_NAME_LENGTH * MAX_CHARSET_SIZE]; /* used only for FAT12/16/32, not used for exFAT */ - char ShortName[DOS_NAME_LENGTH + 2]; + char short_name[DOS_NAME_LENGTH + 2]; u32 Attr; u64 Size; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index 8e9684808cba..e155079722c8 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -1464,7 +1464,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) sizeof(struct date_time_t)); memset((char *)&info->AccessTimestamp, 0, sizeof(struct date_time_t)); - strcpy(info->ShortName, "."); + strcpy(info->short_name, "."); strcpy(info->name, "."); dir.dir = p_fs->root_dir; @@ -2132,9 +2132,9 @@ static int exfat_readdir(struct file *filp, struct dir_context *ctx) if (!de.name[0]) goto end_of_dir; - if (!memcmp(de.ShortName, DOS_CUR_DIR_NAME, DOS_NAME_LENGTH)) { + if (!memcmp(de.short_name, DOS_CUR_DIR_NAME, DOS_NAME_LENGTH)) { inum = inode->i_ino; - } else if (!memcmp(de.ShortName, DOS_PAR_DIR_NAME, DOS_NAME_LENGTH)) { + } else if (!memcmp(de.short_name, DOS_PAR_DIR_NAME, DOS_NAME_LENGTH)) { inum = parent_ino(filp->f_path.dentry); } else { loff_t i_pos = ((loff_t)EXFAT_I(inode)->fid.start_clu << 32) | -- 2.17.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees