Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp184754rwb; Wed, 5 Oct 2022 17:04:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5v0DZfwS2ah2b2rC4EyCZBTYbmnyBCgfcKVd6rI12Y9DVTbmhqcEyOlwvHjfqf0mkXpkhy X-Received: by 2002:a05:6a00:890:b0:558:17b6:1b6 with SMTP id q16-20020a056a00089000b0055817b601b6mr1886692pfj.21.1665014653697; Wed, 05 Oct 2022 17:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665014653; cv=none; d=google.com; s=arc-20160816; b=WphPAZLFZ6MVlbk0X5rfhF3Sd33Lf1k3FrOP8Ug/mXzGT55QaqXlDtCioSwUShGVZT oFSMEfhOYcSnm+FJRA7JfSOCrlqOZwF16i0c9Yvv+NT4El/KXE4wP3Ef8GqH1Y6L0O/u AualXsrWEHUHddEd9gz5qc7H4P+wRW/Kd8QtOyqObocPE9O2OWAkKpkN/rNLLD7zs/Jk J30fmv4ct2eljznmObBRgEk7B4cCVUlAPHCUmW+VJ9dmT5xcfv6K6DySt+3Vu4xGLavS JM6Hu0e9CUEq1ZhrsUvzJWifeAMViOLsYUmTieQLHXA5wp/UlhdQihWQ8oHDzHxhwwgG a1bQ== 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=aEfEliKsuauHqKdKxHLW94n4jylnSfwinxLKm0znj80=; b=WC8NYQ4WH9nqFvTO6+A91dioeH1DrcOTH/Cb+Zuq+G2KYPymdVSoO2GiWN3lH11KJS Dv78NZ7J90ccNCZF1rQ7T1Nyz9P7hxJXnzjBZi8EC18TXET0LK/JIIVwyaE8HE4C61Vw Yo/g2NATFFZ2c35Ufb9pxTBmmqhO2M41S/Pb/GXJk/cwO3yQZGD0cCpnQh8GsFg7jslS fDsd/RtjRPfXXcwy/12d74BHUul3NdZZWcG00DZJbh53fl/y35RjOXgNpDdt/JBjsuyJ Rof3x5uzszRsPlM2rQgcyBrTQvY8N4hFSWurp0so92mZdPfyDlfZDZodGrlGRL/EJK8L aDuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eZHoNR9Q; 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 mi12-20020a17090b4b4c00b00202641c4969si3968838pjb.0.2022.10.05.17.03.54; Wed, 05 Oct 2022 17:04:13 -0700 (PDT) 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=eZHoNR9Q; 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 S229555AbiJEX5t (ORCPT + 99 others); Wed, 5 Oct 2022 19:57:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJEX5r (ORCPT ); Wed, 5 Oct 2022 19:57:47 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC71D13F for ; Wed, 5 Oct 2022 16:57:46 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id x59so605525ede.7 for ; Wed, 05 Oct 2022 16:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=aEfEliKsuauHqKdKxHLW94n4jylnSfwinxLKm0znj80=; b=eZHoNR9QM8zqCFZEkkIK6CEYP3UvO4RG4LCukozoU4VwLH4Ur2Mt3UHVTW9u9RsiUH UUyC2SRPvE4oekShfuFO0KEr7p+6Eq0+PFf/gdD3j2H/OYzRwYAlqlqYLX6h4iBGhvZI uld/HMXHvk7zAi9IHfZZWZYcBw87folqCnP4OQmrbiFt/iEMZAQoy8rPQY1lCQcRbiJ2 bZDKJhAsJyG0oRNl1yKtFzHs6/9/1l17DOw8eGYWGFp7/5i+nLGjF+/WCM0JQgh4jCVe 4mVkTRwIyotUNaFV214rYRNMmrfRA/D8cRvt8dEni8gobB00Y96HflLssHhEEQZcMX5r pzIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=aEfEliKsuauHqKdKxHLW94n4jylnSfwinxLKm0znj80=; b=fQ1NYBlKL/rimnCnh2208Ck8K87SbYvZeQs3ykwhoWFFVsFzv/QrwOLoSjPCByQ8xG 7R/uhqi9F27N4W0nsTJc2TyOSBDv4jdDaqDof0fiJbVxkM1N4UJ1AOZVQFGGC2nXlYeV yeaHsQwz+ex8cf2qaoQ4Lyxlx7Ao0n+DKrwvL3CyMOVFaD/beQllD8aL6XWLUgJM2Gpm Y/y/8gyDD9kF/X0sfZyBtr1H+aJYwubj1sz5DkfwlKXwJ3cSV45UrNCeonb26mgxDsMf kMDUYf0Y8FTBICR1xNW4GCgIUyrICql/cK+kpibL1RWR/vc1v2rc69Fwhw9pYgIMuxj1 96bw== X-Gm-Message-State: ACrzQf1cP9acopb1upbdFqMswoE6QB6iNCJG/TdYNK7kI+ldcunKRplK Vrqbs3kOyzCxaKVUmqs8NW4= X-Received: by 2002:a05:6402:40cf:b0:459:d7de:d5 with SMTP id z15-20020a05640240cf00b00459d7de00d5mr600496edb.288.1665014265007; Wed, 05 Oct 2022 16:57:45 -0700 (PDT) Received: from nam-dell (ip-217-105-46-158.ip.prioritytelecom.net. [217.105.46.158]) by smtp.gmail.com with ESMTPSA id r2-20020a17090609c200b00730b3bdd8d7sm9463175eje.179.2022.10.05.16.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 16:57:44 -0700 (PDT) Date: Thu, 6 Oct 2022 01:57:28 +0200 From: Nam Cao To: Brent Pappas Cc: "gregkh@linuxfoundation.org" , "cai.huoqing@linux.dev" , "kuba@kernel.org" , "linux-staging@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] staging: most: net: Replace macros HB and LB with static inline functions Message-ID: <20221005235728.GA118549@nam-dell> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, 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 Wed, Oct 05, 2022 at 04:10:44PM +0000, Brent Pappas wrote: > Replace function-like macros "HB" and "LB" with static inline functions > to comply with preferred Linux coding style standards. > > Signed-off-by: Brent Pappas > --- > diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c > index 1d1fe8bff7ee..8a8fbc274b73 100644 > --- a/drivers/staging/most/net/net.c > +++ b/drivers/staging/most/net/net.c > @@ -36,8 +36,8 @@ > #define PMS_TELID_MASK 0x0F > #define PMS_TELID_SHIFT 4 > > -#define HB(value) ((u8)((u16)(value) >> 8)) > -#define LB(value) ((u8)(value)) > +static inline u8 HB(unsigned int value) { return ((u8)((u16)(value) >> 8)); } > +static inline u8 LB(unsigned int value) { return ((u8)(value)); } > > #define EXTRACT_BIT_SET(bitset_name, value) \ > (((value) >> bitset_name##_SHIFT) & bitset_name##_MASK) I cannot apply your patch. I think your email client modified some whitespace characters. Check this for more information: https://www.kernel.org/doc/html/v4.10/process/email-clients.html Best regards, Nam