Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1277862rwl; Sat, 25 Mar 2023 22:32:03 -0700 (PDT) X-Google-Smtp-Source: AK7set8diC/jry5PiHxfjg8s8/ZLPqcxsBCIUO1TN8kpFwm0hAJMhf8u114S2HRJ5s565uH7okm/ X-Received: by 2002:a05:6a20:1718:b0:d9:33a3:e7c5 with SMTP id bn24-20020a056a20171800b000d933a3e7c5mr6595801pzb.35.1679808723109; Sat, 25 Mar 2023 22:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679808723; cv=none; d=google.com; s=arc-20160816; b=IOH8xelw7bHCxidAz1O5uYEfY9u/38c01FxBH2tL0Rq7hib1N8mN1v6GkMQ3rYcSSN DGS7JFUMSTLoqfyuqcQ2LZruL9zu92cIjTSoD+0W/Z7XmvxYi4GG4QCkY3uLCxpL3dUU HuflBksJKGJ/j+xDtm3NcPGG8ifMy/+7gyY+c1/qCGWuLEZxtqc0aYkFogOLZlWbZEEP XNGSWDIQY+ohJYtWS8wKlPDnwTlBUiIpXU62rreD1w7KG/T8KaDKUpFT301rQZDhieD3 lQ8hXsXJ9kn/bSy9OFhqseEK7NjSlZGaAYlUDlCKUJA6Y/pKZdDj8pN5vdUKm6DOyD0P fhnA== 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=l8eM3auEURf5Yz74B4xS+px+Zq3swgYLBvUD75GaNMk=; b=PHa2Gr2LfiqtLdpGcEEaho7ziUN0ZYm5TVl3Jo2iLdh+SzFlsG+k26aTBDeiLesgtN PXpgfu0WrPl5Bd/WORe0INXw7T9PuRjuQA04uiIXWR7nh3nLgMA0GcOzO4CKXfw3bDtK +oG4HwQhKYLnsNzOBc3uWxy8ydufwi6YCV1eIb/8Wq33VpRE3spqjjD/ZYS+Rvyk/odl CkSGc/udji5td4zf3V05JX0avhxmuX2q9olEKY/gwHQtYsHmTOacC9oS+KIQ+zfBIVHu P26UBPk0FKNyNcV+CfjH1ozvxepBHqoHaqJ37oRsnDxN7jO85fnVofSLJachxmmnElhq kdrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TjpZI22a; 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 t18-20020a62d152000000b006259c773d55si25064042pfl.303.2023.03.25.22.31.51; Sat, 25 Mar 2023 22:32:03 -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=TjpZI22a; 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 S231834AbjCZFYa (ORCPT + 99 others); Sun, 26 Mar 2023 01:24:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbjCZFY2 (ORCPT ); Sun, 26 Mar 2023 01:24:28 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC01A5B91 for ; Sat, 25 Mar 2023 22:24:27 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id l7so4966321pjg.5 for ; Sat, 25 Mar 2023 22:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679808267; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=l8eM3auEURf5Yz74B4xS+px+Zq3swgYLBvUD75GaNMk=; b=TjpZI22arNu77KtHiNIoBJMxYSrvrLnM4V1z+nkoSbUOf/MobLcMMgdIWv2KOi0IDE hiVzQbyC38iOh6EMT8wKVBBYIjcjXtWskrmokuAc6a3eAzlrxz1YfNGGx7xRZ8YDsXR6 MpJqfhrDwsYk/VBEEpOSVoQjwgwIbx6i4Oy6RVtmVZDqD/bEMHAqPSEbJGk1Bib93ALQ MfcsfetV7TCRLfhxsXq5rWvAdF1uHGF8haCGG5Rb0buhFpCZJ+bJQndZdXG6sFkKfvsl m/KKoKBZ8WG9YxuTYJRoK7R108iV5Dlh3E/FhSYTg1SBBXBKSN7m2soVJDAdi+sMOw6V Atbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679808267; 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 :message-id:reply-to; bh=l8eM3auEURf5Yz74B4xS+px+Zq3swgYLBvUD75GaNMk=; b=ccT/J9dmoYuv421RKa4jtXiVKOpw5YJ1ec3awZHrLRL9KkN4262ccgMa5AVlSpYNgC xJWPEUEUvPUA2ygcyGt10zo5FSws/rhn7rUIhKhuijcPZrtrwcoSrgo88htILAkIBdjx 7RP/cQ2XSd8JuSOG41sHD4a7jvyq5bykradqE2r71AiF+X+Z/OfsufMElZedHtrhNfYn ar0ZEHpB3uLP0ITXInZNjBjc0kKsFOmW4Cwgc9fXhQsrQZfOFb5QgRsJZF0WhxtFCeR4 +RBVKIXKcZ7+MIj3Q/XdH2yTg2EmjX9aFgarD0pgo/Muq09qTZbFbjHG6Q8opTlN8Ben yxzQ== X-Gm-Message-State: AAQBX9c91oTu16NwaTudPR+C/eOJnbrxcTeMoWF1D1KzaQ1akz4OJdxU H+VIr2cE55GT4+NW6Vp0pAw= X-Received: by 2002:a17:902:d482:b0:19f:27fe:95c3 with SMTP id c2-20020a170902d48200b0019f27fe95c3mr8903964plg.41.1679808267235; Sat, 25 Mar 2023 22:24:27 -0700 (PDT) Received: from sumitra.com ([117.212.89.150]) by smtp.gmail.com with ESMTPSA id h2-20020a170902704200b001a21cde3458sm3675111plt.90.2023.03.25.22.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 22:24:26 -0700 (PDT) Date: Sat, 25 Mar 2023 22:24:20 -0700 From: Sumitra Sharma To: Greg KH Cc: outreachy@lists.linux.dev, johan@kernel.org, elder@kernel.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] staging: greybus: Inline pwm_chip_to_gb_pwm_chip() Message-ID: <20230326052420.GA179105@sumitra.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Sat, Mar 25, 2023 at 09:55:45AM +0100, Greg KH wrote: > On Sat, Mar 25, 2023 at 01:31:10AM -0700, Sumitra Sharma wrote: > > Convert 'pwm_chip_to_gb_pwm_chip' from a macro 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. > > > > Signed-off-by: Sumitra Sharma > > --- > > drivers/staging/greybus/pwm.c | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/staging/greybus/pwm.c b/drivers/staging/greybus/pwm.c > > index 3fda172239d2..88da1d796f13 100644 > > --- a/drivers/staging/greybus/pwm.c > > +++ b/drivers/staging/greybus/pwm.c > > @@ -21,9 +21,11 @@ struct gb_pwm_chip { > > struct pwm_chip chip; > > struct pwm_chip *pwm; > > }; > > -#define pwm_chip_to_gb_pwm_chip(chip) \ > > - container_of(chip, struct gb_pwm_chip, chip) > > > > +static inline struct gb_pwm_chip *pwm_chip_to_gb_pwm_chip(struct pwm_chip *chip) > > +{ > > + return container_of(chip, struct gb_pwm_chip, chip); > > +} > > > > static int gb_pwm_count_operation(struct gb_pwm_chip *pwmc) > > { > > -- > > 2.25.1 > > > > > > This patch didn't apply due to changes made in my tree by a patch from > someone else before yours. Can you rebase it and resend? > Hi greg, I am confused, will that be a totally new patch or a new version(v4 in this case)? Regards, Sumitra > thanks, > > greg k-h