Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2020163lqp; Tue, 16 Apr 2024 05:21:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6QSzsmbwFbQysrAqvkqeci3o2QbZDaaxr2qKMsxZe4fcJpXP2HZD2GHBH3vrFj2CG02gFsNyK/dt5ORcE5kVlGWUlTtjUJTx7o7H8Yw== X-Google-Smtp-Source: AGHT+IFeNdPmn2vzCR3+nU5E5Z4VoZD14W54QQB/EadpwfExP8erqseAUuwTAC7xLhQyNs34C+JV X-Received: by 2002:a05:6870:a98f:b0:221:8b50:f1a0 with SMTP id ep15-20020a056870a98f00b002218b50f1a0mr15282728oab.19.1713270069048; Tue, 16 Apr 2024 05:21:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713270069; cv=pass; d=google.com; s=arc-20160816; b=GGxevwKPtHR09pxKBcu+2GRurDnO8X/RFvVQUSX+62YARXXrAs11wuGcMbdad6EZYc 70eaWhw08Z7JztHGX1c0T47ayR1vDr0L9XXYf0wp83g+T+PhU47plDZ+V03IdbzR7pDu D/p+p7CZXXOvSc5Zr7o7MvP5JFpvNYVcYJ4X4BN4oso/DAC/1PE29Fwys6JfPgY4+/k9 QQAk3Stc+ZO16ASAFUksGa4LVDZWZCFOoFPRqoqyjasCJ+oqGAA16omgQueQOyJICZPJ WIfk6pdBgO3F1EBtAag8CMhh4Nw+pc6D4YiVt7xLRJd95QtvFsAkvmle7Eu2idh7l1qM CNWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tTpY/Wr5VD1EkFfEREbXgBpk6TtY7LOKDC1hNGt0+Sc=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=0n+Q2k2lbuK5j5rGbI/bn4imIrr26j7cTYlSEhql54XehXuBVfQAGAaR/gOUZOftSm Nl563PuOaLGH3XCwZALkKzvu8/BmDexxwov45t0HcshQ6qIuVcwiTQt4hfXYL8xR5pKl pq919KAvOkOvCjyNTm8W0LstaAkn6ReA8DJF3PdBxqSK1tLWSyAey1eshLu2CssX9VAl Qxeo7AkD3Ze5dpPYfH8odYENwbbj94tBK7O6I16njquOwsdWu1l7ofvguSfMuIZByX7o m7KuAKLQx3XGkGLCTM4nB+x3DCr7HqcVW6kaIkv/+cDCU6ZGkQQwjHVEtdAqrrxskv2a Sjzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U1GAN6hM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146777-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146777-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s13-20020a63dc0d000000b005cec8ea155bsi9378456pgg.842.2024.04.16.05.21.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 05:21:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146777-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U1GAN6hM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146777-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146777-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B29E7281C7A for ; Tue, 16 Apr 2024 12:21:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 103B312BF3E; Tue, 16 Apr 2024 12:19:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U1GAN6hM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36B0612D1EF; Tue, 16 Apr 2024 12:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713269960; cv=none; b=aEDdX51Ls8VT46n1Qw3ZOq1B3JF63oUG/O1LlFjTFMo9zYZxPrkI5xYtQGVIIxKD9UoZZ1JMk1XVmPIFMN1OCrH6XdGQ1z5lWMQhZQwfDZUIEKj/NidE63+aTz/USdaLYmkQ9oC9pFW7/EcbFvG+rG9f2Uxnjk032Em6G5tGzYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713269960; c=relaxed/simple; bh=MrxCcrNkQQraaKDvGJ3l7Z0HfhQ1ri7vp/0R8pBVwGc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XEKQjaepLAwoXLuZ8yDQ3mfrhHFoYl3sKA9ZIg9S7alrmlJ9hri02qqEO1qDziav08M7uwQX35W/ThDicdjxK4xIJEMQmxgeVFgjXLvn+T/co4bK7dpsY4ikWbJ0GApBng1JnLQjHXAabioGJnBlU5G+YjQa1AVzOe9xcJIMn+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=U1GAN6hM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCFA4C113CE; Tue, 16 Apr 2024 12:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713269959; bh=MrxCcrNkQQraaKDvGJ3l7Z0HfhQ1ri7vp/0R8pBVwGc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U1GAN6hMu5jV6MoUkKJ+TwwKMWFsbyOHH77Qv1CAR0n3xQArLzeN/sAnYQNaqYhs/ YXkgyVIl2or2DcVGZjEVoLuFlUgzSR+zFJldTdHO6wGaDA2uOeCOCV1FexH0MA+Kyk QPzPxVyi3ZX7gzkfNJWTpFN/qlmkMEoajrgV21Hhf7xZepHZdv+K7C2MK6pb3o+ihZ EkFyQkDC8YtQI7xZ2PdgY4VxnVO3moem3Al8GUZoao4Ulp0mhyC0AyD9QaeHmhqkBf Bpp0ePawCXIS8/cLnGg9fWZ1sIdQ4wG5kIwmu81KhX/tsDBmONexZpw/g5hZUDs5k0 T1mq8D2f+6jMw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 2/4] Makefile: remove some unnecessary header include paths Date: Tue, 16 Apr 2024 21:18:36 +0900 Message-Id: <20240416121838.95427-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240416121838.95427-1-masahiroy@kernel.org> References: <20240416121838.95427-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The include directive with the double-quote form, #include "...", first searches for the specified header in the directory containing the source file. If all local headers are included using the double-quote form instead of the angle bracket form, there is no need to add the local directory to the header search path. drivers/gpu/drm/imagination and drivers/net/ethernet/aquantia/atlantic use only the double-quote form for including the local headers, and there are no generated sources or headers in their directories. Hence, the local header search path is unneeded. The same applies to arch/loongarch/kvm/ because TRACE_INCLUDE_PATH is relative to include/trace/. I guess there exist more Makefiles with unnecessary header inclusion paths (and more cases where it is possible to delete the header search path by replacing #include <...> with #include "..."), but I do not have an easy way to detect it. These are unneeded inclusion paths that I happened to find. Signed-off-by: Masahiro Yamada --- arch/loongarch/kvm/Makefile | 2 -- drivers/gpu/drm/imagination/Makefile | 2 -- drivers/net/ethernet/aquantia/atlantic/Makefile | 2 -- 3 files changed, 6 deletions(-) diff --git a/arch/loongarch/kvm/Makefile b/arch/loongarch/kvm/Makefile index 244467d7792a..7a0108a721c1 100644 --- a/arch/loongarch/kvm/Makefile +++ b/arch/loongarch/kvm/Makefile @@ -3,8 +3,6 @@ # Makefile for LoongArch KVM support # -ccflags-y += -I $(srctree)/$(src) - include $(srctree)/virt/kvm/Makefile.kvm obj-$(CONFIG_KVM) += kvm.o diff --git a/drivers/gpu/drm/imagination/Makefile b/drivers/gpu/drm/imagination/Makefile index ec6db8e9b403..3d9d4d40fb80 100644 --- a/drivers/gpu/drm/imagination/Makefile +++ b/drivers/gpu/drm/imagination/Makefile @@ -1,8 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only OR MIT # Copyright (c) 2023 Imagination Technologies Ltd. -subdir-ccflags-y := -I$(srctree)/$(src) - powervr-y := \ pvr_ccb.o \ pvr_cccb.o \ diff --git a/drivers/net/ethernet/aquantia/atlantic/Makefile b/drivers/net/ethernet/aquantia/atlantic/Makefile index 8ebcc68e807f..268a055086c4 100644 --- a/drivers/net/ethernet/aquantia/atlantic/Makefile +++ b/drivers/net/ethernet/aquantia/atlantic/Makefile @@ -8,8 +8,6 @@ obj-$(CONFIG_AQTION) += atlantic.o -ccflags-y += -I$(srctree)/$(src) - atlantic-objs := aq_main.o \ aq_nic.o \ aq_pci_func.o \ -- 2.40.1