Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7C38C433EF for ; Wed, 6 Apr 2022 13:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7Tzts6i9UuOycEvy+jbAT0Uk0viqIWIcgKZ5RTem0pk=; b=Y9NgpKy1oKZEyu y6CcxlPw8/458MaggKRnTQCt21yhsxhutPXtExHceHaY6/E1FErhKlFF86LHyP60qXl6rSSdz4Lsz mZqS9fa9p7QIjtEZOaPfOP05k8aFBTnYSA0YPJHfALbWmoKSB7WV8Z9YQ2q0Jc7Q5h8fljtIDreHt 2kdzidVJ4IY8pMTVld76ZdNlU3IO1vgVQBDIWIJ7qSdgywuklmRAMJdnDN2yDTqMjwtS2hwHWmCzd rUkBNyTU4VROSdlcwb1AXfFdsExo0DHW6y2SJHrz9vWOpUiHw1F8csiqKnkjLokGWZifUuaofaqnM +rti1ZEK/1FF+1v041cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nc5sV-006LQ3-Mn; Wed, 06 Apr 2022 13:39:19 +0000 Received: from mga06.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nc5sS-006LOY-JV for linux-arm-kernel@lists.infradead.org; Wed, 06 Apr 2022 13:39:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649252356; x=1680788356; h=date:from:to:subject:message-id:references:mime-version: in-reply-to; bh=MR0QuVLovLHwAZvrr6TMq2mU0Gw8cRhORK9LWq219do=; b=LWR2dFUEh+BtXjFIwhLDAp1i7Bj/JFR/R2Fdo89oJlGW7Uqr2eCaeOeb 05/j6Oxlrnkr/KsD+Pb+6WztkYzHZTG4DJYSK+9zutRrIFjVInn7GxW+p WP6T4vJLhHn8dDK2Hd2CXsL3/nJJScNhUrA8+ZY8KPuHnEKLWYO8fX8bT 40AtDiw9Iie1iPtnfgNswsjusfojTHoivlHW4vZ//UKnOMr3g+pZ/5BlW LYz71QMIxD7nJYVniH2gwG3a6tdPcYV5OZGvz45GQX9Sa2SqftSxnzHyj qkGZNZWY5NEAoFzOw652I0r6g/IIEuiFsYLjgxzXVz5tgZonjQEA3rBWA w==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="321738775" X-IronPort-AV: E=Sophos;i="5.90,239,1643702400"; d="scan'208";a="321738775" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 06:39:14 -0700 X-IronPort-AV: E=Sophos;i="5.90,239,1643702400"; d="scan'208";a="722516790" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 06:39:11 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nc5qv-000EhC-0U; Wed, 06 Apr 2022 16:37:41 +0300 Date: Wed, 6 Apr 2022 16:37:40 +0300 From: Andy Shevchenko To: Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Patrice Chotard , Mauro Carvalho Chehab , Hans Verkuil Subject: Re: [PATCH v1 1/1] media: c8sectpfe: Clean up handling of *_buffer_aligned Message-ID: References: <20220209182521.55632-1-andriy.shevchenko@linux.intel.com> <20220308171005.GA365233@gnbcxd0016.gnb.st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220308171005.GA365233@gnbcxd0016.gnb.st.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220406_063916_719833_A5CA190A X-CRM114-Status: GOOD ( 18.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 08, 2022 at 06:10:05PM +0100, Alain Volmat wrote: > Hi Andy, > > sorry for the delay. > > Reviewed-by: Alain Volmat Thanks! Can it be applied now? > On Tue, Mar 08, 2022 at 12:25:42PM +0200, Andy Shevchenko wrote: > > On Wed, Mar 02, 2022 at 05:51:42PM +0200, Andy Shevchenko wrote: > > > On Wed, Feb 09, 2022 at 08:25:21PM +0200, Andy Shevchenko wrote: > > > > There are a few cases where code is harder than needed to read. > > > > Improve those by: > > > > - dropping unnecessary castings (see note below) > > > > - use PTR_ALING() to be more explicit on what's going on there > > > > - use proper definitions instead of hard coded values > > > > > > > > Note, dropping castings will allow to perform an additional check > > > > that type is not changed from void * to something else, e.g. u64, > > > > which may very well break the bitmap APIs. > > > > > > Any comments on it? -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel