Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1291756rwl; Fri, 24 Mar 2023 08:38:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YoXBmqvX0xEMrOy663Yo9pbsoeAfi0LDXbZzMgC5BIR04tvTZG8sC/89U/+wYtFn8GfZUG X-Received: by 2002:a05:6402:1012:b0:4fb:7ccf:3b33 with SMTP id c18-20020a056402101200b004fb7ccf3b33mr3318583edu.31.1679672282013; Fri, 24 Mar 2023 08:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679672282; cv=none; d=google.com; s=arc-20160816; b=qFqKWFEZ6X9aUeln22h5cQdcXr4YVsWQO7lmvxJyCjt8nv1Cq+sQDxNe2pG5RqaY4P XeyeEMj2zMMqqGncjOFKpjdL2WG2/9JsJ3Ok8KbB6nD6JuV8/vzZf7S9kbZHpcaLQKO0 LpbQcO0SuDd+aLb7Efunn94CLefYkUq92omQH7G3XPbwMxNxKcIXnO3JrQrqZerWbk7K NZIkBt39qkiUVamQ0ie/aRnGS/+TXKm24eA6+sMWW0Xlk/uTgVjrcvr/Qql48Vz5M1up CDGy34Aj0ACBIGLBs14DzCl+IihMpb7yoYwXDHEHlKIs6Aj9A62i3Hx1ceASl+JedY9r 49Cw== 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=DriOveq7HQ3zxSIM3gKqzExgwGJQdVSYsUqbwV+a2II=; b=THR3YYPr4q645/jGREv76RPAPfemQ7/6tS7QPbzImE1wVqm9W3dPm4gHlY3zeLa6vb Q/aJXxeoHDiz/hifHYrvDcXVA9J8H5p06ziA8dxPxORqC3cEu0ZLJyGLEPLLPpNrVbVF KucjOxRo/Sm4EQoDdyBApeooreeing6XiQqQTgvR0OfxvLDt1n2am+QbZoxfz4yOic0F NbMzVZR0jIWKucFedjkrYb4WTcdflL1uX2T/GKB2eyW8jVtnohbLpZsdi0IAqBTtgfly oYN8zjn1PODHESFOJDWsQbviCk17FxuNtsc/zJEO3DOPN7MlGZexu7qajfTZSZeADrpQ 4/CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hrMEYdCR; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020aa7cfc9000000b004fd26753791si565749edy.649.2023.03.24.08.37.36; Fri, 24 Mar 2023 08:38:01 -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=@intel.com header.s=Intel header.b=hrMEYdCR; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231665AbjCXP2z (ORCPT + 99 others); Fri, 24 Mar 2023 11:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231688AbjCXP2y (ORCPT ); Fri, 24 Mar 2023 11:28:54 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C83D01D93C for ; Fri, 24 Mar 2023 08:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679671732; x=1711207732; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QnXO9tD65xE00C1x+fbsAJ7iDcx8NXcgRbEs/4X1O58=; b=hrMEYdCR8kA3UnwYyynoviMfgkEAOjOC6yNjO6N0Bftqi54YVIxEL1Nq EXMz6czBBbIL8oM7JAp3NQX1xK6GCMsFqZPcaWPZF7W14aa9z1z5DkTIM iViWlzsoUu3+xcTDQHUm2uz21W9KAOe+E6NrrhMgjPmjxhw+fAXIilA8G m/MEaEo6T2qvMN+fWxV3/HKfkC1AWIUMxdoasbxSPMT1Mz/HnhU0JUsDx Kq7lbP8KZJ2Ue2PlL9fx+eZDrKeGHZQNbrWFvMZ0muKVU6lkqwqU3CYM5 Z9t695NLnkZKuI5pSGDzSFVVyyUNOK/Kg5ib7uD6JRyXayxhPkAlLq2yi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="319453365" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="319453365" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 08:28:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="928687439" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="928687439" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.62.66]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 08:28:51 -0700 Date: Fri, 24 Mar 2023 08:28:50 -0700 From: Alison Schofield To: Sumitra Sharma Cc: outreachy@lists.linux.dev, johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/3] Staging: greybus: Use inline functions 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=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE autolearn=unavailable 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 Fri, Mar 24, 2023 at 12:20:30AM -0700, Sumitra Sharma wrote: > Convert macros to a static inline function, to make the relevant > types apparent in the definition and to benefit from the type > checking performed by the compiler at call sites. > > CHanges in v2: Change patch subjects, noted by Alison Schofield Please review: https://kernelnewbies.org/Outreachyfirstpatch Section on 'Following the driver commit style'. To follow the commit style of the greybus driver, update these commit messages to be under 80 chars, and use "staging", not "Staging" Like this: drivers/staging/greybus$ git log --oneline | head -3 1498054921e2 staging: greybus: Inline pwm_chip_to_gb_pwm_chip() a7d2a41b7453 staging: greybus: Inline gb_audio_manager_module() f7d3ece211be staging: greybus: Inline macro gpio_chip_to_gb_gpio_controller() BTW - I wasn't instantly sure about using 'Inline' as a verb in this case, so I did this (git log --oneline | grep inline) and found it's a common use. We're building a habit here for when you submit across subsystems in the future. Alison > > Sumitra Sharma (3): > Staging: greybus: Use inline function for macro > gpio_chip_to_gb_gpio_controller > Staging: greybus: Use inline function for gb_audio_manager_module > Staging: greybus: Use inline function for pwm_chip_to_gb_pwm_chip > > drivers/staging/greybus/audio_manager_module.c | 7 +++++-- > drivers/staging/greybus/gpio.c | 7 +++++-- > drivers/staging/greybus/pwm.c | 6 ++++-- > 3 files changed, 14 insertions(+), 6 deletions(-) > > -- > 2.25.1 > >