From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 70D1E1EC00B for ; Tue, 7 Jan 2025 10:47:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736246851; cv=none; b=TcguF1N822SychYKu2dhwLEKVIRT+qHRWd8hocEAC1TYbCKu+GqZAU03A+jyfTSOtYzvDmnDHwqx7z+36hazOyK1TcMIKrCv66kWCkktbV6Ksb5JcZVHNE++lH2oVit0L2oMQ35uMaILiUmELCD1HAeUu7vNoo+hIBa2Nx9JAeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736246851; c=relaxed/simple; bh=bw/0R1Jy3+vGeJUbpaEVNX7n6yaTw52+eubQTYU+wL8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a05XTw7R/BgtGUj6lA0TyHQOIyCtgeddrXRCdZ+UhrmSyCW4rpHundnXl4DyvrY7GJSfGdwrd8Rsnb2Y/Rp8MaamkEfHjvceZl8nOOlLvMxELR2Jq2NdbNA0aW6zJ+u3+5S8Aktd+MzG7fOoX9pi9XtyLJg0eSOaudg6zUMMMiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=O18xOkxZ; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="O18xOkxZ" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1736246844; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=06MPwFnb5XBLTv/ytIls9yj7Vww99l3RVex/5sshiQU=; b=O18xOkxZV21GKEEapCPlYCB9h2LLq2aeqQpyKO75RbXihLLPPHfE/bo4vTmsJzbdvxSJXV QyuR0O+6QDliuVyGtj8pfF2IUOhLwqXWaeb48073Q58+kYtUajAUaFaUc+/kH8X+VB8Y7e KJbV/9XPEBYwi1uwlS1ncBJM1m7fOxE= From: Thorsten Blum To: Russell King , "Mike Rapoport (Microsoft)" , David Hildenbrand , Thorsten Blum , Andrew Morton Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] arm/pgtable: Remove duplicate included header file Date: Tue, 7 Jan 2025 11:47:03 +0100 Message-ID: <20250107104704.3062-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT The header file asm-generic/pgtable-nopud.h is included whether CONFIG_MMU is defined or not. Include it only once before the #ifndef/#else/#endif preprocessor directives and remove the following make includecheck warning: asm-generic/pgtable-nopud.h is included more than once Reviewed-by: Mike Rapoport (Microsoft) Signed-off-by: Thorsten Blum --- arch/arm/include/asm/pgtable.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index be91e376df79..6b986ef6042f 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -19,14 +19,13 @@ extern struct page *empty_zero_page; #define ZERO_PAGE(vaddr) (empty_zero_page) #endif -#ifndef CONFIG_MMU - #include + +#ifndef CONFIG_MMU #include #else -#include #include #include -- 2.47.1