Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2992204ybt; Mon, 29 Jun 2020 12:18:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6HWgLMW2xvTiIWQfraboWdUIA2j6NAa6Do01w3aYY4DVkqd+2jaNchxRnjpN0rDGJKngk X-Received: by 2002:aa7:da06:: with SMTP id r6mr7764729eds.189.1593458321148; Mon, 29 Jun 2020 12:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593458321; cv=none; d=google.com; s=arc-20160816; b=t7SkyuMMRQWnJ9QJyX0jK0wRFNQz1EhzhM0aN5vD5axuqNmJkTM9RRnkqkfEszGWB7 vravcF0lE21yZf6vNoCa5SgCMlhcQm9bwjlWwl1f78o1W145cyLDOUjNDQyl3P2XrK/q lqDQsGJaEDaE7o8cLL92TBcdCSQTqfz59Wu93kjLuKcXAoOgSAvxyiAtgvlJnKO40t/S 82Z5wfn5Dxb1H/89TezIHkHf3MyBHuLlSIjMQv9n4oAGS1xSJOCWHci7Kkkj4/FT+LCZ HMlAwBuXQIGMiEG/BvA1G+kENpwDqO39W5ApH8NOtSqLtQJps0O03/xwNZgwTvdrjTxk NwZg== 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=18DuSBZeLijFT5byeb07kqFnxpD8Og5k3o71uVKMsdg=; b=sqHy+B3mFSqG/rg2q0m/+iZso6N6ClT+pvCR3SuQyQ4iv6dc7ADPYXTlfEeypuxuZx BZ5ashNrfiEBMZIyQc3JZ21asnQ0ehqo+89SeMeDtVwZkW1OPxGvLeW6bcgHmXmq9Pv/ 5EuUyRWJVCmqPTYbd6iz3DqMlS5IAcihZIUFgEi+uKZJ2GCEpp5GIMKVIYhhqHVzCopl zTK9zva1RltB17FawfkcWJNScen1ODl9kxWaaFi1ogilmeFaIfRip3H6+XPzEUEtj3++ fr9dM7y55Fzx43hDyJH3Ic+lpdW5j6d7r1lr4QUULh6JgEnEiw79UlwWhhieAH3jDrcw iXcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ef10si295965ejb.519.2020.06.29.12.18.17; Mon, 29 Jun 2020 12:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731986AbgF2TSN (ORCPT + 99 others); Mon, 29 Jun 2020 15:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731886AbgF2TRn (ORCPT ); Mon, 29 Jun 2020 15:17:43 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69549C03079F; Mon, 29 Jun 2020 08:41:55 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id d4so15937212otk.2; Mon, 29 Jun 2020 08:41:55 -0700 (PDT) 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=18DuSBZeLijFT5byeb07kqFnxpD8Og5k3o71uVKMsdg=; b=pdqY7+o2ViXtdwzpRg7V0spv+w3RMUTM8pq1mA6PmxJQxaN+pwXkRL4gutZbEnUAKk 7oZWR0fNzNN95BqoUgj38z60RkoZbqe4xAnV7jSf0z2PY1Vs68uxoB44TPGrQzkJO7a0 Vyua6rOkYqe3j2a+SNQtf1aAGahjOQ6olRQRMR+QKVRHTqTrB26RJMcrE0bQrdpP0kxb GXkekPVusG/8EahYhVxY3eQGoN00/OYTFsMlyutG2FEKFwqzG7+e2D6I98d2I2Ajzi8X 2phUh4VE9sJpVENYIDLD7jo8f7GkC33+xzVej1zgc1PQXMy/mwSU4BfTjAdKNWzeDASN aDpQ== X-Gm-Message-State: AOAM532mh0D7t76EfolXynbkKGtSx7oXy9QJfDi+g7PO2w/qt/ymCT0a 6P7ZpiPFXLDHyBHypymp52y56QVZgAapKfX/hxQ= X-Received: by 2002:a05:6830:1451:: with SMTP id w17mr1238896otp.250.1593445314725; Mon, 29 Jun 2020 08:41:54 -0700 (PDT) MIME-Version: 1.0 References: <20200627143453.31835-1-rppt@kernel.org> <20200627143453.31835-2-rppt@kernel.org> In-Reply-To: <20200627143453.31835-2-rppt@kernel.org> From: Geert Uytterhoeven Date: Mon, 29 Jun 2020 17:41:43 +0200 Message-ID: Subject: Re: [PATCH 1/8] mm: remove unneeded includes of To: Mike Rapoport Cc: Linux Kernel Mailing List , Abdul Haleem , Andrew Morton , Andy Lutomirski , Arnd Bergmann , Christophe Leroy , Joerg Roedel , Max Filippov , Mike Rapoport , Peter Zijlstra , Satheesh Rajendran , Stafford Horne , Stephen Rothwell , Steven Rostedt , alpha , Linux-Arch , Linux ARM , linux-csky@vger.kernel.org, "open list:QUALCOMM HEXAGON..." , "linux-ia64@vger.kernel.org" , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , Parisc List , linux-riscv , linux-s390 , Linux-sh list , arcml , linux-um , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , Openrisc , sparclinux 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 Sat, Jun 27, 2020 at 4:35 PM Mike Rapoport wrote: > From: Mike Rapoport > > In the most cases header is required only for allocations > of page table memory. Most of the .c files that include that header do not > use symbols declared in and do not require that header. > > As for the other header files that used to include , it is > possible to move that include into the .c file that actually uses symbols > from and drop the include from the header file. > > The process was somewhat automated using > > sed -i -E '/[<"]asm\/pgalloc\.h/d' \ > $(grep -L -w -f /tmp/xx \ > $(git grep -E -l '[<"]asm/pgalloc\.h')) > > where /tmp/xx contains all the symbols defined in > arch/*/include/asm/pgalloc.h. > > Signed-off-by: Mike Rapoport For the m68k part: Acked-by: Geert Uytterhoeven 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