Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC52A7C; Mon, 20 Mar 2023 18:26:26 +0000 (UTC) Received: by mail-ed1-f52.google.com with SMTP id eg48so50337138edb.13; Mon, 20 Mar 2023 11:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679336785; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ke5Pvg/9Rb8NrDFmi8QzBDeEQQqLN9WRKIG9dOyYDRU=; b=MxXJK3tBhvSIhlqyvZ10EOx5Dg9FRFzDR3XIrL2SkBQoMWlC21hgWdL6/+Aqp1wvER Hsen1NCwT0d7KB3yOWczmJxsYua8deLqf1I2MtCodajd5TkdM1QHVLpbg9YFx6wX3g3T or0sMq2FVtfoShbTHd+MSvkZkTzjkmQ+WpGHQ15S0xWOnb0JA769RxiC8f5NRfgsFZQQ hkxulEWcWn2MJv3mgn7IoFOoBN0r7j5ZwAYKoltLhlxO7YQKhxgP4hKcMbUbZ6yuFDvF 8QDLYeaxgX6XotBmV4CVAFJX7dYsy/HIvOWiaLsZVfLr72wBbYtPvgVMzoGi9EvV68v6 KmiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679336785; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ke5Pvg/9Rb8NrDFmi8QzBDeEQQqLN9WRKIG9dOyYDRU=; b=NTXPXAtF9821w58hDQR6yJdts8oD0ZJWMnPW0WELYLMtVf7rVHeR9aJXrRrFfoTsFV m4oSjlG75D5QsamEVq+KToo/bqAW7nFwsqV65fo1+bSlxpWXmEkzAFIgAqLReN3PBl9B WFVFPewEZlmOZCkiY2EachbkGURAJS6Hve3WQpYE4WxAZNprT3WtAaJo8hQdHuwwJ99W CWLUtLkD5xykhM+XgOPm5nFUQl8AJa7l+/eeDnBUH25zAcscPuDcnKjzpJ30C8tVQPsQ IxL2VuBCJsiWCIHw5U+kR5TjDGZDSYhEwo1ze/vfvdDDkCPXQAIHPKPZZYo8jTedBdmx 1iPA== X-Gm-Message-State: AO0yUKWCSNzi6jGwvH5HB+gUbugk84ytzNvTIbu+c3ditgkcjb29TCsE jgiSfSGw9Ggf3v4KhuemZV0= X-Google-Smtp-Source: AK7set+lohy4Wja2XvtAg6ZPuHkUKL2VoCJocj7y2VARevzarO6pMjMjX3cmg6W8EFxk0PwMG72jmQ== X-Received: by 2002:a17:906:7043:b0:92a:11be:1a40 with SMTP id r3-20020a170906704300b0092a11be1a40mr9276452ejj.11.1679336785053; Mon, 20 Mar 2023 11:26:25 -0700 (PDT) Received: from [192.168.1.16] ([41.42.177.251]) by smtp.gmail.com with ESMTPSA id d14-20020a1709064c4e00b009336df45226sm2354245ejw.64.2023.03.20.11.26.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Mar 2023 11:26:24 -0700 (PDT) Message-ID: Date: Mon, 20 Mar 2023 20:26:22 +0200 Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] staging: most: use inline functions for iface_to_hdm Content-Language: en-US To: Greg KH Cc: outreachy@lists.linux.dev, parthiban.veerasooran@microchip.com, christian.gromm@microchip.com, drv@mailo.com, dave@stgolabs.net, yang.lee@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Julia Lawall References: <20230320103335.6479-1-eng.mennamahmoud.mm@gmail.com> From: Menna Mahmoud In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On ٢٠‏/٣‏/٢٠٢٣ ١٧:٤٤, Greg KH wrote: > On Mon, Mar 20, 2023 at 12:33:35PM +0200, Menna Mahmoud wrote: >> Convert `iface_to_hdm` macro into a static inline function. >> it is not great to have macro that use `container_of` macro, >> because from looking at the definition one cannot tell >> what type it applies to. >> >> One can get the same benefit from an efficiency point of view >> by making an inline function. >> >> Suggested-by: Julia Lawall >> Signed-off-by: Menna Mahmoud >> --- >> drivers/staging/most/dim2/dim2.c | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) > Your subject line has a " " when it should have just a " " :( I see, I will fix it. > > Please fix up and send a v2. I will. > > thanks, > > greg k-h Thanks, Menna