From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 A016921ABAA for ; Wed, 12 Nov 2025 09:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762941446; cv=none; b=Q3yJc4k5PzTMzXgUa0yPEOHhv1FdFTSSDikvW9cImhnV2RJnJm/TmAMNxZyffmNx+QkdklEmGqk1dkv1hHiBBtYnCfOObPfr/vOOQd8/scoRdoJJPqmqD84wmIzHEIebcRng/nHcrYGTidF2vAX+y5PoJAH+y0luzS4pLFWK/DU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762941446; c=relaxed/simple; bh=h5pc/J9kECEj83qwMGeNWx9aIJNRYX1Hy3xLVwBEJGE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GiFtpCZ7qxkcOdA0Vi4k1trHEBM6oAq7e8b32FSGMlU0yIqJSm/v04Piv4It+ACU+yS4nIuplU+tLZ7R205zjoPZBoRF/NTzkLTIeq36J0Wb7DXs/4BLnB9laZ6ZHcGbhflZkKImzCdTAOtpXEp/gwNT1QsYBurtj2CvwIvz9ZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ed16QTWo; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ed16QTWo" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-42b32a5494dso272566f8f.2 for ; Wed, 12 Nov 2025 01:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762941443; x=1763546243; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=THV2t9S7ZHP7pdKhDRWq/0bVFWuA15jyz8cfeJ9DlQE=; b=ed16QTWo5wP1wUMfSQsBaSpY6EeliF8axVT0bnUE+rlO1T+zMnpz3reuiW/Tv5vjms S0uP82mGZX7uvbz4sic92If9aNk1LgpgmzTZ+jvaJdR2y6zWTvbCQ7a8tKXpj8fWSW8O 4Q9grhfH3IuLuEKhpB6BF4El69aiENEBk6x4BmrMWG+ZDm28Mn/hML1CuXvogQCp0NBO MXOLO2QAUJya1bVn9CwF5qfOUlgX2lGTFiEz8e+wnyy9/QX1vwd26TxrgP2eRVqKB1/f WEQf+DkKjrdIIxO7WDUFc0cM5DKtAcOgCjIO/EO7tfBqneoZus4va+dY2+ZKFB+fiaXJ VuhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762941443; x=1763546243; h=content-transfer-encoding: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; bh=THV2t9S7ZHP7pdKhDRWq/0bVFWuA15jyz8cfeJ9DlQE=; b=QTy/0KnukI0EPwcuvkPHaueldT34lDgCpYWjdcR9W+R5AYPvRcw+YBRyR6hlPQmfew IEkSPtuF2rsgm5czKyi3grhui6Cgc+CR38G1LAA4mTvGLYn5GimWnPhSLZNdt9V9HSzU tGvvkklNmdFIDGK5V28lbz+uprzCfyf6YS+pZ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5a86 with SMTP id ffacd0b85a97d-42b4bdd0f1dmr1885508f8f.57.1762941442847; Wed, 12 Nov 2025 01:57:22 -0800 (PST) Received: from ?IPV6:2a05:6e02:1041:c10:23e5:17c0:bfdb:f0d? ([2a05:6e02:1041:c10:23e5:17c0:bfdb:f0d]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-42b2ee2ed31sm26858942f8f.29.2025.11.12.01.57.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Nov 2025 01:57:22 -0800 (PST) Message-ID: <3c2dee38-46a8-4359-b981-d4e3d53061fe@linaro.org> Date: Wed, 12 Nov 2025 10:57:21 +0100 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] clocksource/drivers/stm: Fix section mismatches To: Johan Hovold Cc: Thomas Gleixner , Maxime Coquelin , Alexandre Torgue , linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20251017054943.7195-1-johan@kernel.org> <7ad2b976-3b0d-4823-a145-ceedf071450d@linaro.org> Content-Language: en-US From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/10/25 15:51, Johan Hovold wrote: > Hi Daniel, > > On Wed, Nov 05, 2025 at 02:32:18PM +0100, Daniel Lezcano wrote: > >> You should replace __init by __init_or_module > > That's not sufficient as the driver can still be rebound through sysfs > currently (the driver would probably crash anyway, but that's a separate > issue). > > Also note that no drivers use __init_or_module these days, likely as > everyone uses modules and it's not worth the added complexity in trying > to get the section markers right for a build configuration that few > people care about. > > I can send a follow-on patch to suppress the unbind attribute, or > include it in a v2 if you insist on using __init_or_module. > > What do you prefer? I think it makes sens to use __init_or_module because these drivers have been always compiled in and we are converting them into modules. [ ... ] -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog