Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1986179lqp; Tue, 16 Apr 2024 04:11:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1xo1PojxaPliMGGEffiOkL8wvII4pSaWmBctlwzwscoBBQtAuApOiDBieLj52kZyc87081u7GgeQprwehCLkqGwRgOzA3tSgSxGHstg== X-Google-Smtp-Source: AGHT+IFaNs+4VjQ5cU1bBENU/qig7J3c/LmswVp1/YFxs72ZqYy8N/KE8fACGhfj/TwT322zbdXR X-Received: by 2002:a17:907:9717:b0:a51:c88e:e95a with SMTP id jg23-20020a170907971700b00a51c88ee95amr9388660ejc.23.1713265890182; Tue, 16 Apr 2024 04:11:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713265890; cv=pass; d=google.com; s=arc-20160816; b=JYOn3lH05wX6enO9UL5zBc2GEfL3NWn6LfVQXel2qGEo6p6xhTLAmghU2iAHtCoTlk cvLVIpJSZ8hrVYSKmICLShbbptWfI0ODagKwo6grvZFoFo/V23hBmHicvKvpbrmbgwAe 1EME9yl+9UF5qK67UUuRMoaaKmMfXxJvoffqATRclvJtvpiquhGhy7hsEidHm7tTWBuV wITb2QrbybE0xXKJ8C8lKiXp70W7P0HyO3rQOT3iaFf+dskbaQAiXqLCYxAJwcgsZb5v 3gDNKvjAjXajguxw7JKs3pADRhGR2yqcuV+WsUNuDSx9AE5m/CDNDFRnyqjyAcCOuW3A kLkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=ZM/Kn+8UkuIqH7dSUrgkALqX2sFZu1tAf9iAD/x7XuM=; fh=PiZiKXM2UGXMWSoyrLfy2WrqEbEUvfepej44/30m8nM=; b=I3pzQhlX2cxGqdCXH+QwoygotO16J/mG8483yMEAcJIVaFpUP8x1DkZ8N7OLYfFnWR Fdb0Nv4xMFIHEul0lHjR02FtCJxIM+9XgGeYJnORK0L9ZsuV0i33iqyt4krys9rMelk7 71Gp2xMDiwBS653edrjwxBq/3VJEL3gRfW3Eeux48NRCpo7ZP+SGr13aLmeC4o9FRiLb rLcALqXvIyKKY6VTNsX9YLFQv/uLMHhAKvGCkKKZ5y7+996uYWTOvImGro0RvIVdV6pp UyGbHTXVXGLfI2392F6hc69Tmln7agzcfdqs1su5gMLl0foJf257soui7tj82tZryLkf QKsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=LTB6+F04; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-146691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146691-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hr18-20020a1709073f9200b00a52370cf15csi4569244ejc.202.2024.04.16.04.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 04:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=LTB6+F04; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-146691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146691-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E09B01F2143C for ; Tue, 16 Apr 2024 11:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E64E312882E; Tue, 16 Apr 2024 11:11:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="LTB6+F04" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3E84127B7A; Tue, 16 Apr 2024 11:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713265881; cv=none; b=c7QedGkXgNWoV/OyGVXDGkhdD3VMVhoGFfs81LOwjH3BVhYXCvQVKbAXl3/qIxcSt2gmYbaI3gOBtOcugguavUqfjKIn5+P8QC+ZISQyMkRztd8i7Dx6tOcqgWCxIrwT52dvoVTHsPsK9YN1HXQV5AZL+fo5g09pC/LB4wb8rEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713265881; c=relaxed/simple; bh=qIhE4yT8vpU5aN3430H16P3kuNMvbZO8L7M2CXp/yKA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=sCSdkqqo60FuYmeaDBmDZ/vCBJRdsQFyrLFYPAQkJyg0KnpCIdqr0pVhUQmiRrSpv/tHRRltuaEuLg2XodCMNCyB7qHjiaS2QopisgVMsQJjQI67R53HBv5W7Sb1yt4G4z0+lCFIsLSFwxrFhgdkJi+e7+0ml1S9N0Iegkd8SO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=LTB6+F04; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1713265877; bh=ZM/Kn+8UkuIqH7dSUrgkALqX2sFZu1tAf9iAD/x7XuM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=LTB6+F04dq0c2A9vGjdft01NvBtN7BE1s7hBFglEQeOgGLMZ8lhGSvwhgamz3zdUw 3LOFOGAE8/69f5wjWDrFwFeywpUpkxUOsNTUPdSBqDxlizHom70fy+HGtKeWzbOmZE 8ubI3+yDLj3N/2MnNLCuoA4+Aq8ZuD2XB8lHJavB2F/v4AgKxIuU7J4aUnkE/18pi5 y2cVry8DRgTrqzpXW05YnuQ2MoPsb+3UECVYNA3zp20sf3yGFp6RARvbtTBUET+zd4 8qw/x/HqneNONDno8GHtmrjjMlSabWz9T+pHjLGZ/DGvvazDUjzYg3oKs5SvnFWbUD T9duxh5ZTeljA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VJhDg5c14z4wd3; Tue, 16 Apr 2024 21:11:15 +1000 (AEST) From: Michael Ellerman To: Markus Elfring , linuxppc-dev@lists.ozlabs.org, kernel-janitors@vger.kernel.org, "Aneesh Kumar K.V" , Christophe Leroy , "Naveen N. Rao" , Nicholas Piggin Cc: LKML , cocci@inria.fr Subject: Re: [0/2] powerpc/powernv/vas: Adjustments for two function implementations In-Reply-To: References: <7be66990-de9e-488b-ad6d-fafd1c7bb34c@web.de> Date: Tue, 16 Apr 2024 21:11:15 +1000 Message-ID: <87plupbm0c.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Markus Elfring writes: >> A few update suggestions were taken into account >> from static source code analysis. >> >> Markus Elfring (2): > > I would appreciate a bit more information about the reasons > why this patch series was rejected. > > >> One function call less in vas_window_alloc() after error detection > > https://patchwork.ozlabs.org/project/linuxppc-dev/patch/1f1c21cf-c34c-418c-b00c-8e6474f12612@web.de/ It introduced a new goto and label to avoid a kfree(NULL) call, but kfree() explicitly accepts NULL and handles it. So it complicates the source code for no gain. >> Return directly after a failed kasprintf() in map_paste_region() > > https://patchwork.ozlabs.org/project/linuxppc-dev/patch/f46f04bc-613c-4e98-b602-4c5120556b09@web.de/ Basically the same reasoning. And it also changes the function from having two return paths (success and error), to three. cheers