Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp588615rwb; Tue, 13 Dec 2022 23:31:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf4s9LVHx0xtFZVw1AYwUhOnjWmeolX+RLXMqQvINj3d5/w/p2VPnT7qeLLUDizg5mtOkupS X-Received: by 2002:a17:906:5208:b0:7ad:699b:227c with SMTP id g8-20020a170906520800b007ad699b227cmr19247313ejm.53.1671003062677; Tue, 13 Dec 2022 23:31:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671003062; cv=none; d=google.com; s=arc-20160816; b=jUD8un5LWgwPSpyekUBDODWNP0cheGktVd9JGEf9w6vLIgBFMhkLeKM8KMv19seH5D wMnDppzSMvp7kUvzN5tirZdrhTW/cTKvXrxPPtwuNkJ61MQqLoqyD471f1+HNZgCfqww UWfI0s+C23c8vJyOI55TE+p2oVCBzweAYv1X22hLVAEf6YhnmlesnpwOKQ8cvUmAMENd OiCRiME/YZgSoAYngPdu9w3FBy8CGXN6xlzAjFI/jaQt5bVWFhSefTIxaL2c6NSvqwKQ DgJfKVc/xc50l3CQ9YEo0BsH9spk0K+ZkxsxsvRA5jD+/qKjEKhyn3XE3Radz6SYr2qv GjAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=D7e0Of+yNggFNTT7AHup7iSgLPisczF+WTo4peuI7E0=; b=lNN2qzv84jyhsoUbWQb5SpHRcrQgo6FGfQFjjZYoj/lYazQqaI5PByUOeOlwjqDNDB YOcgsro4r8dDmMEr3fHLqb9pnuHnAaDI8RscEfXRpMRB13fdDJ5HfM+1ETAEKnbj86Y2 oKDlSfeA/WFcaNRLbDC74H2u6BDCUcYJwu3vFPYR2YlbWLPFgXK65iKYgey+5oLr7sNR XMnHjXMS4wtcCCkrp/Xn67Xg7tLeRS9mp9n/bHlV5n/FX6DtzV1mvNJLnO+VwzOE7eRL 1IQu0Asis/YHRUqJDQSZUbP5P3oN7pl8hTxQOKgVLkNPRjTPhlw9AhgSUttzhF7m+sWA nF4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="oLYduO/s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf4-20020a1709077f0400b007ae86742c37si10023403ejc.60.2022.12.13.23.30.45; Tue, 13 Dec 2022 23:31:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="oLYduO/s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237481AbiLNHAn (ORCPT + 71 others); Wed, 14 Dec 2022 02:00:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237144AbiLNHAl (ORCPT ); Wed, 14 Dec 2022 02:00:41 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2CC31CFD1 for ; Tue, 13 Dec 2022 23:00:38 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id vv4so42310170ejc.2 for ; Tue, 13 Dec 2022 23:00:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=D7e0Of+yNggFNTT7AHup7iSgLPisczF+WTo4peuI7E0=; b=oLYduO/svctaPUUIvjKHhbAziz4+h7+BlTMkWyrSUMfhbpNHtcso5doxP2987y1O0M /sGqsnbr+sS47YK04iljE/6Ote+ZNUJcAsaHK5JXQFPMIhwlqrcjtzJOFJ0iY9JxV/lM oZnGCviGTHJcyR/kn5lIs2tRrBDAdc+/Txd7sJLTKy4eWoP/DWSyMuvtgwmEa+OYR9Ry zV24DZVU7w2Ghg12HYf4lq2/mg8oyjuDBdQ5lbNj/OF4ZqQ+9f91dzWGpQHtLOMs+eBz ufJ4hXxsmqqyH6UpvNPBsG0YAO6ZfnTB+WXNaMhEMs+EZeIosdPa1kx5FkAC8HoSlh3J gD+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D7e0Of+yNggFNTT7AHup7iSgLPisczF+WTo4peuI7E0=; b=kEvej6z4im/3IwrSSpTSWNHj7/GNs9C64UXIrYhdpS6Wt0+pQwXR7IHlwOUKLcgcyR ImRVdDoGqtNpBsxcCfYYXG+36RxKQJ1opO92e8e9nyaihJQhGtStoSghAqRnctm1H/nV rRa0kliFLiBpEEazWLmMDgjCtHDZo31WI5D9DUY7letaicbCO/qDYnASmrhWS4FumcL+ cc7MmxhoBBncDL9wUKiVS9pTSVj1xaTbpNG/ko9O3/JB0cdolNUQKeEFmD28d1UqHxR7 nSgoNhkYphTWbysIusljSwoGZPU/GLeiE6aFwogHjLjOc78fFQh3sq2KGNcLqiHaptvA 30GA== X-Gm-Message-State: ANoB5pn3Be9ogrmackkWu5pVXjnEjtZz1G5cdalNrbhz8oYpzYzSXRHn 6+fsrR+AQOp8WuPIxMDXiqk= X-Received: by 2002:a17:906:85c2:b0:7c1:27d:3df8 with SMTP id i2-20020a17090685c200b007c1027d3df8mr4535615ejy.4.1671001237148; Tue, 13 Dec 2022 23:00:37 -0800 (PST) Received: from ?IPV6:2003:c7:8f35:4b22:9653:a94c:c63a:fa1f? (p200300c78f354b229653a94cc63afa1f.dip0.t-ipconnect.de. [2003:c7:8f35:4b22:9653:a94c:c63a:fa1f]) by smtp.gmail.com with ESMTPSA id 1-20020a170906318100b0077f20a722dfsm5393913ejy.165.2022.12.13.23.00.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Dec 2022 23:00:36 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2022 08:00:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] staging: vme_user: Add spaces around "<<" To: Abhirup Deb , Martyn Welch , Manohar Vanga , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev References: Content-Language: en-US From: Philipp Hortmann In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/13/22 20:55, Abhirup Deb wrote: > Add spaces around the "<<" in adherence to the Linux kernel coding-style. > The issues were reported by checkpatch.pl. > > Signed-off-by: Abhirup Deb > --- > drivers/staging/vme_user/vme.h | 28 ++++++++++++++-------------- > 1 file changed, 14 insertions(+), 14 deletions(-) > > diff --git a/drivers/staging/vme_user/vme.h b/drivers/staging/vme_user/vme.h > index 98da8d039d60..a74724457d29 100644 > --- a/drivers/staging/vme_user/vme.h > +++ b/drivers/staging/vme_user/vme.h > @@ -54,20 +54,20 @@ enum vme_resource_type { > #define VME_R_ROBIN_MODE 0x1 > #define VME_PRIORITY_MODE 0x2 > > -#define VME_DMA_PATTERN (1<<0) > -#define VME_DMA_PCI (1<<1) > -#define VME_DMA_VME (1<<2) > - > -#define VME_DMA_PATTERN_BYTE (1<<0) > -#define VME_DMA_PATTERN_WORD (1<<1) > -#define VME_DMA_PATTERN_INCREMENT (1<<2) > - > -#define VME_DMA_VME_TO_MEM (1<<0) > -#define VME_DMA_MEM_TO_VME (1<<1) > -#define VME_DMA_VME_TO_VME (1<<2) > -#define VME_DMA_MEM_TO_MEM (1<<3) > -#define VME_DMA_PATTERN_TO_VME (1<<4) > -#define VME_DMA_PATTERN_TO_MEM (1<<5) > +#define VME_DMA_PATTERN (1 << 0) > +#define VME_DMA_PCI (1 << 1) > +#define VME_DMA_VME (1 << 2) > + > +#define VME_DMA_PATTERN_BYTE (1 << 0) > +#define VME_DMA_PATTERN_WORD (1 << 1) > +#define VME_DMA_PATTERN_INCREMENT (1 << 2) > + > +#define VME_DMA_VME_TO_MEM (1 << 0) > +#define VME_DMA_MEM_TO_VME (1 << 1) > +#define VME_DMA_VME_TO_VME (1 << 2) > +#define VME_DMA_MEM_TO_MEM (1 << 3) > +#define VME_DMA_PATTERN_TO_VME (1 << 4) > +#define VME_DMA_PATTERN_TO_MEM (1 << 5) > > struct vme_dma_attr { > u32 type; I propose to use the BIT macro as checkpatch proposes it when I apply checkpatch to your patch. Please also correct the number of tabs to align. Thanks, Bye Philipp CHECK: Prefer using the BIT macro #37: FILE: drivers/staging/vme_user/vme.h:57: +#define VME_DMA_PATTERN (1 << 0)