Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4193665rwl; Sat, 7 Jan 2023 12:59:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXvjyIVvIRVq/pfm1AhqjHlNoEn3hIZHnHDxfzHlSgkRd9M72Oq2wdwhLlMN0cXrNmp9ip7N X-Received: by 2002:a17:902:ead4:b0:189:c429:f615 with SMTP id p20-20020a170902ead400b00189c429f615mr59496706pld.1.1673125144655; Sat, 07 Jan 2023 12:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673125144; cv=none; d=google.com; s=arc-20160816; b=EAN9FJwRwWgtVgsZbqhtyY92UFTnuh08frICH5FARyS6UmMnnocQN8zlt8YVMwMPY9 q8POtLwa70RcGYSQBPB4mN55BeFlRgiOHLnQK8qeoPmsiTP9RX4BO5DBYGZ8KFWRx1Qk /YGcLFWV0h74hEQIksBwfuFP6iqF9qWW18L1eIp05QeJG/tjW6UDnk4X7w2iAcgcK1SA D8Scv2MWq2mMUsu+UoPVqfzocjyJxuR58Re5XlawiiAkGgj+gsV8VTogvdABP6McUJ0O 6aB5ka4k4vAiqZx2hMkW/0EHdfO7mGSfclNi8mjbq+Z5H6q9uerxvSh+lQd0rl1psZnG m+ZQ== 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=hAjillLEKOx2KmC7SP1Nia4Gp6cK8M5rjgl3kDoyrUE=; b=Nkf83dHmMJedIOyV1bSuBO94/p2X2ABb1v2ZHBvBZw3Rj41u7DxcPY2gfT28lO0L3x UJfnvaAWDQOy8KJ8RMj+ctTg57zKZndsAG7Xd2rHMheXcjmk3YJ0rj5zeOI7536NGjes vrj/1Ds0kHTah7D+p2T4pBilk2WZO4S9ikvU3XgWnEuboDF2uw3P6lfLJLTZLzd3Go/Y 3LVuZsV1HhRb35klyp1oVe1oNJTXQFEIaOAS9auhrC5OHiRHVNXPJMxyHFnpfyACo4SR qbbSMSfA6eFaCr0pbNdLGKgMeHD4GItng70HalID8lMaIhkb2waad8ocn92kjtv+PP8j N3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=f56d3kd2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a17090332c500b00179f8a3f838si5472484plr.593.2023.01.07.12.58.57; Sat, 07 Jan 2023 12:59:04 -0800 (PST) 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=fail header.i=@mailo.com header.s=mailo header.b=f56d3kd2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232506AbjAGUKp (ORCPT + 53 others); Sat, 7 Jan 2023 15:10:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjAGUKm (ORCPT ); Sat, 7 Jan 2023 15:10:42 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F3741AD8D for ; Sat, 7 Jan 2023 12:10:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1673122220; bh=hAjillLEKOx2KmC7SP1Nia4Gp6cK8M5rjgl3kDoyrUE=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=f56d3kd2p+l3ftFIVwSlWkwZZPVE1FAFzBM31XqhT7auIGo92pwG+k/WVNF0pTHKr gTj1XBUbINpYY0EeTLxSYLSHtzFXpdTiICRX6PUjNZ/InWGxUy6krB55dUZV5IvMyD QaLYZ3pWOO+PUwArT1rJ7PBJITVPfut0JfccPFWw= Received: by b-5.in.mailobj.net [192.168.90.15] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sat, 7 Jan 2023 21:10:20 +0100 (CET) X-EA-Auth: b7pO3chvbNWR4+eUZY0WKsgCt5PFeQvNz7SvHGCWIGrrx7unZhEvVtsYX06rlAeLm12NYV7HCNgXeELGGaee3Ey4ky9N9a9W Date: Sun, 8 Jan 2023 01:40:12 +0530 From: Deepak R Varma To: Yinbo Zhu , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Saurabh Singh Sengar , Praveen Kumar , Deepak R Varma Subject: Re: [PATCH] soc: loongson: use resource_size() helper function 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Fri, Dec 23, 2022 at 03:02:17AM +0530, Deepak R Varma wrote: > Use the resource_size() function instead of a open coded computation > resource size. It makes the code more readable. > > Issue identified using resource_size.cocci coccinelle semantic patch. > > Signed-off-by: Deepak R Varma > --- Hello, Requesting a review and feedback on this patch proposal? Thank you, ./drv