Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp836215imu; Thu, 3 Jan 2019 08:01:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN7BVQTpL12/QJvSZQfRomb2isDWmSamvWaa7GXl0wLauyC0eAzsBVxsws+gDPscC6R+b6lS X-Received: by 2002:a63:6906:: with SMTP id e6mr17200947pgc.144.1546531261017; Thu, 03 Jan 2019 08:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546531260; cv=none; d=google.com; s=arc-20160816; b=A/CwZ5UlrGBrzbfpUZFFkJX60E4n89ut5Di1QUyxiwkLyeZkXzgGOFiaWk5ITfx60Q 2viBroPYaniy7nDJ+OmjtkvwGKJ/6aV3fMTcX/MEOpgznVJ/G0+zKSf6Xc23PnPccj53 SaLXR8Km1VGFC1xrziiS7XV+g+it2VYxDjPM1EtKqMoeDLrQzue+XtiNscgYf+uaRvAs CtHbCEi8M75B5/yfoUOerYevwCuwn3sRq/VL093QiY4kmq6qBQhRssL0ho0tQRXmiLJu uYTgsnR+33drdl5yegW5ZJYjs9R7sEx8khcx2ZEOYilU0bJn2fplDo7V3VzCkpwy3bdp EYYQ== 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=sogc6oog6qbXkkDnDYVGxzws1ncfpWDJnuKXWr/cDJk=; b=d0Tu5YfBsPWI8AWJ2Ba469CIiYM/3VCqjS4Fw648uWO53UEN+pPF5U6zn1PggcMPMM Dz/8IEt/8nXc0BiA0p5bwhkCW994g0shBrLSbMIEBVpofo9G0z1HbJbRrflVLWdctUmI UYxsanjluNQkuz1eriyKxugMfu6mKbPFWZHboW0BWMOKGwf0XA0r0mScCLx0yoDmk7k4 n27n1uDYUW6flfBXS7vMCDPQHGwElAqjkdEI3Aancbw94UlTvjctOU8RUpMLxuoV4Bzk pBKlGV+Sc8NSY+JuK+v2pD5iNsTBQ8I+Nc6aBrfCJA4o4Z4XWBGFYZNvVUW0FsbJbNc/ 9RJA== 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 y123si3011971pfy.18.2019.01.03.08.00.45; Thu, 03 Jan 2019 08:01:00 -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 S1730240AbfACLn2 (ORCPT + 99 others); Thu, 3 Jan 2019 06:43:28 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:45328 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727511AbfACLn1 (ORCPT ); Thu, 3 Jan 2019 06:43:27 -0500 Received: by mail-vs1-f65.google.com with SMTP id x28so20559270vsh.12; Thu, 03 Jan 2019 03:43:26 -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=sogc6oog6qbXkkDnDYVGxzws1ncfpWDJnuKXWr/cDJk=; b=nzn8F7LM2UdchNKZxUzjJNHPrYGfJSoT2Jx/EMLTLrt7eAakNa2l+OKIDsRlTOBwAO Wd+zOyM6vKdXLDtoYDZE7vGydDjJO/LLJL/MJGxGEB8UA1/rrFy0N5eO5W50lugO20iY of5i2Ty0RZ3F+LKRGWn1wKPSaFi006cbtIA65Ezham3X5M9or6b1TAH1uKeCpZh4Hy0i OJgZmFI30s68n0y0S+H4FgEyeiXn79cpjNSVd4eQPhT2wWnSFL+wABfXSE9d9vFHyhQF zA9J/mL/SDCEC9kZtSUiJd3L9VnkLcxuC0TRATp2sXdijC4kbMOx3CtWsgH/GhRm6jg9 JhYQ== X-Gm-Message-State: AJcUukfqTXX11TvFeFjNwFdPGIu4tt0vfahWjddaL1WbLIgrJbscsKWW v4Ci0XyAZLdhbFhn/pa3y957MYplkQEBVUFOlIc= X-Received: by 2002:a67:d119:: with SMTP id u25mr3340440vsi.63.1546515806231; Thu, 03 Jan 2019 03:43:26 -0800 (PST) MIME-Version: 1.0 References: <1546442319-20461-1-git-send-email-firoz.khan@linaro.org> <1546442319-20461-3-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1546442319-20461-3-git-send-email-firoz.khan@linaro.org> From: Geert Uytterhoeven Date: Thu, 3 Jan 2019 12:43:13 +0100 Message-ID: Subject: Re: [PATCH 2/2] m68k: generate uapi header and syscall table header files To: Firoz Khan Cc: linux-m68k , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , Linux-Arch , Arnd Bergmann , Deepa Dinamani , marcin.juszkiewicz@linaro.org 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 Firoz, Thanks for your patch! On Wed, Jan 2, 2019 at 4:19 PM Firoz Khan wrote: > Subject: m68k: generate uapi header and syscall table header files > > Unified system call table generation script must be run to > generate unistd_32.h and syscall_table.h files. This patch > will have changes which will invokes the script. > > This patch will generate unistd_32.h and syscall_table.h > files by the syscall table generation script invoked by > m68k/Makefile and the generated files against the removed > files must be identical. > > The generated uapi header file will be included in uapi/- > asm/unistd.h and generated system call table header file > will be included by kernel/syscalltable.S file. This doesn't really describe what this patch is doing. This patch switches m68k over to use the common scripts for system call header file generation. > Signed-off-by: Firoz Khan > --- > arch/m68k/kernel/syscalls/Makefile | 11 ++++++++-- > arch/m68k/kernel/syscalls/syscallhdr.sh | 36 --------------------------------- > arch/m68k/kernel/syscalls/syscalltbl.sh | 32 ----------------------------- > 3 files changed, 9 insertions(+), 70 deletions(-) > delete mode 100644 arch/m68k/kernel/syscalls/syscallhdr.sh > delete mode 100644 arch/m68k/kernel/syscalls/syscalltbl.sh > > diff --git a/arch/m68k/kernel/syscalls/Makefile b/arch/m68k/kernel/syscalls/Makefile > index 659faef..75c7421 100644 > --- a/arch/m68k/kernel/syscalls/Makefile > +++ b/arch/m68k/kernel/syscalls/Makefile > @@ -6,8 +6,9 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \ > $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') > > syscall := $(srctree)/$(src)/syscall.tbl > -syshdr := $(srctree)/$(src)/syscallhdr.sh > -systbl := $(srctree)/$(src)/syscalltbl.sh > +syshdr := $(srctree)/scripts/syscallhdr.sh > +sysnr := $(srctree)/scripts/syscallnr.sh What's the purpose of adding sysnr? > +systbl := $(srctree)/scripts/syscalltbl.sh > > quiet_cmd_syshdr = SYSHDR $@ > cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \ > @@ -15,6 +16,12 @@ quiet_cmd_syshdr = SYSHDR $@ > '$(syshdr_pfx_$(basetarget))' \ > '$(syshdr_offset_$(basetarget))' > > +quiet_cmd_sysnr = SYSNR $@ > + cmd_sysnr = $(CONFIG_SHELL) '$(sysnr)' '$<' '$@' \ > + '$(sysnr_abis_$(basetarget))' \ > + '$(sysnr_pfx_$(basetarget))' \ > + '$(sysnr_offset_$(basetarget))' > + What's the purpose of adding this build rule, which is unused? The patch works fine though. I assume the common build rules will be moved to a common place later? 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