From patchwork Mon Dec 12 10:53:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ozgur Karatas X-Patchwork-Id: 9486815 X-Mozilla-Keys: nonjunk Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sandeen.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-HP: BAYES_00=-1.9, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5,RP_MATCHES_RCVD=-0.1,T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001 X-Original-To: sandeen@sandeen.net Delivered-To: sandeen@sandeen.net Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by sandeen.net (Postfix) with ESMTP id 874C547968C for ; Mon, 12 Dec 2016 05:00:33 -0600 (CST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932540AbcLLLBV (ORCPT ); Mon, 12 Dec 2016 06:01:21 -0500 Received: from forward12h.cmail.yandex.net ([87.250.230.154]:50751 "EHLO forward12h.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932227AbcLLLBU (ORCPT ); Mon, 12 Dec 2016 06:01:20 -0500 X-Greylist: delayed 465 seconds by postgrey-1.27 at vger.kernel.org; Mon, 12 Dec 2016 06:01:19 EST Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [37.140.190.22]) by forward12h.cmail.yandex.net (Yandex) with ESMTP id EA69E2197A; Mon, 12 Dec 2016 13:53:30 +0300 (MSK) Received: from web27o.yandex.ru (web27o.yandex.ru [95.108.205.127]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id LboNqJfWPw-rU5aZr4a; Mon, 12 Dec 2016 13:53:30 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com.tr; s=mail; t=1481540010; bh=/E+YWoq6m3Rruh8jkuUro8J1OgYrIwlthtypixkqbHA=; h=From:To:Cc:Subject:Message-Id:Date; b=MyifWs7245KFrTl0yuzNctd9Q2o+MYFAZTQd1YeCFJ70nieCSgUQkwFcLSny3pCBD w0Dd930UDx3NfXFUr/8RlR5po/9HcPOZtx1NseXlq75Jc/+j8iK6PeTm4s0ZrgCFe1 xHD0N5+WqEewQWJ1Bgegpsg9TI8QgHvRU1vwviJ4= Authentication-Results: mxback8o.mail.yandex.net; dkim=pass header.i=@yandex.com.tr Received: by web27o.yandex.ru with HTTP; Mon, 12 Dec 2016 13:53:30 +0300 From: Ozgur Karatas Envelope-From: mueddib@yandex.com.tr To: david@fromorbit.com Cc: linux-xfs@vger.kernel.org, linux-kernel Subject: [PATCH 1/1] Fixed to codestyle MIME-Version: 1.0 Message-Id: <987271481540010@web27o.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 12 Dec 2016 12:53:30 +0200 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org Hello, I have error to use uuid and I think the functions should be used when -i'm eye-catching- "(* uuid)". I tested it. Regards, Signed-off-by: Ozgur Karatas diff --git a/fs/xfs/uuid.c b/fs/xfs/uuid.c index b83f76b..cd8bc8e 100644 --- a/fs/xfs/uuid.c +++ b/fs/xfs/uuid.c @@ -33,7 +33,7 @@ typedef struct { * it just something that's needed for user-level file handles. */ void -uuid_getnodeuniq(uuid_t *uuid, int fsid [2]) +uuid_getnodeuniq(uuid_t (*uuid), int fsid [2]) { xfs_uu_t *uup = (xfs_uu_t *)uuid; @@ -51,8 +51,8 @@ uuid_is_nil(uuid_t *uuid) if (uuid == NULL) return 0; /* implied check of version number here... */ - for (i = 0; i < sizeof *uuid; i++) - if (*cp++) return 0; /* not nil */ + for (i = 0; i < sizeof (*uuid); i++) + if (*cp++) return 0; /* not nil */ return 1; /* is nil */ }