Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3163958pxa; Tue, 18 Aug 2020 08:10:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrKDETO175dnuF+tV06RYxTPX5U/xUE0gk/xIGdkFZZuuPTedRY6bDCCdOB9vBq9v+Rdla X-Received: by 2002:a17:906:4dcb:: with SMTP id f11mr20255230ejw.454.1597763429421; Tue, 18 Aug 2020 08:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597763429; cv=none; d=google.com; s=arc-20160816; b=ACZtDXPLAxc6CLZCVA/8njcI+2k2ZxI3s5v9dBJk2VBkCnfh6jeC2JVil3XJ0JygP0 Xa/N6ebVHnRF/OIuIz8ePeZoRfLfpg3JBlfJWsBYOpInLaxJ627aUZCCDx921c0sqBxu 51pQgTTXaGRLFnjr3+wOOcvAixD4xYvpti+xH3YF+YOV6HCubB0pVFZX1FnrQQwp8i9A Lis4EQnx5687P5Olf3NAdN70SUuNCjWJoKOj/6lC5C2pBz+KRWR2RrKz8x+sgPjPFCqm vfEj95FlXuchDLRTswpqJV5c0Ln+Dn9Tu8ouS0njP06kRgqWLuWz+Dwkh2BCt6DSYPrf 3GGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=Kz3kTcwHF2a+OrN5byUdnh38//L2z+SfVrhYCq8FFBo=; b=fuMFhCGbzM+vnvBcgIzRiwb9w3ZTyUbK/iIFGWqBTUb3Dn3WidjjFD+dRM0AztkKqI uEeTtY9MdNUWFYbX0mcYjyfYJZhQ9dbwbE//n6/He4nGifaNZYF8BSkba9MQ+yDvHl9s 9/Slls4pHn3TKkoyhv/pjYom1+qL/Z4mPmjAifOxIgx8Urgy3ecBWoVQ8qqdZmzJa6sD 0UzvAU8OyNMxjSLZhA4U9L5dh9HNvvpQwIHXg8G6SMNCSnQD6FmK3sK12c7jTfuZDC0M M9pAIERp3xs9/uJvz973T2kP8o+mLVDh/MnD2Y/oaVkVSVvHxBsyH0EtV1qayN6yoc8Y EHrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VCKa9l+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si13277497eds.208.2020.08.18.08.10.05; Tue, 18 Aug 2020 08:10:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VCKa9l+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726660AbgHRPHK (ORCPT + 99 others); Tue, 18 Aug 2020 11:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgHRPHA (ORCPT ); Tue, 18 Aug 2020 11:07:00 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1EEC061389 for ; Tue, 18 Aug 2020 08:07:00 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id p20so18622832wrf.0 for ; Tue, 18 Aug 2020 08:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Kz3kTcwHF2a+OrN5byUdnh38//L2z+SfVrhYCq8FFBo=; b=VCKa9l+59jL2AIGwzpE1bLZ9zsBeyMEYVRlQhSWSPl+5pYlXgfdOKQ3pR52dclz7DE tBGoXFJ1lfUTKTrbr0VsQ6/8ubwrLcOIQt+iambwKD4vO94aBADs+hQIWWpNrxtrXhEG Pq8vgtvBRd9k7SLvIun5McFrdZnoWsOhNZuDwixZ53kUUAlM0h0HNX3OglBjsqbGpgp6 0Jnp+k5TGdbjcdeDScBaqjfiEvJD9aVEvzp3QnJI9r/fzzPLFPVyg6sOapdlmbR25xYW RA+gcEKSmrvaB+n8nKHJAa/P5c8OpPf8IKTEuxn1A8DE5FwXyKKsdvDbj8hAvwO+psUw mUyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Kz3kTcwHF2a+OrN5byUdnh38//L2z+SfVrhYCq8FFBo=; b=hCT/9L3mvXeFphTz0Io0JpsQTV3it0Eq8ebPKRBgHTd2nnHKzZbUxp42ppvHQGsOKR sW3NW5zj/lOE4K4pszENqBT+LCH5/nFihjcYu7U0n45aroCWoOo7l5wLs4nk2WUAcAzg HThFr8OqLPTyU9qTTpvchUkwHd7/aM4RktDIJIuCYh6weRn18eOpjlyqFkxcubKf88Kd VnBczNiXX/kistMHhZ13M41rMpogOTtn5g0BE1eHRvMoFDD1O/kiCIDph7zjT50y2SUW ZMgupmO31750PgsLMgfxqcAAd8XV0/P/gTeIenTBZaDxJQTkEGCRNF8RNWdnoYAD/xwr xuHg== X-Gm-Message-State: AOAM532JL37MC/y7S6fTSw2JotMIybqPQAAWD7xAVMH/19PQq7WHGcYp A6KrGo8qcw65pADQV2TFf00= X-Received: by 2002:adf:e712:: with SMTP id c18mr21633963wrm.92.1597763218793; Tue, 18 Aug 2020 08:06:58 -0700 (PDT) Received: from medion (cpc83661-brig20-2-0-cust443.3-3.cable.virginm.net. [82.28.105.188]) by smtp.gmail.com with ESMTPSA id v8sm275614wmb.24.2020.08.18.08.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2020 08:06:58 -0700 (PDT) From: Alex Dewar X-Google-Original-From: Alex Dewar Date: Tue, 18 Aug 2020 16:06:56 +0100 To: Randy Dunlap Cc: Alex Dewar , Greg Kroah-Hartman , Saiyam Doshi , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: emxx_udc: Use standard BIT() macro Message-ID: <20200818150656.4ikg6fwzmmnwqapx@medion> References: <20200818134922.409195-1-alex.dewar90@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2020 at 07:29:02AM -0700, Randy Dunlap wrote: > On 8/18/20 6:49 AM, Alex Dewar wrote: > > Currently emxx_udc.h defines bit values using local macros. Use the > > standard one instead. > > > > Also, combine bit values with bitwise-or rather than addition, as > > suggested by Coccinelle. > > > > Signed-off-by: Alex Dewar > > Hi, > > Does this build? Just checking. > > Looks like it would need this: > > #include > > since it (indirectly) provides definition of the BIT() macro. Yeah, it builds, because emxx_udc.c includes emxx_udc.h after a bunch of standard headers. I agree that it would probably be cleaner to have the include in there explicitly, though. Best, Alex > > > --- > > drivers/staging/emxx_udc/emxx_udc.h | 456 +++++++++++++--------------- > > 1 file changed, 211 insertions(+), 245 deletions(-) > > > thanks. > -- > ~Randy >