Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp901586imu; Wed, 9 Jan 2019 08:14:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN7+XyqH6hTqsAUx+qSRd0R06olzXwcVNMONXXmOsueqr7UctQWMV1Xr0XpCYwsyRCvWt0r7 X-Received: by 2002:a17:902:7005:: with SMTP id y5mr6660395plk.7.1547050496515; Wed, 09 Jan 2019 08:14:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547050496; cv=none; d=google.com; s=arc-20160816; b=CdPvIojLg2jsSHAFiykgse3WEQPrCERygUcyQXMEISEH8GEH+nKWnSabce6QfPx3b8 GtgZSJSsq6XkQGxDArxSVQX8iUi504eUjTnQDLjG+tH7zNL7+ez4s8JzmAGn6cXezrdy y58XairycEdzHjK89iHczJzePm+MVMctbP4u+0+jlWnr8RJJRrTuSOdLFn3uCh0iRaVJ kz5hsmMjFZnV38SoozSLbLq/ZsDDZmwbq8xQuPvSG0TrOCDtj+QMMXknGMk59D1nwTl+ rfC78KQLbsIhKO8XZtexFtDgq0Cb2H+Lx/MIMs7cxB78CYU3Djs0PhS/CjMy33X2U9Gv XJ/A== 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:dkim-filter; bh=CMBcGzQwmWu36K540QIdLA4arIn9ojOmjuSY185U9iU=; b=kuIXzx1KV4X1jXz5G3XSELhG6UZCY8+3v8mJ331tY1AjitSFoKDbvS0kXks6/vhzZw vQ/F7QEg07Q2Y6pdz8RqowNWGgUpvz3eOGAz2pQOv1My+9sN1LSCjo7GQdBsLMAG34z4 /wLOv4+QThFftz1TRAKQSVg1cGfe2FaXYv53+rz0y1V0bCwBDGJOdCsuXm40NWGGepM6 Ygm7hyW21D0k3S9SIb/hQxazdI6o2+ET4u+gsSBzoxVBX6JLhxycRb2GGFoy4TjiVBNF SsEVboIn7PxWaIGwk+p/q3MnxamLVRgHA5BKtSLckyQcZa8D39sumrzRr1TnSQLsO/nc sbiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CcynShqy; 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 i190si41309161pfc.116.2019.01.09.08.14.40; Wed, 09 Jan 2019 08:14:56 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CcynShqy; 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 S1732179AbfAIPQ1 (ORCPT + 99 others); Wed, 9 Jan 2019 10:16:27 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:19999 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730725AbfAIPQ1 (ORCPT ); Wed, 9 Jan 2019 10:16:27 -0500 Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x09FGHYc032054 for ; Thu, 10 Jan 2019 00:16:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x09FGHYc032054 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1547046978; bh=CMBcGzQwmWu36K540QIdLA4arIn9ojOmjuSY185U9iU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CcynShqyfBbcXvGHzR1MyIU/c//1TLk71mFq2JONBRu7riNX/kwmQVV4n/eE5aoao HIHPyaUz6KSwQPHs/GWqibqlYy3lv3rX0BDqXcz+ebbXmegQ6E763JsZF7QUM5JfHF xgcVCWrr15slJuL5HBq8oQ9RWRg7vm4YTOR0dFVYcerKpwAqbSPcoeWNwTr8ObMYyv MfzT+nruVRbG8POcz6b0Th8s3om2yC8ohcfBzRBvcDbNbLp9I/4rG3m0sBy2mEOAVJ xRm+hizmZHAN/++pRAW2o8Ck7+N28LGaTcMwWqZkMYdSU9liKGJFzr+BfL1+coPVy0 ZgDpnLRncAa6Q== X-Nifty-SrcIP: [209.85.217.46] Received: by mail-vs1-f46.google.com with SMTP id v205so4956458vsc.3 for ; Wed, 09 Jan 2019 07:16:17 -0800 (PST) X-Gm-Message-State: AJcUukftHxFaoTL6lTO/rqbBhDriBX9Lfn9WMcH9g3cfQB/OSkVvrtYK JCI4Hyqak61bWQG8IKHhXtXiD4HlKpWivg/wYNI= X-Received: by 2002:a67:5f03:: with SMTP id t3mr2644042vsb.155.1547046976689; Wed, 09 Jan 2019 07:16:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Thu, 10 Jan 2019 00:15:40 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: remove redundant kernel-space generic-y To: Andreas Schwab Cc: Palmer Dabbelt , Albert Ou , alankao@andestech.com, Linux Kernel Mailing List , Geert Uytterhoeven , Deepa Dinamani , linux-riscv@lists.infradead.org, Jim Wilson 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 Thu, Jan 10, 2019 at 12:01 AM Andreas Schwab wrote: > > On Jan 08 2019, Palmer Dabbelt wrote: > > > On Fri, 04 Jan 2019 07:03:20 PST (-0800), yamada.masahiro@socionext.com wrote: > >> On Fri, Jan 4, 2019 at 11:16 AM Palmer Dabbelt wrote: > >>> > >>> On Sun, 16 Dec 2018 06:11:11 PST (-0800), yamada.masahiro@socionext.com wrote: > >>> > This commit removes redundant generic-y defines in > >>> > arch/riscv/include/asm/Kbuild. > >>> > > >>> > [1] It is redundant to define the same generic-y in both > >>> > arch/$(ARCH)/include/asm/Kbuild and > >>> > arch/$(ARCH)/include/uapi/asm/Kbuild. > >>> > > >>> > Remove the following generic-y: > >>> > > >>> > errno.h > >>> > fcntl.h > >>> > ioctl.h > >>> > ioctls.h > >>> > ipcbuf.h > >>> > mman.h > >>> > msgbuf.h > >>> > param.h > >>> > poll.h > >>> > posix_types.h > >>> > resource.h > >>> > sembuf.h > >>> > setup.h > >>> > shmbuf.h > >>> > signal.h > >>> > socket.h > >>> > sockios.h > >>> > stat.h > >>> > statfs.h > >>> > swab.h > >>> > termbits.h > >>> > termios.h > >>> > types.h > >>> > > >>> > [2] It is redundant to define generic-y when arch-specific > >>> > implementation exists in arch/$(ARCH)/include/asm/*.h > >>> > > >>> > Remove the following generic-y: > >>> > > >>> > cacheflush.h > >>> > dma-mapping.h > >>> > module.h > >>> > > >>> > Signed-off-by: Masahiro Yamada > >>> > --- > >>> > > >>> > arch/riscv/include/asm/Kbuild | 26 -------------------------- > >>> > 1 file changed, 26 deletions(-) > >>> > > >>> > diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild > >>> > index 6a646d9..f7068f3 100644 > >>> > --- a/arch/riscv/include/asm/Kbuild > >>> > +++ b/arch/riscv/include/asm/Kbuild > >>> > @@ -1,5 +1,4 @@ > >>> > generic-y += bugs.h > >>> > -generic-y += cacheflush.h > >>> > generic-y += checksum.h > >>> > generic-y += compat.h > >>> > generic-y += cputime.h > >>> > @@ -7,18 +6,12 @@ generic-y += device.h > >>> > generic-y += div64.h > >>> > generic-y += dma.h > >>> > generic-y += dma-contiguous.h > >>> > -generic-y += dma-mapping.h > >>> > generic-y += emergency-restart.h > >>> > -generic-y += errno.h > >>> > generic-y += exec.h > >>> > generic-y += fb.h > >>> > -generic-y += fcntl.h > >>> > generic-y += hardirq.h > >>> > generic-y += hash.h > >>> > generic-y += hw_irq.h > >>> > -generic-y += ioctl.h > >>> > -generic-y += ioctls.h > >>> > -generic-y += ipcbuf.h > >>> > generic-y += irq_regs.h > >>> > generic-y += irq_work.h > >>> > generic-y += kdebug.h > >>> > @@ -27,34 +20,15 @@ generic-y += kvm_para.h > >>> > generic-y += local.h > >>> > generic-y += local64.h > >>> > generic-y += mm-arch-hooks.h > >>> > -generic-y += mman.h > >>> > -generic-y += module.h > >>> > -generic-y += msgbuf.h > >>> > generic-y += mutex.h > >>> > -generic-y += param.h > >>> > generic-y += percpu.h > >>> > -generic-y += poll.h > >>> > -generic-y += posix_types.h > >>> > generic-y += preempt.h > >>> > -generic-y += resource.h > >>> > generic-y += scatterlist.h > >>> > generic-y += sections.h > >>> > -generic-y += sembuf.h > >>> > generic-y += serial.h > >>> > -generic-y += setup.h > >>> > -generic-y += shmbuf.h > >>> > generic-y += shmparam.h > >>> > -generic-y += signal.h > >>> > -generic-y += socket.h > >>> > -generic-y += sockios.h > >>> > -generic-y += stat.h > >>> > -generic-y += statfs.h > >>> > -generic-y += swab.h > >>> > -generic-y += termbits.h > >>> > -generic-y += termios.h > >>> > generic-y += topology.h > >>> > generic-y += trace_clock.h > >>> > -generic-y += types.h > >>> > generic-y += unaligned.h > >>> > generic-y += user.h > >>> > generic-y += vga.h > >>> > >>> Thanks. These just sort of collected there because I hadn't trimmed them. Is > >>> there a script that checks these? > >> > >> > >> No script is available for now, but > >> I'd like to turn on warnings to catch some cases: > >> https://patchwork.kernel.org/patch/10746823/ > >> > >> > >> BTW, can I apply this to my tree > >> along with other cleanups? > > > > Acked-by: Palmer Dabbelt > > arch/riscv/include/asm/dma-mapping.h no longer exists. > > In file included from ./include/linux/skbuff.h:34, > from ./include/net/net_namespace.h:36, > from ./include/linux/inet.h:46, > from ./include/linux/sunrpc/msg_prot.h:204, > from ./include/linux/sunrpc/auth.h:16, > from ./include/linux/nfs_fs.h:31, > from init/do_mounts.c:22: > ./include/linux/dma-mapping.h:261:10: fatal error: asm/dma-mapping.h: No such file or directory > #include > ^~~~~~~~~~~~~~~~~~~ > compilation terminated. > make[1]: *** [scripts/Makefile.build:277: init/do_mounts.o] Error 1 Looks like you tested v1, which I sent before c5cd037d1c8044fbd131c57822a67a1576eb16e9 was applied. I picked up v2: https://patchwork.kernel.org/patch/10746819/ Now, it is already in Linus tree. 8c4fa8b8d48326353afaf6934edd5f1cc49ee90b -- Best Regards Masahiro Yamada