From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 2F3F44A5C59 for ; Thu, 1 Oct 2026 15:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790867458; cv=none; b=dFj71Qqa/UcGudAqQ/37pMd/gIXg1HJ8G3BJpSF+t2TC2HH3UAcCINIyY0HiuW4TobTuH/FUp8+7lAMgJWEaholvVUqyfR9ROXnf0U/I0LPcUgoOfwHzEeKK5JjObtdzivDsT44lM787v+nVhfVvpjKQiOiIOJEs3BMvImWLJJw= 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.140 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-f12.google.com with SMTP id 5b1f17b1804b1-4a006bb267eso25609665e9.0 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=vYkCviBsypd8HKIQzFDizTgMW8xHsNbRlt8lZN/88yylMYQn9+z1gz5aEI8rO7fQeC KiMpT8kQHmMI9KtMetihSdnr5Pu+RGG8ZutKD54hGXeOAArBqa4EoxAdsFjwi3Wd1mpr qkDgs1K+uwXqpWUBdgFVRyt74PI6/FCf24YNa3AFxafL18Lk8Pb33StX5pAN9jQI/bYa urYkyj6JcN5kLoKy8YVhDmin6yay+ymXwoGy74THt5bimX3hZy35ML9CQl2BsDh+lSnh Jm2ox2tq3Zf/RT3kNSdKxeXTKMdwp8tJPkrfrQsYcQbk32oRoENPgbl4KEVIpF2Yj44e M+sg== X-Forwarded-Encrypted: i=1; AKwUvBzzOfxezqIfsEkA8PXpx0+Tyi2GMA5pm7VfylW6+9Sw4Stk+++vCEz7z2YHSWSGKZ3mWoEghAM=@vger.kernel.org X-Gm-Message-State: AFuF++lKmYp8RZF4xBZzDkuoRsJjKMCgbvOuWMInd0cs/pizU4ydNaIr 81N+oXC+kZJ93W8mhVd0fAwUO9y4E5TRrJoh4n1AqNQrxn0PmlX7koC7CrvLP+wU6b4= X-Gm-Gg: AYBFou2K59INPKh5dVkcZHzfUveL6uBpz6pns7O4s1ASOUW0JqtVNfJVVRCY5LI3dbH qZ/Pm+xMHXxECBMkib//YTXGR6w8bl6q2EepnqqtH9XTRzowvBuEaE1WvExeZpx9RYfBZzbYYTi LuNi172zm5UydALBOaGUaltQDAn1piJ2R+6+fydN8ldiGJ0XdoDJeQq/67yw9osBz+Ma2cFZBwE u9BGgb8hcdtoWWBBZ+3tYkTqLUviMw+LvfqSfjCWytT+Ns9vxRcc5YGOnTWMdKhlbHh/3w57gBZ hHwRzDUG+9DtvfMB6lYm78w2+Ag5E4cJbsUsuw/XR2dQfai3tBqATKLxcZBMTqi+kvzDnUXcm2C iUkgBDTwvMuVHsGM3pjmFPlrS6gaKWYG6pxrTwlpbmlRcL94z3i5sm9P3f38hBFNzeJvnY8Xyhw DjogbrV7KL03QWM/rldlLFvPyBDBoA1J09M05AogpjOtR1QYD+f/l2BOuX3jYRXLXtJoGDm0FAR WXAL99zG4ShxAUBKjkzvUX4a3NHDRB23eo= 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: netdev@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