From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761345AbcIWUhC (ORCPT ); Fri, 23 Sep 2016 16:37:02 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:35804 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758945AbcIWUg6 (ORCPT ); Fri, 23 Sep 2016 16:36:58 -0400 Subject: Re: [PATCH v4] staging: ion: Fix a coding style issue To: =?UTF-8?Q?Antti_Ker=c3=a4nen?= References: <9317f92c-15b9-d5ab-290b-11a509020de9@redhat.com> <20160923180305.2468-1-detegr@gmail.com> Cc: sumit.semwal@linaro.org, gregkh@linuxfoundation.org, arve@android.com, riandrews@android.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org From: Laura Abbott Message-ID: Date: Fri, 23 Sep 2016 13:36:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160923180305.2468-1-detegr@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/23/2016 11:03 AM, Antti Keränen wrote: > This patch fixes the alignment of an allocation flag block comment > and moves the comments before each #define. > Acked-by: Laura Abbott > Signed-off-by: Antti Keränen > --- > In addition to fixing the alignment issue, this version of the patch moves > the comments from after the define lines to before the define lines. > > drivers/staging/android/uapi/ion.h | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git a/drivers/staging/android/uapi/ion.h b/drivers/staging/android/uapi/ion.h > index 647f130..14cd873 100644 > --- a/drivers/staging/android/uapi/ion.h > +++ b/drivers/staging/android/uapi/ion.h > @@ -52,18 +52,18 @@ enum ion_heap_type { > * allocation flags - the lower 16 bits are used by core ion, the upper 16 > * bits are reserved for use by the heaps themselves. > */ > -#define ION_FLAG_CACHED 1 /* > - * mappings of this buffer should be > - * cached, ion will do cache > - * maintenance when the buffer is > - * mapped for dma > - */ > -#define ION_FLAG_CACHED_NEEDS_SYNC 2 /* > - * mappings of this buffer will created > - * at mmap time, if this is set > - * caches must be managed > - * manually > - */ > + > +/* > + * mappings of this buffer should be cached, ion will do cache maintenance > + * when the buffer is mapped for dma > + */ > +#define ION_FLAG_CACHED 1 > + > +/* > + * mappings of this buffer will created at mmap time, if this is set > + * caches must be managed manually > + */ > +#define ION_FLAG_CACHED_NEEDS_SYNC 2 > > /** > * DOC: Ion Userspace API >