Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp18621pxb; Wed, 29 Sep 2021 23:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgo22I+N2WVQ8o+2uERoUQyt8hJIMSH+xqaXLRoN2cZATwH/V9gxKTrCFIDhpRARfeaSMc X-Received: by 2002:a17:90b:ed4:: with SMTP id gz20mr11018750pjb.35.1632983441193; Wed, 29 Sep 2021 23:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632983441; cv=none; d=google.com; s=arc-20160816; b=lzLRuep47O7/V/jmzE+Vljn8H+BwZOSDZu1gt25hvjGKIIgrAFELmlLwl6Ml7Gk1a6 XHvEAH+5TbpgO2X9dyf245rypMUjSb8R5HhQ79BQR3KoIePfR4jauvj6vhl35IhZDN9q HzGVFwS2UeDPDTkTANP4Newt15sFzm5coJuRuSsJbkDF+TmMFUN/V+aIaczT53kH2K2h JIGGsldk6aGyUCHu+KC8OIb5s4xyHAX/0w/fqLdQb1bcELmp+iAicclV1q8YwQ0aDgWj yHuyDF0TzVo0ENmltt2f2zO3TICy/rhM9imbhMMDqxsgAzgr35sVOR5Es5fM535slugL aIdg== 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=XKdg03dER7aAVYGl+OBe99oJh81vkvgyAoKpn99tJh8=; b=b2/nPVnPALStFO0788iQ7Kdok3va1tJJN+fjzDsIKIvnr+NHvSwEfA3rEc4Pe1ojjY shvnczzBE1fhGRSmhESKP0wuwUmnFf3Q+Ft0pdxmlz0EEBA4x4O48RQa9l6BFZzvMtCW IvQgjlOd7lmVP8d+qk/jDovj7Zm+Q9FWrFSVc4Et8CpL/qtPQD1XLVSBNS8RW75r8tWe MzOSlC3abIFcXVLlqFB8bo0peussSuNWDEH0KS4sN+CEh2JHxghxO3oKFXnHi4tnp/J5 SVA8/5vJg/kUlzjGrT2DrivD+cxcBrLjMS0Sog6n9ag/E8gc5sNyKcxxm/0rzfxa6VQ1 SdLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jaYaemiF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si2695509ple.370.2021.09.29.23.30.28; Wed, 29 Sep 2021 23:30:41 -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=@linuxfoundation.org header.s=korg header.b=jaYaemiF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348230AbhI3GI2 (ORCPT + 99 others); Thu, 30 Sep 2021 02:08:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:46688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348054AbhI3GI2 (ORCPT ); Thu, 30 Sep 2021 02:08:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D0E5611C0; Thu, 30 Sep 2021 06:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632982006; bh=6v0o2oaBHUuXJtHcvE1qZ8zginS+Wa7xhhbrurvMJ0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jaYaemiFIxsztxYfk821mtLeBOfbjuomDLVkKc3HPGk0xyz38n91M2bb48tUpENUR /bGmKw7DvUTtS2AClOOlg/QAKhPOM1nml4mHgGs8IoJkcvNtSDCSSpg/452fvwKfmr pKuHm0dgEMMHH14Gcx8qPeSOg06zkrVkTyyN1NPU= Date: Thu, 30 Sep 2021 08:06:42 +0200 From: Greg KH To: Jim Cromie Cc: jbaron@akamai.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] dyndbg: recode for stronger precondition Message-ID: References: <20210929183735.6630-1-jim.cromie@gmail.com> <20210929183735.6630-2-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210929183735.6630-2-jim.cromie@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 12:37:30PM -0600, Jim Cromie wrote: > The table of struct _ddebugs, due to its construction by the linker, > has an important property; namely that its "equal" fields have actual > ptr-equality, not just strcmp-equality. Lets recognize that truth in > dynamic_debug_init(), while slicing the builtin table into a > per-module list. > --- > lib/dynamic_debug.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c > index cb5abb42c16a..817a87e9c37f 100644 > --- a/lib/dynamic_debug.c > +++ b/lib/dynamic_debug.c > @@ -1101,7 +1101,7 @@ static int __init dynamic_debug_init(void) > iter_start = iter; > for (; iter < __stop___dyndbg; iter++) { > entries++; > - if (strcmp(modname, iter->modname)) { > + if (modname != iter->modname) { > modct++; > ret = ddebug_add_module(iter_start, n, modname); > if (ret) > -- > 2.31.1 > Always run checkpatch on a patch so you do not get a grumpy kernel developer telling you to run checkpatch on your patch :( I can't take this for the obvious reasons here... thanks, greg k-h