Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5864696ybv; Wed, 12 Feb 2020 01:34:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwyTh8ZmnEO3+3IHam+6zJlcPCZ5aOARbSVHqoTToDhHerlZrIGvbNufVN8KNrlvsUlhqJk X-Received: by 2002:aca:fcc1:: with SMTP id a184mr5479574oii.36.1581500039480; Wed, 12 Feb 2020 01:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581500039; cv=none; d=google.com; s=arc-20160816; b=Ay7+Vsi4n5nqOP8DzhSyd8hxRfOR3BmrxMKR/StJZfDbPIuvblABibykp8yAn8qwTk RZfJbtdfvlFkfu++KsrtCuj9zO73HDZgEfh8+s94zlm4SB+HbeskGvvFKN5mbl7DS43Z qYEulNss1Wd9oeiakOHRT8btcCW05wSMCETkOtic/F3Q8nZUdQMOi+2uwDRwZxkWdQba VeX4kwWmEprYYXM9TmxcsAvSyaQfVfyiKu32hWOofvNdEZMV9pC/+zAICXKrgnYAjOHY /KZ0esm81eCJX0WxvnOPOYKovr4kWlGa84ZTh2xkYecf5D0gBCixy6lv0qmfHBtKCd1k LKyQ== 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; bh=fbl16QLWOk16BbpGJnBM6ITNh/OXaqd9qdxwFkNXjtY=; b=OzL3YCqI6ywZJF0Bmnn83e+3XogHfP1xa4q0vc3yk4pglxaQvxWgVi65eArxpSBVEM TvGbRxmizaEzNxVoujAFazKsLTxI2Nt34etfqrMqwJNe/HdwC219smQEUVf3ocqU6VDx tVpko8OkPCVNrhc5z8Uxbi2WVtRJovMNWytws9NndDZ1eJQDNOzeMzgNrgWqMCaExCPh 4RsFOfOcgEbUeUB5NxDpVyrDYUvIZpaQouiKukbg+6m63SWvTPD6/6DZMf5+/KE5S46M HD+rjjuves2QyZJihsPh0hCsGPfcG7Dd7wUxGEGkXYL4Rc4EA4pZlJBvGxzCeqRPJF4b rN9Q== 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 z18si3113364otq.121.2020.02.12.01.33.47; Wed, 12 Feb 2020 01:33:59 -0800 (PST) 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 S1728844AbgBLJck (ORCPT + 99 others); Wed, 12 Feb 2020 04:32:40 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:37052 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728530AbgBLJcj (ORCPT ); Wed, 12 Feb 2020 04:32:39 -0500 Received: by mail-oi1-f196.google.com with SMTP id q84so1407554oic.4; Wed, 12 Feb 2020 01:32:39 -0800 (PST) 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=fbl16QLWOk16BbpGJnBM6ITNh/OXaqd9qdxwFkNXjtY=; b=JvhsPYEUaeeK7KbUnv7HXvNL2DqGDkkKcSFQurlaubDp0i4OUymw+p/npEtcoaWB7S aiVyvhtXfRwKL9vFcCI641secM3Q5pP4/c2cMthfvTdhJow3dwuz1BDay3nH7PR9f4AQ qs1zm1HKcZ6pOfXiTtLsHmvzhccnlQpceR6bhnCzFQCanL0v3Q1cxydvqWyDcZFAYRI3 EyXi7htNo/acu0CupQhih1qmFiGqBwqcXs3BBGCq9Vge+Gd7CKXiHRz/w/QiW+v0UIja C//psjZdR5eIy3NW8CSTji+By/l/ctSmwyVXfx+9we4brR5KqJQyfA1LSMQ6HcVpTDcG F+UQ== X-Gm-Message-State: APjAAAUQSlYw2r07G2XgRxnPrYE14q1hn8VANcensh+zCHpPmgRgd6gH G5C/Z9zj+Srh6goR8N237Dl4QJbV1MhuE8AhTEg= X-Received: by 2002:aca:c4d2:: with SMTP id u201mr5697570oif.54.1581499958571; Wed, 12 Feb 2020 01:32:38 -0800 (PST) MIME-Version: 1.0 References: <6128aa3a-a99c-2ab0-82d1-d5c419e4f5b9@xilinx.com> In-Reply-To: <6128aa3a-a99c-2ab0-82d1-d5c419e4f5b9@xilinx.com> From: Geert Uytterhoeven Date: Wed, 12 Feb 2020 10:32:27 +0100 Message-ID: Subject: Re: [PATCH v2] asm-generic: Fix unistd_32.h generation format To: Michal Simek Cc: Max Filippov , LKML , Michal Simek , git@xilinx.com, Arnd Bergmann , Andrew Morton , Stefan Asserhall , Chris Zankel , "David S. Miller" , Fenghua Yu , Helge Deller , Ivan Kokshaysky , "James E.J. Bottomley" , Matt Turner , Rich Felker , Richard Henderson , Tony Luck , Yoshinori Sato , "open list:ALPHA PORT" , "open list:IA64 (Itanium) PL..." , "open list:M68K ARCHITECTURE" , "open list:PARISC ARCHITECTURE" , "open list:SUPERH" , "open list:TENSILICA XTENSA PORT (xtensa)" , "open list:SPARC + UltraSPAR..." 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 Hi Michal, On Wed, Feb 12, 2020 at 10:27 AM Michal Simek wrote: > On 12. 02. 20 10:25, Geert Uytterhoeven wrote: > > On Wed, Feb 12, 2020 at 10:23 AM Max Filippov wrote: > >> On Wed, Feb 12, 2020 at 1:16 AM Michal Simek wrote: > >>> > >>> Generated files are also checked by sparse that's why add newline > >>> to remove sparse (C=1) warning. > >>> > >>> The issue was found on Microblaze and reported like this: > >>> ./arch/microblaze/include/generated/uapi/asm/unistd_32.h:438:45: > >>> warning: no newline at end of file > >>> > >>> Signed-off-by: Michal Simek > >>> Reviewed-by: Stefan Asserhall > > > >>> --- a/arch/m68k/kernel/syscalls/syscallhdr.sh > >>> +++ b/arch/m68k/kernel/syscalls/syscallhdr.sh > >>> @@ -33,4 +33,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( > >>> printf "#endif\n" > >>> printf "\n" > >>> printf "#endif /* %s */\n" "${fileguard}" > >> > >> Here there's already \n at the end, so no need for another one? > > > > Thanks! I completely missed that. > > So I did fix the original while applying ;-) > > I can drop m68k or align with with others. I would prefer to have the > same solution in all these scripts. Yeah, it makes sense to align as much as possible. IIRC, the original plan was to consolidate more later. Note that all other lines are terminated with a "\n" at the end. The separate 'printf "\n"' is an extra blank line, not the terminator for the previous line. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds