From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 478EC521892 for ; Thu, 1 Oct 2026 15:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790867458; cv=none; b=TRykoyotY/9mDk4xHQ0iMijiNYyG+qtt2WqfvTKIJ2n4sh+aUiLL9I4wYsqXm7nzel+Qwp2Ofasb0XkLmHvF5t+DwUkXL6m4AfMhuqNW2J1ed7dIa0E/YV5I2c10r0dj6kpWET26Pr8Te2aIbDmdRANRdFbLb5/h40YAI+2SafY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790867458; c=relaxed/simple; bh=v/g5V0DvX7DbXaWcxFQ+1tPtcUqZhm9i5DBwg6+5XvQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i1oHffcUlf1VJDqXhCcucVGwDzSCUYTt6jkSTMBzARbvRD4ObNi13d/MPDuvU6LKoHGxcK/wSZ4shH+j2rE/EPapbgCsxAXDYrCr/ng1MOoVxaKamjCyKYnM9+en4UJQIWGS5plMs3FsH969isJhD7fooy0whvdefYnzExMCCHw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=AiP95NAI; arc=none smtp.client-ip=74.125.225.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="AiP95NAI" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e6c0fce17so36550815e9.1 for ; Thu, 01 Oct 2026 08:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1790867454; x=1791472254; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uEqFwwmiLgxzbUfdtxr/SjfsZs2IKekOzMd4LW1gk/0=; b=AiP95NAIGlVILCdx2fiDa96u9dnETu0eV6g2YlJVBoBtvumBMglaWOXWFSV84t6/kz BqOsphx4VuiYuLRPu99byiKeo8RE2xooIDYIHfbh86TZkkv/5UeVSnstEr8348Rz46hZ fve2SenUs/pMePKaFO4+N1wd1ixb8hEaZN5poOv/ul25F2BJ8HpDB1gllxiD829mumCo KwMqRHG1dPu5KZz2QJQ8Nw84T5h2jVBTdjFjfgHVSIpynmep6z56Mo6OL//CvuK2cJIR lzjG/fg06VwwJIAAujnM6PMf0N+p3DPRGdZnLrjVb5AzeoHbOF6WDB6PB/4aecr4uK+l Ck5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790867454; x=1791472254; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uEqFwwmiLgxzbUfdtxr/SjfsZs2IKekOzMd4LW1gk/0=; b=sCAm7Xnsq5IbNhIiubcTYMw5qiBQrbB8418sU48NcHerwOCbYLZ16V3xfOQtgORTjY P5k1sRCCfa24nqR9DQ+Wq4OrsZQWwrTQXKEKvScF17dgbQxs5pyaivcxXNxSTcSjwi5K olFx5ikqyqdcZlRMA6Vd+QSEz7psdrOdtBLvpE98ZXz8QW7tt/EHasnrJyy6XJePKof7 DbVPFPGaiWo8H09gI/leYHDby7xRmudsZyff68aW8qH5NAIDvHDRwT/VEidse6SyicFt b7WSHbm7qA4q71SRoxriKSaD6nxQOLzxMuHL5NE5VEM7KwZTS14X6tlUi8JlUBocnUDz tn1A== X-Forwarded-Encrypted: i=1; AKwUvBwX8CiyUJL6Vwxy59fZoGn61a2P3cGVYlzYo/HTr7oEqUx5imJwTmHWgtfg2dv3OHrsw3Jpq++YdZ7QzlM=@vger.kernel.org X-Gm-Message-State: AFuF++mLRh0+af80PVyZBTizGPmOslKnP543rEhXjm58viQbhty9DukZ Si6VaUWuEpCzqqlsVNx0g4hDWMT5PVxqTAsLsYiAOhDM9s+By/Du7zbAlmXdPYGtwjE= X-Gm-Gg: AYBFou3I1dRWrVqmQ1NWMtgksl0VzVEvBh+nqa6Zv4LHAe840cQwHOJ2BttDX0Uvfk5 iEQ78+E5tQinPW2ifkkNma3lirzhpXYPSSkHeqr74X8644oa8LG4CRLI7ZiIo7+Wkk9TORvKo7X 0KR4WmFT7SxzBXqb//2A2KSaLXDtHlkSRVH2s+uEqzr3yIX/say+OYJxNBava2/PIwFuoiuex51 XLg6U9uNDt3lv9ROTZ9gTtaYrGoWeuFvFaSvUXJ40sj2dLj9QHXSmTFiN1EzYzjhq4DeR+MjwqC P54/OFZGTc0qeaojChVx6R9VvXOLh/mvHFcnBRaruyH47ZkT8O8u/BTrwBz8qLdjyo5xtY/+g5I 7I+E6UyVn1VeBNaKkQmGsXCo1OjCf56NfdRuKze9Mjl7z5cXZMlyfvFDllwFHXpLgIa6/UobCUA 4B+TsMSS47ExDq7smYAwepyFJgA+uJh+vryApE0jtxbQRJQL547CIkicOpAA7d8gFsuOWVNjiOf n8HJjbUNoo+79igfd2WNQhWjWSMiuqArM4= X-Received: by 2002:a05:600d:8499:20b0:4a0:1e68:d27d with SMTP id 5b1f17b1804b1-4a01e68d354mr47259215e9.9.1790867454233; Thu, 01 Oct 2026 08:10:54 -0700 (PDT) Received: from ?IPV6:2a07:de40:8100:0:89a9:fd0e:583d:4a53? ([2001:af0:8000:1409:193:86:92:181]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48b06a2fc98sm6247090f8f.35.2026.10.01.08.10.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2026 08:10:51 -0700 (PDT) Message-ID: Date: Thu, 1 Oct 2026 17:10:50 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/6] Remove the error-injection.h include from linux/module.h To: petr.pavlu@suse.com Cc: Jens Axboe , Jakub Kicinski , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , Matthew Brost , =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , Simon Horman , David Airlie , Simona Vetter , Francois Dugast , Luis Chamberlain , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , linux-block@vger.kernel.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260911-module-include-error_injection-v1-0-5da895d8c84d@suse.com> Content-Language: en-US From: Petr Pavlu In-Reply-To: <20260911-module-include-error_injection-v1-0-5da895d8c84d@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/11/26 5:04 PM, Petr Pavlu wrote: > linux/module.h appears in roughly 15k #include directives across the > kernel. This makes it a "hot" header, so it should avoid pulling in > unnecessary definitions. > > The header currently includes linux/error-injection.h to obtain the > definition of `struct error_injection_entry`. However, this is unnecessary > because the type is only referenced in the file as a pointer, for which an > incomplete type is sufficient. > > Add explicit includes of linux/error-injection.h to files that use the > ALLOW_ERROR_INJECTION() macro and currently rely on it being provided > indirectly via linux/module.h. Then remove the linux/error-injection.h > include from linux/module.h. > > The first five patches can go through their respective trees if preferred. > The final patch depends on the preceding cleanups. I've queued the series on modules-next for 7.4-rc1. -- Thanks, Petr