Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp383218pxx; Thu, 29 Oct 2020 05:07:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRW9dcFkiy3wiU1rspbO6CXtJBzjqecqYNMfKjRqbr+gXf6KF+qzFLaSjFwhCOQCN5Q5VR X-Received: by 2002:a17:906:1a56:: with SMTP id j22mr907012ejf.388.1603973228229; Thu, 29 Oct 2020 05:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603973228; cv=none; d=google.com; s=arc-20160816; b=UuXC4EEuZMRcCXXJ1Ovdt+XtVsFlkOJ/cp2VkSd73r9wykNcjjt/bdUfxQP0qA9RSt 5XDIig1AyZuJNiKf38CYsuUHG/cE9Uzsi8SvkSZUK+a2jb6Ln3Qc+Z6/+NM5NF9yqdfo FBcFU7VKaN5cCKKoLM9v6eL7sQpS3bntdg8qbW5hyrBzQNEFbYC0rtfUbCNvXSbVCwTv t+IAnhZ2yY4ify0z5CV23c0P5pAgXZsFxbotWuVDDfHYPCsgArPmn4IfM61jgFPzCRQC 6A3m5fixJ3JP0P5zCrygBnaDT1X6nyYHYizA0b4j+y1ZXx7MnEMypewtItn2wM1Ndpu1 q5eQ== 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=o687iw3cdVKlrtAY0hVT9GT6GWB0dk8OiWOKpnhjMLg=; b=fAvRJWLNyuukfsOnehrNkP/eEshl3q0zEEpqJkrm+f4oDnveoE2JOP+4ZT/S0bzZ5A Y0P2XpycVMV6pj6kMBAsupYFmPuEOw9Hh4589k+byVibOV6l2ep9BKOB9Rl8F8S2WMHG NnznySUwD/J9Ba5aSbPWwe8YNiwwNQDTOkR2x+c23qzFJ31jcWYkmfdS5RLP2O/LDPXn NIaFB++InSM10eSTQUkZDW5y7C4m/2sqD3GB6CJTQYkFtFdaHmqbEucOT8xlRl/yTuV5 Pst+hd1PCsuWnAi/MbmS11P4/wzQfu8Yn0MmuWUtJZPl43r7loN6dbaFGy2ErBGm66Vw jzyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=gmyldzWA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt15si1820882ejb.170.2020.10.29.05.06.42; Thu, 29 Oct 2020 05:07:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=gmyldzWA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725830AbgJ2ME6 (ORCPT + 99 others); Thu, 29 Oct 2020 08:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgJ2ME6 (ORCPT ); Thu, 29 Oct 2020 08:04:58 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B12C0613CF; Thu, 29 Oct 2020 05:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=o687iw3cdVKlrtAY0hVT9GT6GWB0dk8OiWOKpnhjMLg=; b=gmyldzWAHEGGIUSuub4fO2AJRD fw2n5JKinmfwX7At1VNZ4KOnNc+s0IuOygjNrKCv2KRVKgk2MjEgEEKTbqywbjtZJoDLyHJcCZ+lC kgcs595Vkzz0fm4FGm1Ef5VLREFs6X5QKsEpsN9B55cOiFepPXSy72O9q6xVm9dVI0JxavG1jukxD 5f/vaz/af4YiQJa1/SwPon5BEJngXOHSXb3e+AhWW8trfR1Nf2DdgbeQPmqSQ4H1n5kF2GmwNqTyX x8Zzy6KZS9vqf/T3OvLPxkUU22vIbLnl7Glq+07ShxZ3TEaIDOPeB604e0qpr9rkmFED4AJNGZPwf sfNg+BdQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kY6fc-0008AP-QD; Thu, 29 Oct 2020 12:04:44 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 104023012C3; Thu, 29 Oct 2020 13:04:43 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id EEB212B772B22; Thu, 29 Oct 2020 13:04:42 +0100 (CET) Date: Thu, 29 Oct 2020 13:04:42 +0100 From: Peter Zijlstra To: Walter Harms Cc: Lukas Bulwahn , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Josh Poimboeuf , "x86@kernel.org" , "H . Peter Anvin" , Nathan Chancellor , Nick Desaulniers , "linux-kernel@vger.kernel.org" , "clang-built-linux@googlegroups.com" , "kernel-janitors@vger.kernel.org" , "linux-safety@lists.elisa.tech" Subject: Re: [PATCH] x86/unwind: remove unneeded initialization Message-ID: <20201029120442.GP2628@hirez.programming.kicks-ass.net> References: <20201028122102.24202-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 11:49:50AM +0000, Walter Harms wrote: > this looks like a reimplementation of bsearch() > perhaps the maintainer can add a comment why the > kernel implementation is not suitable here ? If you look carefully it doesn't do an exact match, which is what bsearch() does. bsearch() also isn't stable in the precense of duplicates.