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.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 9BF81C3F68F for ; Mon, 10 Feb 2020 18:36:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B4F42085B for ; Mon, 10 Feb 2020 18:36:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FW9Pvg5Q" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727775AbgBJSgl (ORCPT ); Mon, 10 Feb 2020 13:36:41 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43419 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbgBJSgk (ORCPT ); Mon, 10 Feb 2020 13:36:40 -0500 Received: by mail-pg1-f196.google.com with SMTP id u131so4339181pgc.10; Mon, 10 Feb 2020 10:36:39 -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=k81GbBbR7NrArK0tNkpsU/XDBosZIBkaHc6+hpzCpAE=; b=FW9Pvg5Qnd9N9EbUkysJCNGRp9nnLIMsqiGyc1Nnq+tvpU7/T2L43PdLafotHHVAdY RrwfqfBGzOOLK/3N+yvuy/m1Pa2QkVJ2/7g58l2BPRm1CXzDNwclKp4xCkQlxWunLCro DCOEl1ErVnp8BOavBTofX794i3otTU/JHrWpzAmgq6qQixDlVokcKaoRgcPXCyy+wKNL jxTyKnxI3mx1yXcafDhrxE3Y8T/zN3JJNrMr3s04QjZ1kA5OsznCaWypM7EGCYJkhCxT UAICSU9cMaLRO9ir27rLIj/PiTXXBSaAfOINmVVbJPM1ZMLna5HKi6Mb4dDeO89tkpT2 HEsg== 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=k81GbBbR7NrArK0tNkpsU/XDBosZIBkaHc6+hpzCpAE=; b=QWw4jmbZ1YSaLHpOqGCVvjEa8u35j9OjcvRqsErvl1wkzeJwMpSRZ+ZL6D5WAbm/uv +uQPSFvowP/AtqSfPQq8vlJIZPmloapaQG4Ybdfajb0VdVf/XJXQr9iFHWNp+DBW9u34 6nwoWm9c5NP43gEvQnukw/j/J4gfFEmmeP2oS4XkX4rmHZq61nFwgfy72EtLfWrx4Hnb J29Kj9+1FuNHE8Qy3rhu3JUNSNItkXMRXg1DFNMMJX2aKqYd64WMBR3vpsjhPs7L9BB2 ZAf4VWQ5Vv8dadDG9y5M+RyR+lga6CyiUpzNh423cc1SLxC8RNbT+u8S8CHYZDjDjUTx Tr5w== X-Gm-Message-State: APjAAAVt9X5K1Rcqxiu8sjtulxzVNjcqLeB339Ux2zg8EoJ+YDvm0YUK DECvP594/g+UAyYkQDCJk2I= X-Google-Smtp-Source: APXvYqwbbw3mMp1Hip+emIkTlDDJNFgt+rz1IEAvcq59GCnganNG8Z0Z7iaR/8VpvW29GW8IWXwaWQ== X-Received: by 2002:aa7:8610:: with SMTP id p16mr2442863pfn.28.1581359799114; Mon, 10 Feb 2020 10:36:39 -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.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:36:38 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Pragat Pandya Subject: [PATCH v2 02/19] staging: exfat: Rename variable 'Month' to 'month' Date: Tue, 11 Feb 2020 00:05:41 +0530 Message-Id: <20200210183558.11836-3-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch warning: Avoid CamelCase Change all occurrences of identifier "Month" to "month" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 30ec81250f08..ae7f8e035a71 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -223,7 +223,7 @@ static inline u16 get_row_index(u16 i) struct date_time_t { u16 year; - u16 Month; + u16 month; u16 Day; u16 Hour; u16 Minute; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index c2b97a059f52..dfc7b545f67a 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -59,7 +59,7 @@ static void exfat_write_super(struct super_block *sb); /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */ static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp) { - ts->tv_sec = mktime64(tp->year + 1980, tp->Month + 1, tp->Day, + ts->tv_sec = mktime64(tp->year + 1980, tp->month + 1, tp->Day, tp->Hour, tp->Minute, tp->Second); ts->tv_nsec = tp->MilliSecond * NSEC_PER_MSEC; @@ -79,7 +79,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = 0; tp->Hour = 0; tp->Day = 1; - tp->Month = 1; + tp->month = 1; tp->year = 0; return; } @@ -90,7 +90,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = 59; tp->Hour = 23; tp->Day = 31; - tp->Month = 12; + tp->month = 12; tp->year = 127; return; } @@ -100,7 +100,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = tm.tm_min; tp->Hour = tm.tm_hour; tp->Day = tm.tm_mday; - tp->Month = tm.tm_mon + 1; + tp->month = tm.tm_mon + 1; tp->year = tm.tm_year + 1900 - 1980; } @@ -1506,7 +1506,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) exfat_get_entry_time(ep, &tm, TM_CREATE); info->CreateTimestamp.year = tm.year; - info->CreateTimestamp.Month = tm.mon; + info->CreateTimestamp.month = tm.mon; info->CreateTimestamp.Day = tm.day; info->CreateTimestamp.Hour = tm.hour; info->CreateTimestamp.Minute = tm.min; @@ -1515,7 +1515,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) exfat_get_entry_time(ep, &tm, TM_MODIFY); info->ModifyTimestamp.year = tm.year; - info->ModifyTimestamp.Month = tm.mon; + info->ModifyTimestamp.month = tm.mon; info->ModifyTimestamp.Day = tm.day; info->ModifyTimestamp.Hour = tm.hour; info->ModifyTimestamp.Minute = tm.min; @@ -1609,7 +1609,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.min = info->CreateTimestamp.Minute; tm.hour = info->CreateTimestamp.Hour; tm.day = info->CreateTimestamp.Day; - tm.mon = info->CreateTimestamp.Month; + tm.mon = info->CreateTimestamp.month; tm.year = info->CreateTimestamp.year; exfat_set_entry_time(ep, &tm, TM_CREATE); @@ -1617,7 +1617,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.min = info->ModifyTimestamp.Minute; tm.hour = info->ModifyTimestamp.Hour; tm.day = info->ModifyTimestamp.Day; - tm.mon = info->ModifyTimestamp.Month; + tm.mon = info->ModifyTimestamp.month; tm.year = info->ModifyTimestamp.year; exfat_set_entry_time(ep, &tm, TM_MODIFY); @@ -1923,7 +1923,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) exfat_get_entry_time(ep, &tm, TM_CREATE); dir_entry->CreateTimestamp.year = tm.year; - dir_entry->CreateTimestamp.Month = tm.mon; + dir_entry->CreateTimestamp.month = tm.mon; dir_entry->CreateTimestamp.Day = tm.day; dir_entry->CreateTimestamp.Hour = tm.hour; dir_entry->CreateTimestamp.Minute = tm.min; @@ -1932,7 +1932,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) exfat_get_entry_time(ep, &tm, TM_MODIFY); dir_entry->ModifyTimestamp.year = tm.year; - dir_entry->ModifyTimestamp.Month = tm.mon; + dir_entry->ModifyTimestamp.month = tm.mon; dir_entry->ModifyTimestamp.Day = tm.day; dir_entry->ModifyTimestamp.Hour = tm.hour; dir_entry->ModifyTimestamp.Minute = tm.min; -- 2.17.1 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=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 81D1CC35254 for ; Mon, 10 Feb 2020 18:36:41 +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 4C9A520715 for ; Mon, 10 Feb 2020 18:36:41 +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="FW9Pvg5Q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C9A520715 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 11AC585193; Mon, 10 Feb 2020 18:36:41 +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 AdOlC-lVV-t1; Mon, 10 Feb 2020 18:36:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7118884545; Mon, 10 Feb 2020 18:36:40 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 16D401BF964 for ; Mon, 10 Feb 2020 18:36:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1388884545 for ; Mon, 10 Feb 2020 18:36:40 +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 VLmcunMIL_yZ for ; Mon, 10 Feb 2020 18:36:39 +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 8149984492 for ; Mon, 10 Feb 2020 18:36:39 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id b9so4334510pgk.12 for ; Mon, 10 Feb 2020 10:36:39 -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=k81GbBbR7NrArK0tNkpsU/XDBosZIBkaHc6+hpzCpAE=; b=FW9Pvg5Qnd9N9EbUkysJCNGRp9nnLIMsqiGyc1Nnq+tvpU7/T2L43PdLafotHHVAdY RrwfqfBGzOOLK/3N+yvuy/m1Pa2QkVJ2/7g58l2BPRm1CXzDNwclKp4xCkQlxWunLCro DCOEl1ErVnp8BOavBTofX794i3otTU/JHrWpzAmgq6qQixDlVokcKaoRgcPXCyy+wKNL jxTyKnxI3mx1yXcafDhrxE3Y8T/zN3JJNrMr3s04QjZ1kA5OsznCaWypM7EGCYJkhCxT UAICSU9cMaLRO9ir27rLIj/PiTXXBSaAfOINmVVbJPM1ZMLna5HKi6Mb4dDeO89tkpT2 HEsg== 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=k81GbBbR7NrArK0tNkpsU/XDBosZIBkaHc6+hpzCpAE=; b=f1JHyPsPeUS4UdJteVTPxGGFn66L+UbxyZgxV1WzMk6xhlwlgZQGUHt6k2AbZdGEyb LxktV1FgO3oyHkdDVdMSLvXqGfbocSTtvG9yAYDuimn5p22P6BxDlNnAkBMvQSJ2l0MZ Ng31Cop/l/GX8gafYmVJZJiSRluRi4dge52lJlP1BkLdkIX+kBXfkm/Hoz/T4Y9lsvZB SS1atBNFVdHstAOqWhzO4la/aKm4Kqg045C6yGS/fy+M/g04yNuYpSaeJL5ZSGJTGneQ WgBPKLDWdfEfSq3vEM6g/tJS1jN8xRF/w/fYm8TCtw4MDdTtp4uDA1QCUDqqP1dc+K4L ldmQ== X-Gm-Message-State: APjAAAX66EVD34C5vefldl8oqHAho2Ta/Dzxc+YnaSkZmurzV1+s1Eoy tVFyLgtS+DnKEiu63yfRTV4= X-Google-Smtp-Source: APXvYqwbbw3mMp1Hip+emIkTlDDJNFgt+rz1IEAvcq59GCnganNG8Z0Z7iaR/8VpvW29GW8IWXwaWQ== X-Received: by 2002:aa7:8610:: with SMTP id p16mr2442863pfn.28.1581359799114; Mon, 10 Feb 2020 10:36:39 -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.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:36:38 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Subject: [PATCH v2 02/19] staging: exfat: Rename variable 'Month' to 'month' Date: Tue, 11 Feb 2020 00:05:41 +0530 Message-Id: <20200210183558.11836-3-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> X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-fsdevel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" Fix checkpatch warning: Avoid CamelCase Change all occurrences of identifier "Month" to "month" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 30ec81250f08..ae7f8e035a71 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -223,7 +223,7 @@ static inline u16 get_row_index(u16 i) struct date_time_t { u16 year; - u16 Month; + u16 month; u16 Day; u16 Hour; u16 Minute; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index c2b97a059f52..dfc7b545f67a 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -59,7 +59,7 @@ static void exfat_write_super(struct super_block *sb); /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */ static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp) { - ts->tv_sec = mktime64(tp->year + 1980, tp->Month + 1, tp->Day, + ts->tv_sec = mktime64(tp->year + 1980, tp->month + 1, tp->Day, tp->Hour, tp->Minute, tp->Second); ts->tv_nsec = tp->MilliSecond * NSEC_PER_MSEC; @@ -79,7 +79,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = 0; tp->Hour = 0; tp->Day = 1; - tp->Month = 1; + tp->month = 1; tp->year = 0; return; } @@ -90,7 +90,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = 59; tp->Hour = 23; tp->Day = 31; - tp->Month = 12; + tp->month = 12; tp->year = 127; return; } @@ -100,7 +100,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = tm.tm_min; tp->Hour = tm.tm_hour; tp->Day = tm.tm_mday; - tp->Month = tm.tm_mon + 1; + tp->month = tm.tm_mon + 1; tp->year = tm.tm_year + 1900 - 1980; } @@ -1506,7 +1506,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) exfat_get_entry_time(ep, &tm, TM_CREATE); info->CreateTimestamp.year = tm.year; - info->CreateTimestamp.Month = tm.mon; + info->CreateTimestamp.month = tm.mon; info->CreateTimestamp.Day = tm.day; info->CreateTimestamp.Hour = tm.hour; info->CreateTimestamp.Minute = tm.min; @@ -1515,7 +1515,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) exfat_get_entry_time(ep, &tm, TM_MODIFY); info->ModifyTimestamp.year = tm.year; - info->ModifyTimestamp.Month = tm.mon; + info->ModifyTimestamp.month = tm.mon; info->ModifyTimestamp.Day = tm.day; info->ModifyTimestamp.Hour = tm.hour; info->ModifyTimestamp.Minute = tm.min; @@ -1609,7 +1609,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.min = info->CreateTimestamp.Minute; tm.hour = info->CreateTimestamp.Hour; tm.day = info->CreateTimestamp.Day; - tm.mon = info->CreateTimestamp.Month; + tm.mon = info->CreateTimestamp.month; tm.year = info->CreateTimestamp.year; exfat_set_entry_time(ep, &tm, TM_CREATE); @@ -1617,7 +1617,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.min = info->ModifyTimestamp.Minute; tm.hour = info->ModifyTimestamp.Hour; tm.day = info->ModifyTimestamp.Day; - tm.mon = info->ModifyTimestamp.Month; + tm.mon = info->ModifyTimestamp.month; tm.year = info->ModifyTimestamp.year; exfat_set_entry_time(ep, &tm, TM_MODIFY); @@ -1923,7 +1923,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) exfat_get_entry_time(ep, &tm, TM_CREATE); dir_entry->CreateTimestamp.year = tm.year; - dir_entry->CreateTimestamp.Month = tm.mon; + dir_entry->CreateTimestamp.month = tm.mon; dir_entry->CreateTimestamp.Day = tm.day; dir_entry->CreateTimestamp.Hour = tm.hour; dir_entry->CreateTimestamp.Minute = tm.min; @@ -1932,7 +1932,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) exfat_get_entry_time(ep, &tm, TM_MODIFY); dir_entry->ModifyTimestamp.year = tm.year; - dir_entry->ModifyTimestamp.Month = tm.mon; + dir_entry->ModifyTimestamp.month = tm.mon; dir_entry->ModifyTimestamp.Day = tm.day; dir_entry->ModifyTimestamp.Hour = tm.hour; dir_entry->ModifyTimestamp.Minute = tm.min; -- 2.17.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel 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 5C7A4C352A4 for ; Mon, 10 Feb 2020 18:36:42 +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 298A520842 for ; Mon, 10 Feb 2020 18:36:42 +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="FW9Pvg5Q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 298A520842 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 1413686123; Mon, 10 Feb 2020 18:36:42 +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 F5YONbbpPtZ4; Mon, 10 Feb 2020 18:36:41 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 055978610A; Mon, 10 Feb 2020 18:36:41 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E8EC4C07FE; Mon, 10 Feb 2020 18:36:40 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 39E0CC0171 for ; Mon, 10 Feb 2020 18:36:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 294CD86123 for ; Mon, 10 Feb 2020 18:36:40 +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 D-zBu74pvTDh for ; Mon, 10 Feb 2020 18:36:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 826F985C04 for ; Mon, 10 Feb 2020 18:36:39 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id x185so4125829pfc.5 for ; Mon, 10 Feb 2020 10:36:39 -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=k81GbBbR7NrArK0tNkpsU/XDBosZIBkaHc6+hpzCpAE=; b=FW9Pvg5Qnd9N9EbUkysJCNGRp9nnLIMsqiGyc1Nnq+tvpU7/T2L43PdLafotHHVAdY RrwfqfBGzOOLK/3N+yvuy/m1Pa2QkVJ2/7g58l2BPRm1CXzDNwclKp4xCkQlxWunLCro DCOEl1ErVnp8BOavBTofX794i3otTU/JHrWpzAmgq6qQixDlVokcKaoRgcPXCyy+wKNL jxTyKnxI3mx1yXcafDhrxE3Y8T/zN3JJNrMr3s04QjZ1kA5OsznCaWypM7EGCYJkhCxT UAICSU9cMaLRO9ir27rLIj/PiTXXBSaAfOINmVVbJPM1ZMLna5HKi6Mb4dDeO89tkpT2 HEsg== 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=k81GbBbR7NrArK0tNkpsU/XDBosZIBkaHc6+hpzCpAE=; b=b8YsgK+1HNndLSoZj607TZY5G/u/N+mCe1HUg4yP7oLxTOXJ3PNG2TXr3rl/WPpvtU Ss/RIuSluCLj9Zw24l/rBcovj64fAhBoRvKvv9OtepfHS6rMRJMD0QN+F3wEDIF6VxRm Ff/hVJNKzhxkpU0mdcCIG/v/k4udxQf426ikWxXJ72tJp1xWWdZhDzahi0utGfyx9yNB 3lUGiJNv27yxghauVc4RD8oi3hQmVbWrtml1LpLYB+PMGUjxAbO2Z9ad5I8cQFpsND3E GjTjI2e9+eauiJ8kC6WaMT8oTDl4UhyonUFXtLw3fdKzK7FGkPJOohSeTg++UODk96pw m6Ng== X-Gm-Message-State: APjAAAUHvC36jHYL17ULcozNdvWBoDaDPF584m5JhmB82luqUSJu676g jrDdb33r7rIu76ICMs4dG3I= X-Google-Smtp-Source: APXvYqwbbw3mMp1Hip+emIkTlDDJNFgt+rz1IEAvcq59GCnganNG8Z0Z7iaR/8VpvW29GW8IWXwaWQ== X-Received: by 2002:aa7:8610:: with SMTP id p16mr2442863pfn.28.1581359799114; Mon, 10 Feb 2020 10:36:39 -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.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 10:36:38 -0800 (PST) From: Pragat Pandya To: gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu Date: Tue, 11 Feb 2020 00:05:41 +0530 Message-Id: <20200210183558.11836-3-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 02/19] staging: exfat: Rename variable 'Month' to 'month' 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 "Month" to "month" Signed-off-by: Pragat Pandya --- drivers/staging/exfat/exfat.h | 2 +- drivers/staging/exfat/exfat_super.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 30ec81250f08..ae7f8e035a71 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -223,7 +223,7 @@ static inline u16 get_row_index(u16 i) struct date_time_t { u16 year; - u16 Month; + u16 month; u16 Day; u16 Hour; u16 Minute; diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index c2b97a059f52..dfc7b545f67a 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -59,7 +59,7 @@ static void exfat_write_super(struct super_block *sb); /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */ static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp) { - ts->tv_sec = mktime64(tp->year + 1980, tp->Month + 1, tp->Day, + ts->tv_sec = mktime64(tp->year + 1980, tp->month + 1, tp->Day, tp->Hour, tp->Minute, tp->Second); ts->tv_nsec = tp->MilliSecond * NSEC_PER_MSEC; @@ -79,7 +79,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = 0; tp->Hour = 0; tp->Day = 1; - tp->Month = 1; + tp->month = 1; tp->year = 0; return; } @@ -90,7 +90,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = 59; tp->Hour = 23; tp->Day = 31; - tp->Month = 12; + tp->month = 12; tp->year = 127; return; } @@ -100,7 +100,7 @@ static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) tp->Minute = tm.tm_min; tp->Hour = tm.tm_hour; tp->Day = tm.tm_mday; - tp->Month = tm.tm_mon + 1; + tp->month = tm.tm_mon + 1; tp->year = tm.tm_year + 1900 - 1980; } @@ -1506,7 +1506,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) exfat_get_entry_time(ep, &tm, TM_CREATE); info->CreateTimestamp.year = tm.year; - info->CreateTimestamp.Month = tm.mon; + info->CreateTimestamp.month = tm.mon; info->CreateTimestamp.Day = tm.day; info->CreateTimestamp.Hour = tm.hour; info->CreateTimestamp.Minute = tm.min; @@ -1515,7 +1515,7 @@ static int ffsReadStat(struct inode *inode, struct dir_entry_t *info) exfat_get_entry_time(ep, &tm, TM_MODIFY); info->ModifyTimestamp.year = tm.year; - info->ModifyTimestamp.Month = tm.mon; + info->ModifyTimestamp.month = tm.mon; info->ModifyTimestamp.Day = tm.day; info->ModifyTimestamp.Hour = tm.hour; info->ModifyTimestamp.Minute = tm.min; @@ -1609,7 +1609,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.min = info->CreateTimestamp.Minute; tm.hour = info->CreateTimestamp.Hour; tm.day = info->CreateTimestamp.Day; - tm.mon = info->CreateTimestamp.Month; + tm.mon = info->CreateTimestamp.month; tm.year = info->CreateTimestamp.year; exfat_set_entry_time(ep, &tm, TM_CREATE); @@ -1617,7 +1617,7 @@ static int ffsWriteStat(struct inode *inode, struct dir_entry_t *info) tm.min = info->ModifyTimestamp.Minute; tm.hour = info->ModifyTimestamp.Hour; tm.day = info->ModifyTimestamp.Day; - tm.mon = info->ModifyTimestamp.Month; + tm.mon = info->ModifyTimestamp.month; tm.year = info->ModifyTimestamp.year; exfat_set_entry_time(ep, &tm, TM_MODIFY); @@ -1923,7 +1923,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) exfat_get_entry_time(ep, &tm, TM_CREATE); dir_entry->CreateTimestamp.year = tm.year; - dir_entry->CreateTimestamp.Month = tm.mon; + dir_entry->CreateTimestamp.month = tm.mon; dir_entry->CreateTimestamp.Day = tm.day; dir_entry->CreateTimestamp.Hour = tm.hour; dir_entry->CreateTimestamp.Minute = tm.min; @@ -1932,7 +1932,7 @@ static int ffsReadDir(struct inode *inode, struct dir_entry_t *dir_entry) exfat_get_entry_time(ep, &tm, TM_MODIFY); dir_entry->ModifyTimestamp.year = tm.year; - dir_entry->ModifyTimestamp.Month = tm.mon; + dir_entry->ModifyTimestamp.month = tm.mon; dir_entry->ModifyTimestamp.Day = tm.day; dir_entry->ModifyTimestamp.Hour = tm.hour; dir_entry->ModifyTimestamp.Minute = tm.min; -- 2.17.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees