@@ -1,11 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Contains the CIFS DFS referral mounting routines used for handling
- * traversal via DFS junction point
+ * Contains the CIFS DFS referral mounting routines used for handling
+ * traversal via DFS junction point
*
- * Copyright (c) 2007 Igor Mammedov
- * Copyright (C) International Business Machines Corp., 2008
- * Author(s): Igor Mammedov (niallain@gmail.com)
+ * Copyright (c) 2007 Igor Mammedov
+ * Copyright (c) International Business Machines Corp., 2008
+ * Author(s): Igor Mammedov (niallain@gmail.com)
* Steve French (sfrench@us.ibm.com)
*/
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2002,2004
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2004
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/rbtree.h>
#ifndef _CIFS_FS_SB_H
@@ -1,11 +1,9 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Structure definitions for io control for cifs/smb3
*
- * Structure definitions for io control for cifs/smb3
- *
- * Copyright (c) 2015 Steve French <steve.french@primarydata.com>
- *
- */
+ * Copyright (c) 2015 Steve French <steve.french@primarydata.com>
+*/
struct smb_mnt_fs_info {
__u32 version; /* 0001 */
@@ -1,11 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- * SPNEGO upcall management for CIFS
+ * SPNEGO upcall management for CIFS
*
- * Copyright (c) 2007 Red Hat, Inc.
- * Author(s): Jeff Layton (jlayton@redhat.com)
- *
- */
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Author(s): Jeff Layton (jlayton@redhat.com)
+*/
#include <linux/list.h>
#include <linux/slab.h>
@@ -1,12 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- * SPNEGO upcall management for CIFS
+ * SPNEGO upcall management for CIFS
*
- * Copyright (c) 2007 Red Hat, Inc.
- * Author(s): Jeff Layton (jlayton@redhat.com)
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Author(s): Jeff Layton (jlayton@redhat.com)
* Steve French (sfrench@us.ibm.com)
- *
- */
+*/
#ifndef _CIFS_SPNEGO_H
#define _CIFS_SPNEGO_H
@@ -1,8 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- *
- * Copyright (c) International Business Machines Corp., 2000,2009
- * Modified by Steve French (sfrench@us.ibm.com)
+ * Copyright (c) International Business Machines Corp., 2000,2009
+ * Modified by Steve French (sfrench@us.ibm.com)
*/
#include <linux/fs.h>
#include <linux/slab.h>
@@ -243,8 +242,7 @@ cifs_from_utf16(char *to, const __le16 *from, int tolen, int fromlen,
* NAME: cifs_strtoUTF16()
*
* FUNCTION: Convert character string to unicode string
- *
- */
+*/
int
cifs_strtoUTF16(__le16 *to, const char *from, int len,
const struct nls_table *codepage)
@@ -6,7 +6,7 @@
* Convert a unicode character to upper or lower case using
* compressed tables.
*
- * Copyright (c) International Business Machines Corp., 2000,2009
+ * Copyright (c) International Business Machines Corp., 2000,2009
*
* Notes:
* These APIs are based on the C library functions. The semantics
@@ -62,8 +62,7 @@
* NO_MAP_UNI_RSVD = do not perform any remapping of the character
* SFM_MAP_UNI_RSVD = map reserved characters using SFM scheme (MAC compatible)
* SFU_MAP_UNI_RSVD = map reserved characters ala SFU ("mapchars" option)
- *
- */
+*/
#define NO_MAP_UNI_RSVD 0
#define SFM_MAP_UNI_RSVD 1
#define SFU_MAP_UNI_RSVD 2
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Copyright (c) International Business Machines Corp., 2000,2002
+ * Copyright (c) International Business Machines Corp., 2000,2002
*
* uniupr.h - Unicode compressed case ranges
*/
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Copyright (c) International Business Machines Corp., 2007,2008
+ * Author(s): Steve French (sfrench@us.ibm.com)
*
- * Copyright (C) International Business Machines Corp., 2007,2008
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- * Contains the routines for mapping CIFS/NTFS ACLs
- *
- */
+ * Contains the routines for mapping CIFS/NTFS ACLs
+*/
#include <linux/fs.h>
#include <linux/slab.h>
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2007
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2007
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#ifndef _CIFSACL_H
#define _CIFSACL_H
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Encryption and hashing operations relating to NTLM, NTLMv2. See MS-NLMP
+ * for more detailed information
*
- * Encryption and hashing operations relating to NTLM, NTLMv2. See MS-NLMP
- * for more detailed information
- *
- * Copyright (C) International Business Machines Corp., 2005,2013
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2005,2013
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/slab.h>
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Copyright (c) International Business Machines Corp., 2002,2008
+ * Copyright (c) SUSE LLC, 2022
+ * Author(s): Steve French (sfrench@us.ibm.com)
+ * Enzo Matsumiya <ematsumiya@suse.de>
*
- * Copyright (C) International Business Machines Corp., 2002,2008
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- * Common Internet FileSystem (CIFS) client
- *
+ * SMBFS client
*/
/* Note that BB means BUGBUG (ie something to fix eventually) */
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2002, 2007
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
+ * Copyright (c) International Business Machines Corp., 2002, 2007
+ * Copyright (c) SUSE LLC, 2022
+ * Author(s): Steve French (sfrench@us.ibm.com)
+ * Enzo Matsumiya <ematsumiya@suse.de>
*/
#ifndef _CIFSFS_H
@@ -1,10 +1,9 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- * Copyright (C) International Business Machines Corp., 2002,2008
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Copyright (c) International Business Machines Corp., 2002,2008
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Jeremy Allison (jra@samba.org)
- *
- */
+*/
#ifndef _CIFS_GLOB_H
#define _CIFS_GLOB_H
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2002,2009
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2009
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#ifndef _CIFSPDU_H
#define _CIFSPDU_H
@@ -477,8 +475,7 @@ put_bcc(__u16 count, struct smb_hdr *hdr)
* Typedefs can always be removed later if they are too distracting
* and they are only used for the CIFSs PDUs themselves, not
* internal cifs vfs structures
- *
- */
+*/
typedef struct negotiate_req {
struct smb_hdr hdr; /* wct = 0 */
@@ -747,8 +744,7 @@ typedef struct smb_com_tconx_rsp_ext {
* IPC ie named pipe
* COMM
* ????? ie any type
- *
- */
+*/
typedef struct smb_com_echo_req {
struct smb_hdr hdr;
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Copyright (c) International Business Machines Corp., 2002,2010
+ * Author(s): Steve French (sfrench@us.ibm.com)
*
- * Copyright (C) International Business Machines Corp., 2002,2010
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- * Contains the routines for constructing the SMB PDUs themselves
- *
- */
+ * Contains the routines for constructing the SMB PDUs themselves
+*/
/* SMB/CIFS PDU handling routines here - except for leftovers in connect.c */
/* These are mostly routines that operate on a pathname, or on a tree id */
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002,2011
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2011
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/net.h>
#include <linux/string.h>
@@ -379,8 +377,7 @@ static bool cifs_tcp_ses_needs_reconnect(struct TCP_Server_Info *server, int num
* if mark_smb_session is passed as true, unconditionally mark
* the smb session (and tcon) for reconnect as well. This value
* doesn't really matter for non-multichannel scenario.
- *
- */
+*/
static int __cifs_reconnect(struct TCP_Server_Info *server,
bool mark_smb_session)
{
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * vfs operations that deal with dentries
*
- * vfs operations that deal with dentries
- *
- * Copyright (C) International Business Machines Corp., 2002,2009
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2009
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/slab.h>
@@ -1,16 +1,14 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) 2007 Igor Mammedov
- * Author(s): Igor Mammedov (niallain@gmail.com)
+ * Copyright (c) 2007 Igor Mammedov
+ * Author(s): Igor Mammedov (niallain@gmail.com)
* Steve French (sfrench@us.ibm.com)
* Wang Lei (wang840925@gmail.com)
* David Howells (dhowells@redhat.com)
*
- * Contains the CIFS DFS upcall routines used for hostname to
- * IP address translation.
- *
- */
+ * Contains the CIFS DFS upcall routines used for hostname to
+ * IP address translation.
+*/
#include <linux/slab.h>
#include <linux/dns_resolver.h>
@@ -1,12 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- * DNS Resolver upcall management for CIFS DFS
- * Handles host name to IP address resolution
+ * DNS Resolver upcall management for CIFS DFS
+ * Handles host name to IP address resolution
*
- * Copyright (c) International Business Machines Corp., 2008
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2008
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#ifndef _DNS_RESOLVE_H
#define _DNS_RESOLVE_H
@@ -1,14 +1,12 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Copyright (c) International Business Machines Corp., 2007
+ * Author(s): Steve French (sfrench@us.ibm.com)
*
- * Copyright (C) International Business Machines Corp., 2007
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Common Internet FileSystem (CIFS) client
*
- * Common Internet FileSystem (CIFS) client
- *
- * Operations related to support for exporting files via NFSD
- *
- */
+ * Operations related to support for exporting files via NFSD
+*/
/*
* See Documentation/filesystems/nfs/exporting.rst
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * vfs operations that deal with files
*
- * vfs operations that deal with files
- *
- * Copyright (C) International Business Machines Corp., 2002,2010
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Copyright (c) International Business Machines Corp., 2002,2010
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Jeremy Allison (jra@samba.org)
- *
- */
+*/
#include <linux/fs.h>
#include <linux/backing-dev.h>
#include <linux/stat.h>
@@ -430,8 +428,7 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
* @cifs_file: cifs/smb3 specific info (eg refcounts) for an open file
* @wait_oplock_handler: must be false if called from oplock_break_handler
* @offload: not offloaded on close and oplock breaks
- *
- */
+*/
void _cifsFileInfo_put(struct cifsFileInfo *cifs_file,
bool wait_oplock_handler, bool offload)
{
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Copyright (C) 2020, Microsoft Corporation.
+ * Copyright (c) 2020, Microsoft Corporation.
*
- * Author(s): Steve French <stfrench@microsoft.com>
+ * Author(s): Steve French <stfrench@microsoft.com>
* David Howells <dhowells@redhat.com>
*/
#include <linux/ctype.h>
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Copyright (C) 2020, Microsoft Corporation.
+ * Copyright (c) 2020, Microsoft Corporation.
*
- * Author(s): Steve French <stfrench@microsoft.com>
+ * Author(s): Steve French <stfrench@microsoft.com>
* David Howells <dhowells@redhat.com>
*/
@@ -1,11 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- * CIFS filesystem cache interface
+ * CIFS filesystem cache interface
*
- * Copyright (c) 2010 Novell, Inc.
- * Author(s): Suresh Jayaraman <sjayaraman@suse.de>
- *
- */
+ * Copyright (c) 2010 Novell, Inc.
+ * Author(s): Suresh Jayaraman <sjayaraman@suse.de>
+*/
#include "fscache.h"
#include "cifsglob.h"
#include "cifs_debug.h"
@@ -1,11 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- * CIFS filesystem cache interface definitions
+ * CIFS filesystem cache interface definitions
*
- * Copyright (c) 2010 Novell, Inc.
- * Authors(s): Suresh Jayaraman (sjayaraman@suse.de>
- *
- */
+ * Copyright (c) 2010 Novell, Inc.
+ * Authors(s): Suresh Jayaraman (sjayaraman@suse.de>
+*/
#ifndef _CIFS_FSCACHE_H
#define _CIFS_FSCACHE_H
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002,2010
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2010
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/slab.h>
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * vfs operations that deal with io control
*
- * vfs operations that deal with io control
- *
- * Copyright (C) International Business Machines Corp., 2005,2013
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2005,2013
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/file.h>
@@ -174,7 +172,7 @@ static int cifs_shutdown(struct super_block *sb, unsigned long arg)
/*
* see:
- * https://man7.org/linux/man-pages/man2/ioctl_xfs_goingdown.2.html
+ * https://man7.org/linux/man-pages/man2/ioctl_xfs_goingdown.2.html
* for more information and description of original intent of the flags
*/
switch (flags) {
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002,2008
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2008
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/slab.h>
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002,2008
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2008
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/slab.h>
#include <linux/ctype.h>
@@ -1,11 +1,10 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
+ * Copyright (c) International Business Machines Corp., 2002,2008
+ * Author(s): Steve French (sfrench@us.ibm.com)
*
- * Copyright (c) International Business Machines Corp., 2002,2008
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- * Error mapping routines from Samba libsmb/errormap.c
- * Copyright (C) Andrew Tridgell 2001
+ * Error mapping routines from Samba libsmb/errormap.c
+ * Copyright (c) Andrew Tridgell 2001
*/
#include <linux/net.h>
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2002,2007
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2007
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#define NTLMSSP_SIGNATURE "NTLMSSP"
/* Message Types */
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Directory search handling
*
- * Directory search handling
- *
- * Copyright (C) International Business Machines Corp., 2004, 2008
- * Copyright (C) Red Hat, Inc., 2011
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2004, 2008
+ * Copyright (c) Red Hat, Inc., 2011
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Protocol Data Unit definitions for RFC 1001/1002 support
*
- * Protocol Data Unit definitions for RFC 1001/1002 support
- *
- * Copyright (c) International Business Machines Corp., 2004
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2004
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
/* NB: unlike smb/cifs packets, the RFC1002 structures are big endian */
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * SMB/CIFS session setup handling routines
*
- * SMB/CIFS session setup handling routines
- *
- * Copyright (c) International Business Machines Corp., 2006, 2009
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2006, 2009
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include "cifspdu.h"
#include "cifsglob.h"
@@ -1,11 +1,9 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002, 2011
- * Author(s): Steve French (sfrench@us.ibm.com),
+ * Copyright (c) International Business Machines Corp., 2002, 2011
+ * Author(s): Steve French (sfrench@us.ibm.com),
* Pavel Shilovsky ((pshilovsky@samba.org) 2012
- *
- */
+*/
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/slab.h>
@@ -1,15 +1,13 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Definitions for various global variables and structures
*
- * Definitions for various global variables and structures
- *
- * Copyright (C) International Business Machines Corp., 2002, 2011
+ * Copyright (c) International Business Machines Corp., 2002, 2011
* Etersoft, 2012
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Jeremy Allison (jra@samba.org)
* Pavel Shilovsky (pshilovsky@samba.org) 2012
- *
- */
+*/
#ifndef _SMB2_GLOB_H
#define _SMB2_GLOB_H
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002, 2011
+ * Copyright (c) International Business Machines Corp., 2002, 2011
* Etersoft, 2012
- * Author(s): Pavel Shilovsky (pshilovsky@samba.org),
+ * Author(s): Pavel Shilovsky (pshilovsky@samba.org),
* Steve French (sfrench@us.ibm.com)
- *
- */
+*/
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/slab.h>
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Functions which do error mapping of SMB2 status codes to POSIX errors
*
- * Functions which do error mapping of SMB2 status codes to POSIX errors
- *
- * Copyright (C) International Business Machines Corp., 2009
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2009
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/errno.h>
#include "cifsglob.h"
#include "cifs_debug.h"
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002,2011
+ * Copyright (c) International Business Machines Corp., 2002,2011
* Etersoft, 2012
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Pavel Shilovsky (pshilovsky@samba.org) 2012
- *
- */
+*/
#include <linux/ctype.h>
#include "cifsglob.h"
#include "cifsproto.h"
@@ -1,14 +1,12 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2009, 2013
+ * Copyright (c) International Business Machines Corp., 2009, 2013
* Etersoft, 2012
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Pavel Shilovsky (pshilovsky@samba.org) 2012
*
- * Contains the routines for constructing the SMB2 PDUs themselves
- *
- */
+ * Contains the routines for constructing the SMB2 PDUs themselves
+*/
/* SMB2 PDU handling routines here - except for leftovers (eg session setup) */
/* Note that there are handle based routines which must be */
@@ -848,7 +846,6 @@ add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode)
/*
- *
* SMB2 Worker functions follow:
*
* The general structure of the worker functions is:
@@ -859,8 +856,7 @@ add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode)
* 5) Decode variable length data area (if any for this SMB2 command type)
* 6) Call free smb buffer
* 7) return
- *
- */
+*/
int
SMB2_negotiate(const unsigned int xid,
@@ -3281,7 +3277,7 @@ SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
}
/*
- * Individual callers to ioctl worker function follow
+ * Individual callers to ioctl worker function follow
*/
int
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2009, 2013
+ * Copyright (c) International Business Machines Corp., 2009, 2013
* Etersoft, 2012
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Pavel Shilovsky (pshilovsky@samba.org) 2012
- *
- */
+*/
#ifndef _SMB2PDU_H
#define _SMB2PDU_H
@@ -51,8 +49,7 @@ struct smb2_rdma_crypto_transform {
* See MS-SMB2.PDF specification for protocol details.
* The Naming convention is the lower case version of the SMB2
* command code name for the struct. Note that structures must be packed.
- *
- */
+*/
#define COMPOUND_FID 0xFFFFFFFFFFFFFFFFULL
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2002, 2011
+ * Copyright (c) International Business Machines Corp., 2002, 2011
* Etersoft, 2012
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Pavel Shilovsky (pshilovsky@samba.org) 2012
- *
- */
+*/
#ifndef _SMB2PROTO_H
#define _SMB2PROTO_H
#include <linux/nls.h>
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * SMB2 Status code (network error) definitions
+ * Definitions are from MS-ERREF
*
- * SMB2 Status code (network error) definitions
- * Definitions are from MS-ERREF
- *
- * Copyright (c) International Business Machines Corp., 2009,2011
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2009,2011
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
/*
* 0 1 2 3 4 5 6 7 8 9 0 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002, 2011
+ * Copyright (c) International Business Machines Corp., 2002, 2011
* Etersoft, 2012
- * Author(s): Steve French (sfrench@us.ibm.com)
+ * Author(s): Steve French (sfrench@us.ibm.com)
* Jeremy Allison (jra@samba.org) 2006
* Pavel Shilovsky (pshilovsky@samba.org) 2012
- *
- */
+*/
#include <linux/fs.h>
#include <linux/list.h>
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Copyright (C) 2017, Microsoft Corporation.
+ * Copyright (c) 2017, Microsoft Corporation.
*
- * Author(s): Long Li <longli@microsoft.com>
+ * Author(s): Long Li <longli@microsoft.com>
*/
#include <linux/module.h>
#include <linux/highmem.h>
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Copyright (C) 2017, Microsoft Corporation.
+ * Copyright (c) 2017, Microsoft Corporation.
*
- * Author(s): Long Li <longli@microsoft.com>
+ * Author(s): Long Li <longli@microsoft.com>
*/
#ifndef _SMBDIRECT_H
#define _SMBDIRECT_H
@@ -1,13 +1,11 @@
// SPDX-License-Identifier: LGPL-2.1
/*
+ * Copyright (c) International Business Machines Corp., 2002,2004
+ * Author(s): Steve French (sfrench@us.ibm.com)
*
- * Copyright (c) International Business Machines Corp., 2002,2004
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- * See Error Codes section of the SNIA CIFS Specification
- * for more information
- *
- */
+ * See Error Codes section of the SNIA CIFS Specification
+ * for more information
+*/
#define SUCCESS 0x00 /* The request was successful. */
#define ERRDOS 0x01 /* Error is from the core DOS operating system set */
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/*
- * Copyright (C) 2018, Microsoft Corporation.
+ * Copyright (c) 2018, Microsoft Corporation.
*
- * Author(s): Steve French <stfrench@microsoft.com>
+ * Author(s): Steve French <stfrench@microsoft.com>
*/
#define CREATE_TRACE_POINTS
#include "trace.h"
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/*
- * Copyright (C) 2018, Microsoft Corporation.
+ * Copyright (c) 2018, Microsoft Corporation.
*
- * Author(s): Steve French <stfrench@microsoft.com>
+ * Author(s): Steve French <stfrench@microsoft.com>
*/
#undef TRACE_SYSTEM
#define TRACE_SYSTEM cifs
@@ -1,11 +1,9 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (C) International Business Machines Corp., 2002,2008
- * Author(s): Steve French (sfrench@us.ibm.com)
- * Jeremy Allison (jra@samba.org) 2006.
- *
- */
+ * Copyright (c) International Business Machines Corp., 2002,2008
+ * Author(s): Steve French (sfrench@us.ibm.com)
+ * Jeremy Allison (jra@samba.org) 2006.
+*/
#include <linux/fs.h>
#include <linux/list.h>
@@ -877,14 +875,12 @@ cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst,
}
/*
- *
* Send an SMB Request. No response info (other than return code)
* needs to be parsed.
*
* flags indicate the type of request buffer and how long to wait
* and whether to log NT STATUS code (error) before mapping it to POSIX error
- *
- */
+*/
int
SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
char *in_buf, int flags)
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Copyright (C) 2020, Microsoft Corporation.
+ * Copyright (c) 2020, Microsoft Corporation.
*
- * Author(s): Steve French <stfrench@microsoft.com>
+ * Author(s): Steve French <stfrench@microsoft.com>
* Suresh Jayaraman <sjayaraman@suse.de>
* Jeff Layton <jlayton@kernel.org>
*/
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- *
* Copyright (c) Jeffrey Layton <jlayton@redhat.com>, 2013
*
* The const tables in this file were converted from the following info
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: LGPL-2.1
/*
- *
- * Copyright (c) International Business Machines Corp., 2003, 2007
- * Author(s): Steve French (sfrench@us.ibm.com)
- *
- */
+ * Copyright (c) International Business Machines Corp., 2003, 2007
+ * Author(s): Steve French (sfrench@us.ibm.com)
+*/
#include <linux/fs.h>
#include <linux/posix_acl_xattr.h>
Use only 1 space after comment start, remove unecessary extra lines. Done via sed, might have affected some code comments, will fix up later. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> --- fs/cifs/cifs_dfs_ref.c | 10 +++++----- fs/cifs/cifs_fs_sb.h | 8 +++----- fs/cifs/cifs_ioctl.h | 8 +++----- fs/cifs/cifs_spnego.c | 9 ++++----- fs/cifs/cifs_spnego.h | 9 ++++----- fs/cifs/cifs_unicode.c | 8 +++----- fs/cifs/cifs_unicode.h | 5 ++--- fs/cifs/cifs_uniupr.h | 2 +- fs/cifs/cifsacl.c | 10 ++++------ fs/cifs/cifsacl.h | 8 +++----- fs/cifs/cifsencrypt.c | 12 +++++------- fs/cifs/cifsfs.c | 10 +++++----- fs/cifs/cifsfs.h | 8 ++++---- fs/cifs/cifsglob.h | 7 +++---- fs/cifs/cifspdu.h | 14 +++++--------- fs/cifs/cifssmb.c | 10 ++++------ fs/cifs/connect.c | 11 ++++------- fs/cifs/dir.c | 10 ++++------ fs/cifs/dns_resolve.c | 12 +++++------- fs/cifs/dns_resolve.h | 11 +++++------ fs/cifs/export.c | 12 +++++------- fs/cifs/file.c | 13 +++++-------- fs/cifs/fs_context.c | 4 ++-- fs/cifs/fs_context.h | 4 ++-- fs/cifs/fscache.c | 9 ++++----- fs/cifs/fscache.h | 9 ++++----- fs/cifs/inode.c | 8 +++----- fs/cifs/ioctl.c | 12 +++++------- fs/cifs/link.c | 8 +++----- fs/cifs/misc.c | 8 +++----- fs/cifs/netmisc.c | 9 ++++----- fs/cifs/ntlmssp.h | 8 +++----- fs/cifs/readdir.c | 12 +++++------- fs/cifs/rfc1002pdu.h | 10 ++++------ fs/cifs/sess.c | 10 ++++------ fs/cifs/smb2file.c | 8 +++----- fs/cifs/smb2glob.h | 10 ++++------ fs/cifs/smb2inode.c | 8 +++----- fs/cifs/smb2maperror.c | 10 ++++------ fs/cifs/smb2misc.c | 8 +++----- fs/cifs/smb2pdu.c | 16 ++++++---------- fs/cifs/smb2pdu.h | 11 ++++------- fs/cifs/smb2proto.h | 8 +++----- fs/cifs/smb2status.h | 12 +++++------- fs/cifs/smb2transport.c | 8 +++----- fs/cifs/smbdirect.c | 4 ++-- fs/cifs/smbdirect.h | 4 ++-- fs/cifs/smberr.h | 12 +++++------- fs/cifs/trace.c | 4 ++-- fs/cifs/trace.h | 4 ++-- fs/cifs/transport.c | 14 +++++--------- fs/cifs/unc.c | 4 ++-- fs/cifs/winucase.c | 1 - fs/cifs/xattr.c | 8 +++----- 54 files changed, 193 insertions(+), 279 deletions(-)