Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4197888imm; Tue, 25 Sep 2018 13:05:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV62yGp4V8S5ChRlAwKDjgg/zUAcwwtwp44lFjIaiQe1t+7d5F20LNb529v9WRucPerFRVyQr X-Received: by 2002:a17:902:9a82:: with SMTP id w2-v6mr2665476plp.109.1537905938376; Tue, 25 Sep 2018 13:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537905938; cv=none; d=google.com; s=arc-20160816; b=l4qHLvmE8MjFMr+6dcv2dbqLEa86Q2sKQWdwUOzxtLMRPIsAhUMA6DUn53+RL0wRpf Clp+0MwFAATVsfjn6i+ViOnBRcuMFMyhjb8S5LnPLTTO6FWBvcSERO8xX205ISSHSXXY gggIY6eT6GwLpc6wrh901BO7a3DFJQbiPi1eNyKfAvGclhf2vh786byQp8uCizS7Kd9n R+zJXGKfc+USkGroJEsAC8bF80YZe3tZel0pDSiKOQJuv9hmkkqDY8V85Oyv4JUZNVRr MFD2poQ8ziJ6yR4JD5y+5kazYCZXivrhr3dKE7tQYMB3SDEhCmfNCWSI3U0AV6OwJUvB GyTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=rJ5hAmugHgmlyTWKRAc9KTYuFXFhuSWa7W14kT7ntow=; b=tNmYShiBWovF/OZvJxBIw2n0IMLEcBnSf1KmT73TfNOFz5Wtj4AMzReJ3wA0YTYHH4 wYgKDNcthp5R9D9QM51yCL/eBy35j7lPpaPq5hBxIFzMeeRWz9q7SUdMb1ink6U4w/uw COo0INIa+4dkrmZ1gamgsZVVNO6vuSzFkq58jpF0uQBt6agLrClL7WKi0CFv4JhXNsta 9oQsYsVT5CdkkyGAzDAzv4ZIfBcC+A2MnTg8rCYlzYyFTddP9uW4RSDzceOtbmxvK9Cj mhw+vZqE9b3CL95n13cikBNysItnelDdVSZutqftYXWY5oTMPly/cP1F/Jfh5zMDbRc4 1wTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si3284213pln.415.2018.09.25.13.05.22; Tue, 25 Sep 2018 13:05:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbeIZCOZ (ORCPT + 99 others); Tue, 25 Sep 2018 22:14:25 -0400 Received: from smtprelay0222.hostedemail.com ([216.40.44.222]:34399 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726026AbeIZCOX (ORCPT ); Tue, 25 Sep 2018 22:14:23 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 289A7180202FC; Tue, 25 Sep 2018 20:05:10 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2559:2563:2682:2685:2693:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6119:7903:8985:9025:10004:10400:10848:11232:11658:11914:12043:12050:12296:12555:12740:12760:12895:13069:13311:13357:13439:13618:14096:14097:14181:14659:14721:21080:21451:21627:21740:30054:30060:30070:30079:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:44,LUA_SUMMARY:none X-HE-Tag: bun38_8431ff521cb07 X-Filterd-Recvd-Size: 2403 Received: from XPS-9350 (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Tue, 25 Sep 2018 20:05:08 +0000 (UTC) Message-ID: <748429eee2fc77afd01630c24bd2cf66a545aec5.camel@perches.com> Subject: Re: [PATCH net-next v6 02/23] zinc: introduce minimal cryptography library From: Joe Perches To: "Jason A. Donenfeld" Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson Date: Tue, 25 Sep 2018 13:05:06 -0700 In-Reply-To: References: <20180925145622.29959-1-Jason@zx2c4.com> <20180925145622.29959-3-Jason@zx2c4.com> <2b5f2df2f1278c118a913259a44efdf589719293.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-09-25 at 21:43 +0200, Jason A. Donenfeld wrote: > On Tue, Sep 25, 2018 at 8:33 PM Joe Perches wrote: > > I think the -Dpr_fmt is especially odd and not > > really acceptable as it not used anywhere else > > in the kernel. > > There are about 2000 cases in the kernel of the same '#define > pr_fmt...' being pasted into the top of the file, which seems a bit > cumbersome. Rather than having to paste that into each and every file > that I pr_err from, As far as I can tell, zinc doesn't use pr_err, just pr_info in all the selftest blocks which are only used when DEBUG is #defined. Perhaps all the pr_info uses should use pr_debug instead as well as dynamic debugging which already optionally adds KBUILD_MODINFO. > why can't I just do this from the makefile, since > I want that same pr_fmt to copy the whole directory? Ideally all of those #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt uses will be removed one day soon and the default will change. https://lore.kernel.org/patchwork/cover/904507/ This slightly odd use might complicate that.