Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp872678rwb; Wed, 14 Dec 2022 04:04:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EeJXPzHEe6P1Y0mb6TQ8LHWtcd+ugry+tXQXqzDdJAbkuK6Or/+JctZnF1M6/N6zbOT45 X-Received: by 2002:a17:90a:9f93:b0:218:d233:15c8 with SMTP id o19-20020a17090a9f9300b00218d23315c8mr24713648pjp.15.1671019443843; Wed, 14 Dec 2022 04:04:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671019443; cv=none; d=google.com; s=arc-20160816; b=jIuZxqMycNhtIe0Qf9n5YAkp3SoW4qH4ET+WPqYmK7bPqeCn8CUi0RHGGcFOs0jXr+ hcTPKdBmGW8oqBLf0nQzDhOd2qV8fQFDV13e/2WWgbpZm2K9uYyXA2z6qT/09NTb83tm Zrtnt6mBUcfA6J4ZrnpAg3KCIY1my85bQibS19Q8PMOVC1qR8uyGVW82SzpzWzW2OGOA CBqlyS6nUaMkJkVorVoWTv36OM+a8G2fa9oOmcwyQnGRQhb1p03HDNhiRA2MoJrVlKbX ANzySYfzXdl5ckvRHDdn0rMa07a6+AD8oAzEtL5HUfnZIjsI9Hzryop+ZJOudXTdNz6X gekA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PAtD7QIJZT0fkJ7UIytOKOXLvjKDrxCpwIrVmN0szAI=; b=v14fVXASX4IiSd9JbiHnGFIORwDSwY8xWJKKHRwxGTVoE44StQ245K5kPJACvrVW/o XUnyzdQulPj205Zh5cdlAx5I/j+6JWfDzSYMMvaBvuXWwwl6ees07ZgBDufmos0tKeJD v2gb6cuIiXi3xmZFp4ogQM4/U+uyXg4rA8dodG7+NVCuiVsMfPNJcoCI5szbAhHojqyZ gYqrSvExK9ACIq4nQau9Yq5qs2/Yuaak9oDXr01HdiwasLNsnqUrMZsRR3N+AdE7iImU klfTzITp7HUm2/B0Ys+uhq8BSdaFqraNXatRq18dvj9Gtd1DpJ7/tmJ2BfbCgi+X/GFK 6Hmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JbYjaOMA; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020a634659000000b00478a53c6715si2911930pgk.289.2022.12.14.04.03.54; Wed, 14 Dec 2022 04:04:03 -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=@linuxfoundation.org header.s=korg header.b=JbYjaOMA; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238148AbiLNLu2 (ORCPT + 69 others); Wed, 14 Dec 2022 06:50:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238006AbiLNLu0 (ORCPT ); Wed, 14 Dec 2022 06:50:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FD76F4 for ; Wed, 14 Dec 2022 03:50:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DCF51B81699 for ; Wed, 14 Dec 2022 11:50:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22861C433EF; Wed, 14 Dec 2022 11:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1671018622; bh=+zUK+5Ccx7OA/sbrGTpucZaSMPnJKac+XaPp6XkqbTc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JbYjaOMAjlb8oZBIOdRhyCLIaXubCjKes+Gs7fA61EPqRAsT5WNRtEiQ8A/mOeIZu f3PqFP7uTZL/8Kg+f2GTJ32Ka62MwDrPJxU9nX2u5VoQVprNVXYVGgTxgDbKztO+80 f7bty+w783UC1Dost6uGY307xF4YjASg10pnUWkE= Date: Wed, 14 Dec 2022 12:50:19 +0100 From: Greg Kroah-Hartman To: Abhirup Deb Cc: Martyn Welch , Manohar Vanga , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Philipp Hortmann Subject: Re: staging: vme_user: Replace the "<<" with BIT macro Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Dec 14, 2022 at 05:05:38PM +0530, Abhirup Deb wrote: > Replace the "<<" operator with BIT macro, in accordance to the > checkpatch.pl script and Linux kernel coding-style guidelines. > Issues reported by checkpatch.pl: > CHECK: Prefer using the BIT macro > > Signed-off-by: Abhirup Deb > --- > drivers/staging/vme_user/vme.h | 26 ++++++++++++++------------ > 1 file changed, 14 insertions(+), 12 deletions(-) > > diff --git a/drivers/staging/vme_user/vme.h b/drivers/staging/vme_user/vme.h > index 98da8d039d60..faa9816046a9 100644 > --- a/drivers/staging/vme_user/vme.h > +++ b/drivers/staging/vme_user/vme.h > @@ -2,6 +2,8 @@ > #ifndef _VME_H_ > #define _VME_H_ > > +#include > + > /* Resource Type */ > enum vme_resource_type { > VME_MASTER, > @@ -54,20 +56,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 BIT(0) > +#define VME_DMA_PCI BIT(1) > +#define VME_DMA_VME BIT(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_PATTERN_BYTE BIT(0) > +#define VME_DMA_PATTERN_WORD BIT(1) > +#define VME_DMA_PATTERN_INCREMENT BIT(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_VME_TO_MEM BIT(0) > +#define VME_DMA_MEM_TO_VME BIT(1) > +#define VME_DMA_VME_TO_VME BIT(2) > +#define VME_DMA_MEM_TO_MEM BIT(3) > +#define VME_DMA_PATTERN_TO_VME BIT(4) > +#define VME_DMA_PATTERN_TO_MEM BIT(5) > > struct vme_dma_attr { > u32 type; > -- > 2.31.1 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot