Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7308879imm; Tue, 24 Jul 2018 11:49:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexktykTa9A0DPnrmVxviGy9kkvhVVhGTcoXZ8fzBr0rkVnQUoYuYXK1qQPWvLxp6vRJYmP X-Received: by 2002:a63:9311:: with SMTP id b17-v6mr17467570pge.261.1532458178913; Tue, 24 Jul 2018 11:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532458178; cv=none; d=google.com; s=arc-20160816; b=fE7anQib3CVURpd3gBsuDTlyqAvKtp+bo3ADQ65g6LbPTAp17a6aM+OO7SqGQoAi/l /j3MeglhzAowkvkASZqlnGtY59oUPwGs1um7yi+IwYNCEda5wWstWXJqtTKZPxift3jC ai6oB+xlTeChvtj/qnbH0Ielq0wbnKNMEVOrS7wNA/iemOFaqUnHNOoZy3Z42B61lHuM fwLMhE4fYExd1siPWm17cMFCXjr1VlcddDbI3tG2QUEIzqKzMvHrZrf16LTt2uvvMtgd EejpSRZz0GKme4mtXyNqkwPwTZDOnsVEN7Vd+li9fPlqb7Gts26auqhMLB+ADKZNPgv7 3qyQ== 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 :arc-authentication-results; bh=VNEPv+6hncH7eYWONLuf0yzm7p6PjXrCq11j3wRt4l8=; b=j4JciA2QlFljhLXZGEoEP/jDp6SBlEUIr/bjfW/sw8VXZzDxAbwtlksNn0pD4A5J4A ENnkSxNFfceGkDzDkLt0dbq1KYp/c27/pauIn8Sr5ISRqJMmr3qKeKZjSDfmyAoTHa3e 5PpV3tls2roA4ktwvZ2dFC8NHu7DbC42ReRWGjJVnjD7NbS71QJO33mvMAJ4M1JWgmvN Ut/ZJkXPFRjbrbAOukaYxT9/RTEUELF1EirXzAqtk1BKDt4JoonVY9ELqIuCMjk+MTES 5mPW/wCQHHTLlI9UK2/1YDdCIRnYHnaIN8cp79XNXTt/vQ2+cts0vjn7/4NJVMPdxzJe qwDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Y1vCcdZR; 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 l14-v6si11658524pgk.562.2018.07.24.11.49.24; Tue, 24 Jul 2018 11:49:38 -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=Y1vCcdZR; 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 S2388551AbeGXT4V (ORCPT + 99 others); Tue, 24 Jul 2018 15:56:21 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:46701 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388366AbeGXT4T (ORCPT ); Tue, 24 Jul 2018 15:56:19 -0400 Received: by mail-io0-f194.google.com with SMTP id i18-v6so4263806ioj.13; Tue, 24 Jul 2018 11:48:31 -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=VNEPv+6hncH7eYWONLuf0yzm7p6PjXrCq11j3wRt4l8=; b=Y1vCcdZRNAnPDQN0yOrwS5MKpM4nlMef96D1difZ7CAWnX0cZlN/HEO+BW1dtXmWch OVLz0y9kffSfJ5gGVEkyJj6iB6B+bFXSEJWna68gmbOcXE+RH63PDqvt0qF9YShlEpSA jQP+CdmHWWirAn9kF3/TbIWg18x5wcWjN2jX4= 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=VNEPv+6hncH7eYWONLuf0yzm7p6PjXrCq11j3wRt4l8=; b=USzXKoMKbP8rJyQfhUn9vNZj7LA3JqcCo+5Sp4wsK7S0NHHIjA42hq5KCDRWXIjzbE +EuNT8IWSKbbtsOD+PvnurEDpQy7wHwyIUcVNw6Ebj0SrTy3lCKxa3bDOYMOk14hm7IT Jy+63TlF2a4by/Z+gI6/G5DCv4RvtP7eUp/n/VuQfPWI2P0zrephoiIBACx5ofDqqIHk 7l4rdgd97c/MGJoCFpN1NXMOExITt5uzyoRc6Nry42o7T+vJgOAyKQz+E0S6CQvd25Bx dsbWxWtgfr/rjUwvBmuWaOgUyrku3GmYaXxHWXkzK82FSODmKQgVMtmhiUekgIzoOqjw bN8g== X-Gm-Message-State: AOUpUlGzR+MbHZ5KdSb1PBUA23Zxj4BbxwBM8Ct/++QUhYT19NkTiqgy Ew7/Ad1LcmrITHlRyi6ytAf1XUOXxMPImpu13CY= X-Received: by 2002:a6b:1502:: with SMTP id 2-v6mr15236918iov.203.1532458110780; Tue, 24 Jul 2018 11:48:30 -0700 (PDT) MIME-Version: 1.0 References: <1532381973-11856-1-git-send-email-linux@roeck-us.net> <20180724004110.37d0e5dc@coco.lan> <20180724153923.0f1b9f56@coco.lan> In-Reply-To: <20180724153923.0f1b9f56@coco.lan> From: Linus Torvalds Date: Tue, 24 Jul 2018 11:48:19 -0700 Message-ID: Subject: Re: [PATCH] media: staging: omap4iss: Include asm/cacheflush.h after generic includes To: mchehab+samsung@kernel.org Cc: Guenter Roeck , Laurent Pinchart , Mauro Carvalho Chehab , Greg Kroah-Hartman , Linux Media Mailing List , Staging subsystem List , Linux Kernel Mailing List , David Miller , Randy Dunlap 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, Jul 24, 2018 at 11:39 AM Mauro Carvalho Chehab wrote: > > Works for me. Do you intend to apply it directly? Yes, I took it and it should be pushed out. > Yeah, some time ago mailing lists got flooded with some janitorial's > patchset adding includes (some claiming to be needed on some archs or > under some random Kconfigs)... Compile-test ended by adding more such > stuff (for a good reason, IMHO). I wonder if are there a better way to > handle includes without slowing builds. It's a nightmare to do by hand, with all the different architectures having slightly different header file requirements. The scheduler people did it last year (roughly Feb-2017 timeframe), and it was painful and involved a lot of build testing. Basically some was split up into I wouldn't encourage people to do that again without some tooling to actually look at "what symbols might get defined by header file collection XYZ, what symbols might I need with any config option" kind of logic. But it would be lovely if somebody *could* do tooling like that. Just having something you can run on C files that says "these headers are completely unused under all possibly config options and architectures" might be interesting. Because right now, most people tend to just copy a big set of headers, whether they need it or not. And they almost never shrink, but new ones get added as people add uses. Linus