Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp533270pxu; Wed, 14 Oct 2020 07:30:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH99AEqHPqg9FVBUTdsdK3Mupe+sm9FfAdRkqymF/JlofoCNICPnDoGEmVhGE9OTkpL+F/ X-Received: by 2002:aa7:d349:: with SMTP id m9mr5538324edr.51.1602685849451; Wed, 14 Oct 2020 07:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602685849; cv=none; d=google.com; s=arc-20160816; b=z89uBJobflpdYMx6plfKt5PAqyjlccYLVZG5xE4a5DxvX1N9ApfOaFqLlgWaGyidxa cAbbBLwymvxbJk5uO+U20arq/5cdMtjcIPNAwam61a44M9n9bXJdodF+d5p7fEscw4fW vKcQvy6u/HXsgrAswgLQcXVyiCqReTz5ZLu45ZMhIIHPm+JsqCaRgmTAmRpaKRuYGEAw QRDb8yE7bAZzRCZgFyzLmurEg0h/ZeSHI+IUDl0HxqRpNG+n4PHPwz7zA70tS1ug4krF cVbxXPmQ9Tv/woEZo1mdbtz6TTB+npsA0Ku5fICRklZmzbK256pu4v7BsBqhnQExq7PX YpNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=UBFqFCzIJNKh8jyrl5hstzkj4zTEnxt5tI494FDlXJM=; b=Gqn/6EFD7fqMwHUoIR6q/OGhOI6DDahLQMByDo7OG//UFgyu2zaxcOq7OjbytFrw4Q eXWrOqX9VPZ2GwUP0CtVKmPsLp9yjuT1PdfipKMAggWiiJ9WFJyNlR0alxMW5QWdQiBC +/0mZ5iecu6diVBRzsokuHVySqCq9YbJGNZXyy+7PEE/k5IKOcI4kLOwbAu+UHuoGGFU ZIwuvYtd2ZuRYDJyf9KZ8JMZCKJtYQC4liZU3/hKua7j6aHXhNAO7hp0RTpBhWpY8Cj3 ntSmFNs4ZN01WsBQT644BSP2kYI/Gh940BdNMQ1HCHOmE17pKI8IVtID0Htr6LYEDB/6 07cw== ARC-Authentication-Results: i=1; mx.google.com; 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 s21si2426448eju.119.2020.10.14.07.30.25; Wed, 14 Oct 2020 07:30:49 -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; 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 S1729467AbgJNIfY (ORCPT + 99 others); Wed, 14 Oct 2020 04:35:24 -0400 Received: from smtprelay0206.hostedemail.com ([216.40.44.206]:42414 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728925AbgJNIfX (ORCPT ); Wed, 14 Oct 2020 04:35:23 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 97FA018029123; Wed, 14 Oct 2020 08:35:22 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:69:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1381:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:4321:5007:9040:10004:10400:11026:11232:11473:11658:11914:12043:12291:12297:12663:12683:12740:12760:12895:13069:13311:13357:13439:14180:14181:14659:14721:14915:21080:21451:21622:30012:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: fold78_54147122720a X-Filterd-Recvd-Size: 1856 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Wed, 14 Oct 2020 08:35:21 +0000 (UTC) Message-ID: Subject: Re: [PATCH 0/2] module: some refactoring in module_sig_check() From: Joe Perches To: Sergey Shtylyov , Jessica Yu , linux-kernel@vger.kernel.org Date: Wed, 14 Oct 2020 01:35:19 -0700 In-Reply-To: References: <789a4e5c-8efd-bb1c-86e2-eed8b2b7b0af@omprussia.ru> <3897a8ce5760affa304952c2d30c1266589407f2.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-10-14 at 11:18 +0300, Sergey Shtylyov wrote: > Hello! > > On 14.10.2020 1:44, Joe Perches wrote: > > > > Here are 2 patches against the 'modules-next' branch of Jessica Yu's 'linux.git' repo. > > > I'm doing some little refactoring in module_sig_check()... > > > > > > [1/2] module: merge repetitive strings in module_sig_check() > > > [2/2] module: unindent comments in module_sig_check() > > > > I think this code is rather cryptic and could be made clearer. > > > > How about: > > --- > > kernel/module.c | 51 ++++++++++++++++++++++++++------------------------- > > 1 file changed, 26 insertions(+), 25 deletions(-) > > Looks good. Do you want to post complete patch(es)? :-) I don't like posting actual patches on top of other people. It's a complete and compilable diff, it's just unsigned. If you want a Signed-off-by: here's one: Signed-off-by: Joe Perches