Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7797390ybi; Mon, 22 Jul 2019 21:01:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5fi9zDHAsJCxjl6lWle7uYPOzklE+/bJX7n9NEAfG35k/r50s7QzwTbqEMUtGnsqLCLUe X-Received: by 2002:a17:902:c509:: with SMTP id o9mr79893145plx.222.1563854497237; Mon, 22 Jul 2019 21:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563854497; cv=none; d=google.com; s=arc-20160816; b=qJ955s0Bv3SmCQ2f9rNb1uPF3vk41gFrnVxPzwc9BOsEg5BcqevZjiQnLHLdXf0uqS P6E/l9mXrvdxoICu63V0YlTUeeEo4XqNkX6gU5YyDI1bOKyjMKDGfkec1+lVHk8RcbFY UuMDarRH4zzwlYUNjEnX7wVbRGMKBcUJ+azu//aKD5rDqRXASGR7+Gz05Qg5Y7qbm1Qq Z0Q5AunTLHhNgUqXf5QyYOBFgwznhpC+0a4bNBLiYnaTVoGtHYWIQYyoFCKVT6/F8yei o2AtTwHCyWiuU8QMgxtP3kw/RxK3CZNqXlgQ6n5LzcDoHQleaGKFUNlizzZtDu3VFf11 Y7vQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=qc1dkGSIx0okrOsapWjnI6QJRR/UzZDxFymVwL2bv7Y=; b=MOPi3jHfbKBXYZlWNpwQdGRb1lfhZJdVVIGZN7AplNxdvmAvc7oe25BtV10lR65QQK Lki5o0P0fxVvoww+tiN3iPszaAndJ7nW5AQ1jtWdmp/cF4jwkGfVVRXB+7e8EGUC+m4w dgIofqrVaHQOGd65BI0G4xQI1DemaX7Um/WXlDPU4ea3RCebZbVthcjr0EMKWecY6aXx ZoyOMN5ZeCaszzbkpP9/24HWoGigHAQ9QYzRoFj21S8gRnrmguSXDtLrs1AyylnSW4pk s2xDFREFTYxpBI8NH82CCx2HfqO6kkYf790LydpxaqqU3qsfCI4et8tx0m+twEdvnciX PvZA== 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 d21si12136510pjw.18.2019.07.22.21.01.20; Mon, 22 Jul 2019 21:01:37 -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 S1727039AbfGVV5c (ORCPT + 99 others); Mon, 22 Jul 2019 17:57:32 -0400 Received: from ms.lwn.net ([45.79.88.28]:43576 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbfGVV5c (ORCPT ); Mon, 22 Jul 2019 17:57:32 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id D114E7DA; Mon, 22 Jul 2019 21:57:31 +0000 (UTC) Date: Mon, 22 Jul 2019 15:57:30 -0600 From: Jonathan Corbet To: Joe Perches Cc: Stephen Kitt , Kees Cook , Nitin Gote , jannh@google.com, kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, Rasmus Villemoes Subject: Re: [PATCH] checkpatch: Added warnings in favor of strscpy(). Message-ID: <20190722155730.08dfd4e3@lwn.net> In-Reply-To: References: <1561722948-28289-1-git-send-email-nitin.r.gote@intel.com> <20190629181537.7d524f7d@sk2.org> <201907021024.D1C8E7B2D@keescook> <20190706144204.15652de7@heffalump.sk2.org> <201907221047.4895D35B30@keescook> <15f2be3cde69321f4f3a48d60645b303d66a600b.camel@perches.com> <20190722230102.442137dc@heffalump.sk2.org> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Jul 2019 14:50:09 -0700 Joe Perches wrote: > On Mon, 2019-07-22 at 23:01 +0200, Stephen Kitt wrote: > > How about you submit your current patch set, and I follow up with the above > > adapted to stracpy? > > OK, I will shortly after I figure out how to add kernel-doc > for stracpy/stracpy_pad to lib/string.c. > > It doesn't seem appropriate to add the kernel-doc to string.h > as it would be separated from the others in string.c > > Anyone got a clue here? Jonathan? If the functions themselves are fully defined in the .h file, I'd just add the kerneldoc there as well. That's how it's usually done, and you want to keep the documentation and the prototypes together. jon