Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp171008ybl; Tue, 20 Aug 2019 17:45:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqymVdN0ps0iSUpv+9f8ucctrtTla60zH8SfaSuI4NokPXknCDRh0knImGyKd/ia818MZl5v X-Received: by 2002:a17:90a:c24e:: with SMTP id d14mr2754892pjx.129.1566348328082; Tue, 20 Aug 2019 17:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566348328; cv=none; d=google.com; s=arc-20160816; b=mlLmrtW12DENL4om7EWrucUtaedkrhEL4Yi0c/M67LX81jADFfiY0VmUv5EWwslT7Y W92OCQ5aV1fWydVZY0J2E3SlDz8GzvUNTeygvSNOI6/GUiJTWOTm4a4tg9Om5OpABcPf YapJweqXt/JeHIpjlr8/Ih98sDdLdDQJ8IBvsBrPr8ANMCjIyKEL3F5jvZAK3k1tiLEu HxUzD+jKznGenNX4wt/DfTDUS6gZkQtDi5cwvjq5NzsZa71yXMFHvtkPLBepbmWphVCA Bm3xordb3+QWQZcks/AojEMY1HOAqbY66QeP8KuP/to3WqZgzD658EGlQHr23DeBPlKp 63Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FajnE/5GS1R2x5f3KG7EhW3STXyEPWL5jLH+s75xMBQ=; b=QMurAAb9k+f6ezbrB/rmggs/nrwwQpwC6aLk4VP6vTQERqPrgmR2pH5JKHy+1jlJsR XbJ7pTKL8LgNFBxfEMEnSoyNTZdvV7ss/rYmYNlsDz0lrbhRmPrPaJAVPW21Pm99h9k4 BITrJFbR7JHUHHLgNBFIgDh+CqBUS9+1IaVM+uiGgWH0WdPsgQEO9JpbA0/DnVvVSjeB zkDNxTC7kU/JxFXoayfNpayg2cmghvDWVcyjFZSEWYOXsNLoaeeiYtOL6UxeHhjDi3S6 wZLKpIluu1R4cIJTqgar3clksrYkfv3vNflrG9DBsxwYM3e7aXGUoc2ykd1cJsv3Vp97 LdOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OgGbnwzd; 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 f1si13593514plf.410.2019.08.20.17.45.13; Tue, 20 Aug 2019 17:45:28 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OgGbnwzd; 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 S1726851AbfHUAnr (ORCPT + 99 others); Tue, 20 Aug 2019 20:43:47 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35936 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfHUAnr (ORCPT ); Tue, 20 Aug 2019 20:43:47 -0400 Received: by mail-lj1-f195.google.com with SMTP id u15so499242ljl.3 for ; Tue, 20 Aug 2019 17:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FajnE/5GS1R2x5f3KG7EhW3STXyEPWL5jLH+s75xMBQ=; b=OgGbnwzdMlBAxLB0nXPGR8lubUdwdOMnk2GEOoXr3ylU9Q4sYetMQAd0uyU6IRIorM 6UooosusQb98US54SL+QLtui7+wSkw1J+s0FbmhwlQnB3R+SnqoFoBEwQDU+caRSgP7i oQM5/7n/2VIdCOuSgZodegRcjr5fApTWthAQY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FajnE/5GS1R2x5f3KG7EhW3STXyEPWL5jLH+s75xMBQ=; b=Gj3WIAkZfnEsP+ZGqxYsXV9x5bU4E9wmprxaHvBF55iQmQj7ls/kUs87M9ct33sZt6 H6If5P5+/9kugmkzY5gKmhnwHZ1olaEnhmzTJTldF+nnefF2msCsR3CmKmXGATqbBo2X TusblRPA6Iszkzx2s3SzoQIpwNbKOpwrk5umndIxEihcgrS7nobUabx5NWXejrrWWpFp R52SHldVYwo+PggA9qpubFjyY3MhafJJy0dfjWlXVWFTQEbr2h0VoZuE6xsQvHXqD+4p /NCJB9MEGbccUK5Lt1JJXmSRsj/ZkDi1XNqP4BAbpfWQvupKtZkaS7FZadNenKYQvpaH RZXQ== X-Gm-Message-State: APjAAAVM+1WInpUxhNVZhKbwWBhCTVjzlAu2otCGtHSn7JMDHxM9Keqf AXnRz0nn5RzzS4pCKzwwZoPyDPowNZ4= X-Received: by 2002:a2e:8ec6:: with SMTP id e6mr16632438ljl.192.1566348224758; Tue, 20 Aug 2019 17:43:44 -0700 (PDT) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id z25sm3050014lfi.51.2019.08.20.17.43.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Aug 2019 17:43:44 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id j17so457638lfp.3 for ; Tue, 20 Aug 2019 17:43:43 -0700 (PDT) X-Received: by 2002:a19:c20b:: with SMTP id l11mr16880592lfc.106.1566348223500; Tue, 20 Aug 2019 17:43:43 -0700 (PDT) MIME-Version: 1.0 References: <9c7a79b4d21aea52464d00c8fa4e4b92638560b6.camel@perches.com> <6a5f470c1375289908c37632572c4aa60d6486fa.camel@perches.com> <4398924f28a58fca296d101dae11e7accce80656.camel@perches.com> <20190820092451.791c85e5@canb.auug.org.au> <14723fccc2c3362cc045df17fc8554f37c8a8529.camel@perches.com> In-Reply-To: From: Linus Torvalds Date: Tue, 20 Aug 2019 17:43:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT To: Joe Perches Cc: Stephen Rothwell , Julia Lawall , "Gustavo A. R. Silva" , LKML , clang-built-linux@googlegroups.com, Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 5:20 PM Joe Perches wrote: > > Umm, btw: have you actually looked at stracpy? Yes, Joe, I have. What part of "there are now so many of them that no human being can keep track of them" didn't you see as a problem? How many broken string functions are we going to do, adding yet another one when you notice that the _last_ one wasn't great? We never seem to remove the broken ones. We just add yet another one, and have a never-ending jumble of random letters. I would seriously suggest doing something like copy_string( dst, dstsize, src, srcsize, FLAGS ); where FLAGS migth be "pad" or whatever. Make it return the size of the resulting string, because while it can be convenient to pass 'dst" on, it's not useful. And then maybe just add the helper macro that turns an array into a "pointer, size" combination, rather than yet another letter jumble. Linus