From patchwork Wed Jul 23 14:41:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: HIMANGI SARAOGI X-Patchwork-Id: 4611231 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 64750C0514 for ; Wed, 23 Jul 2014 14:41:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A1B222015A for ; Wed, 23 Jul 2014 14:41:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35EE220158 for ; Wed, 23 Jul 2014 14:41:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757991AbaGWOlW (ORCPT ); Wed, 23 Jul 2014 10:41:22 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:55851 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757891AbaGWOlV (ORCPT ); Wed, 23 Jul 2014 10:41:21 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so1746968pdj.28 for ; Wed, 23 Jul 2014 07:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=MaOd1662NZhO+wjYLgqMaPD6ElcroTRTntQTUbBp+tk=; b=mB5OSHH3qcPGgF39QszUISKzHHsO7agmmEVugy87Tu29jjYaI228rGExB+IzFqUHpm pBoZ4oaho+NBIEyiAJTvLPAKqHzPpl6/3++09SMGRuYLsRqFHaJSBBL/dJucH91gri+n PqD0Ni5CMJywAzL9VAV6iX861VkUC3sHGygD0lJ354Tfte3XfTq0jiCn5wsgXlxbZKBB OmRyOXCD6VT0f2XSBrV2uQ2cnUQ2Ggc/02DvaO2jQLIN4N4Pv+yMipB3IxT0ivAeRkRp KQvrcVryhi8SM3jES9DqCWC6HRmI2Sen86bpvnkOACYCpClRdpS9RPPppkE57O6WL7J4 sKrg== X-Received: by 10.66.189.66 with SMTP id gg2mr2229589pac.103.1406126480707; Wed, 23 Jul 2014 07:41:20 -0700 (PDT) Received: from localhost ([122.164.52.8]) by mx.google.com with ESMTPSA id mt1sm2600152pbb.31.2014.07.23.07.41.16 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 23 Jul 2014 07:41:19 -0700 (PDT) Date: Wed, 23 Jul 2014 20:11:11 +0530 From: Himangi Saraogi To: Sage Weil , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: julia.lawall@lip6.fr Subject: [PATCH] ceph: convert comma to semicolon Message-ID: <20140723144111.GA3190@himangi-Dell> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replace a comma between expression statements by a semicolon. This changes the semantics of the code, but given the current indentation appears to be what is intended. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: // @r@ expression e1,e2; @@ e1 -, +; e2; // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- fs/ceph/caps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 1fde164..6d1cd45 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -3277,7 +3277,7 @@ int ceph_encode_inode_release(void **p, struct inode *inode, rel->ino = cpu_to_le64(ceph_ino(inode)); rel->cap_id = cpu_to_le64(cap->cap_id); rel->seq = cpu_to_le32(cap->seq); - rel->issue_seq = cpu_to_le32(cap->issue_seq), + rel->issue_seq = cpu_to_le32(cap->issue_seq); rel->mseq = cpu_to_le32(cap->mseq); rel->caps = cpu_to_le32(cap->implemented); rel->wanted = cpu_to_le32(cap->mds_wanted);