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=-6.5 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,UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=unavailable 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 8907EC352A5 for ; Mon, 10 Feb 2020 18:38:04 +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 59F0920715 for ; Mon, 10 Feb 2020 18:38:04 +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="U/98isVs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59F0920715 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 4928F85233; Mon, 10 Feb 2020 18:38:04 +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 lEZyZdLmQrSb; Mon, 10 Feb 2020 18:38:03 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0AF7385259; Mon, 10 Feb 2020 18:38:03 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E8DA5C07FE; Mon, 10 Feb 2020 18:38:02 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2E49DC0171 for ; Mon, 10 Feb 2020 18:38:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2B0618513B for ; Mon, 10 Feb 2020 18:38:02 +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 6K-mMHWA7GYc for ; Mon, 10 Feb 2020 18:38:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6E79E85116 for ; Mon, 10 Feb 2020 18:38:00 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id b9so4336409pgk.12 for ; Mon, 10 Feb 2020 10:38:00 -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=uBIMPOfBTgLJ9F750/zExiDaSZF5wks+0wth9UWA4bI=; b=U/98isVs+NwvcG+k1yzIV1AwWoGla2g9i9qTnLHOqSS8BRRNMC96ve09aw8HaUzEpW wFN5RpVv++OyXfxe9TCEH/eNMtfeebT5TpCoxN7ZBKM5CVgm0jNsfmjCdP4RffwbaAf0 MV0bvZ4W28jcJQLZwCwh4zw1+a9TsXYoRa4e5o0ZNFISoHZAVBUs4hU+fhFPy5aBQA8u mX/bfG+x6/g8aaNN2OH/45+W3tq8MWy32MDChjn1ZNITQdIr4rdTbWkAnEwa9XIVEAzw uZPRXdJGUlVBB+Ha4xxzXB/PigbYa2nQRZ49eEpmIPSskCS+ImdOhOhr3oeUMmZAGEJX dvPQ== 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=uBIMPOfBTgLJ9F750/zExiDaSZF5wks+0wth9UWA4bI=; b=FsWWHFx2HSN33dhGrhQ3wVlH/OveUdDJaVaO+pYHEIAATR9c9tIHoY3KGlxaPNdFAQ uKtWF+3MXTt72VtS3imI7ezS6snWLlp5Ofq3oKL5CIDG3wuwJILV7Xs83qbIDC3ZcZ9o F67VNwOXjUA2I1DC+RoXjVtzZ1XEJXHjGnLPDWoBs/XxljIvWMzditvu7w7tUBvByse9 vt1OMt8PUVPZ61Gk/0Cgv8B5pCp803lbIHRFZOHBNi7mlqSx81vL5+dpue3EjltinSvx I1BQweiVeqcIixgErumGO44JB5vHOnTP9lCvG20CqQg+heJcZQX+CJzO2Q9rIADlnZTO JYdQ== X-Gm-Message-State: APjAAAUxLYI0A9MMrrsmQtABOHskasZChQ16sK6UmtX5XcZUBl7yXtCF ljsMNGPLn8udVWYor1TsLRI= X-Google-Smtp-Source: APXvYqwCMF/9v7IHSJ4pTeCAIoaJLAOduHtDR6jO86pAdhAkqZ6nPja5IitT53QOBf/e2R9mgMmfUA== X-Received: by 2002:a63:f0a:: with SMTP id e10mr2706771pgl.402.1581359880044; Mon, 10 Feb 2020 10:38:00 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:37:59 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Date: Tue, 11 Feb 2020 00:05:57 +0530 Message-Id: <20200210183558.11836-19-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 18/19] staging: exfat: Rename variable 'ModifyTimestamp' to 'modify_timestamp' 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 "ModifyTimestamp" to "modify_timestamp" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 46 ++++++++++++++--------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index c99652ab13f1..2c911f1ea949 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -279,7 +279,7 @@ struct dir_entry_t { u64 Size; u32 num_subdirs; struct date_time_t create_timestamp; - struct date_time_t ModifyTimestamp; + struct date_time_t modify_timestamp; struct date_time_t AccessTimestamp; }; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index ed862c3e3e10..7388aa8fb344 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -1460,7 +1460,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->attr = ATTR_SUBDIR; memset((char *)&info->create_timestamp, 0, sizeof(struct date_time_t)); - memset((char *)&info->ModifyTimestamp, 0, + memset((char *)&info->modify_timestamp, 0, sizeof(struct date_time_t)); memset((char *)&info->AccessTimestamp, 0, sizeof(struct date_time_t)); @@ -1514,13 +1514,13 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) info->create_timestamp.millisecond = 0; exfat_get_entry_time(ep, &tm, TM_MODIFY); - info->ModifyTimestamp.year = tm.year; - info->ModifyTimestamp.month = tm.mon; - info->ModifyTimestamp.day = tm.day; - info->ModifyTimestamp.hour = tm.hour; - info->ModifyTimestamp.minute = tm.min; - info->ModifyTimestamp.second = tm.sec; - info->ModifyTimestamp.millisecond = 0; + info->modify_timestamp.year = tm.year; + info->modify_timestamp.month = tm.mon; + info->modify_timestamp.day = tm.day; + info->modify_timestamp.hour = tm.hour; + info->modify_timestamp.minute = tm.min; + info->modify_timestamp.second = tm.sec; + info->modify_timestamp.millisecond = 0; memset((char *)&info->AccessTimestamp, 0, sizeof(struct date_time_t)); @@ -1613,12 +1613,12 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.year = info->create_timestamp.year; exfat_set_entry_time(ep, &tm, TM_CREATE); - tm.sec = info->ModifyTimestamp.second; - tm.min = info->ModifyTimestamp.minute; - tm.hour = info->ModifyTimestamp.hour; - tm.day = info->ModifyTimestamp.day; - tm.mon = info->ModifyTimestamp.month; - tm.year = info->ModifyTimestamp.year; + tm.sec = info->modify_timestamp.second; + tm.min = info->modify_timestamp.minute; + tm.hour = info->modify_timestamp.hour; + tm.day = info->modify_timestamp.day; + tm.mon = info->modify_timestamp.month; + tm.year = info->modify_timestamp.year; exfat_set_entry_time(ep, &tm, TM_MODIFY); exfat_set_entry_size(ep2, info->Size); @@ -1931,13 +1931,13 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) dir_entry->create_timestamp.millisecond = 0; exfat_get_entry_time(ep, &tm, TM_MODIFY); - dir_entry->ModifyTimestamp.year = tm.year; - dir_entry->ModifyTimestamp.month = tm.mon; - dir_entry->ModifyTimestamp.day = tm.day; - dir_entry->ModifyTimestamp.hour = tm.hour; - dir_entry->ModifyTimestamp.minute = tm.min; - dir_entry->ModifyTimestamp.second = tm.sec; - dir_entry->ModifyTimestamp.millisecond = 0; + dir_entry->modify_timestamp.year = tm.year; + dir_entry->modify_timestamp.month = tm.mon; + dir_entry->modify_timestamp.day = tm.day; + dir_entry->modify_timestamp.hour = tm.hour; + dir_entry->modify_timestamp.minute = tm.min; + dir_entry->modify_timestamp.second = tm.sec; + dir_entry->modify_timestamp.millisecond = 0; memset((char *)&dir_entry->AccessTimestamp, 0, sizeof(struct date_time_t)); @@ -3188,7 +3188,7 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid) inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1)) & ~((loff_t)p_fs->cluster_size - 1)) >> 9; - exfat_time_fat2unix(&inode->i_mtime, &info.ModifyTimestamp); + exfat_time_fat2unix(&inode->i_mtime, &info.modify_timestamp); exfat_time_fat2unix(&inode->i_ctime, &info.create_timestamp); exfat_time_fat2unix(&inode->i_atime, &info.AccessTimestamp); @@ -3259,7 +3259,7 @@ static int exfat_write_inode(struct inode *inode, struct writeback_control *wbc) info.attr = exfat_make_attr(inode); info.Size = i_size_read(inode); - exfat_time_unix2fat(&inode->i_mtime, &info.ModifyTimestamp); + exfat_time_unix2fat(&inode->i_mtime, &info.modify_timestamp); exfat_time_unix2fat(&inode->i_ctime, &info.create_timestamp); exfat_time_unix2fat(&inode->i_atime, &info.AccessTimestamp); -- 2.17.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees