From patchwork Tue Sep 4 11:50:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Shilovsky X-Patchwork-Id: 1401891 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 75ADEDF280 for ; Tue, 4 Sep 2012 11:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756817Ab2IDLun (ORCPT ); Tue, 4 Sep 2012 07:50:43 -0400 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:47512 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756773Ab2IDLum (ORCPT ); Tue, 4 Sep 2012 07:50:42 -0400 Received: by lagy9 with SMTP id y9so4088868lag.19 for ; Tue, 04 Sep 2012 04:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=XQDfWEg5Mrqkeub10ORz8yk0nUCGiDWFgdcXPMKUU94=; b=h49PCux7HVFj7pZ80fX4R4trn4NNpC0S0jHM3CxMXiKodh3BcfIh9awQ4u7Kg8gPsy 5ujMUh44IGBXsyePYOZ9A9fER/QRrHpCg+0+T96OoybMuxEIjYgj6DzM1ffKjwRf5M+7 fQk6Jxw7J09AdVr7hM6C0iyaO8StwJWlMOJxkjwPo1kJjy2FAO4NyAZehuYsEhlZpVjy njLoC11YAY0l6pCfr4ATA9/M2gOb4FqpYKP6ivkTJKg37aR1Uv4tKpp1k1LG6hT4dsw/ DEH4RRgjxznvp130Tx7+akmyHY64iSrxj2hnJPY7vIt/AX+YluPh1xUjA17+/nfB5mqr faUQ== Received: by 10.152.146.169 with SMTP id td9mr16536092lab.42.1346759441337; Tue, 04 Sep 2012 04:50:41 -0700 (PDT) Received: from localhost.localdomain (PPPoE-78-29-73-56.san.ru. [78.29.73.56]) by mx.google.com with ESMTPS id r8sm3988138lba.15.2012.09.04.04.50.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 04:50:40 -0700 (PDT) From: Pavel Shilovsky To: linux-cifs@vger.kernel.org Subject: [PATCH] CIFS: Fix endianness conversion Date: Tue, 4 Sep 2012 15:50:34 +0400 Message-Id: <1346759434-3665-1-git-send-email-pshilovsky@etersoft.ru> X-Mailer: git-send-email 1.7.1 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Signed-off-by: Pavel Shilovsky --- fs/cifs/smb2pdu.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index c5fbfac..15dc8ee 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h @@ -96,7 +96,7 @@ * */ -#define SMB2_HEADER_STRUCTURE_SIZE __constant_le16_to_cpu(64) +#define SMB2_HEADER_STRUCTURE_SIZE __constant_cpu_to_le16(64) struct smb2_hdr { __be32 smb2_buf_length; /* big endian on wire */ @@ -140,7 +140,7 @@ struct smb2_pdu { * */ -#define SMB2_ERROR_STRUCTURE_SIZE2 __constant_le16_to_cpu(9) +#define SMB2_ERROR_STRUCTURE_SIZE2 __constant_cpu_to_le16(9) struct smb2_err_rsp { struct smb2_hdr hdr;