From nobody Mon Dec 15 22:08:12 2025 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 4996A230BDF for ; Wed, 7 May 2025 09:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746609692; cv=none; b=XfKkmdYFvpc9FedvoGWqjQshRhQTbegM4GGw2qgzsRHuonUVUBqhBh+hVqs3sISx7BJtcPgl1rtER+E4I5DGr1hg8jv7JStWR1xNc53wrFSz04coYRPGfTuleUxmysemL6BesAV4YfiOJK/oaT7laoSUgZ56UOBa7gznyjAnMnQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746609692; c=relaxed/simple; bh=Zuk4ngv1wcV3NMC95okNfizOZQtgYbFjGF2v7oWA7MU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OO/9KLIF7/tf2e3/5qljriWceYtF2OYQVeUN3E1u4dT1oi2XJyv5N5gW4kHUGOans3j2FqkBPF5+j5i9UN/3V4xgdN058SySGlQtS6oP3FTfMPtHES+I5hI2NtL3+2LR7xAsDKESViOGVFtA+t3fgJixeY+C/CUgBMdtA8OM1xI= 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=FjmklosG; arc=none smtp.client-ip=209.85.221.48 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="FjmklosG" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3a0b0d8090dso147478f8f.2 for ; Wed, 07 May 2025 02:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746609688; x=1747214488; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+y8jPOzO/Gnjm1gvhE1qivFemvUWxShS+OkhHR4ZTcI=; b=FjmklosGXNCndGj2Ube/jmC6+zs6C31CEDfF6sWwRVPN1zxhieEW5W7Wr1uanoQQTa sLdUl7AbtV53/eE7eKArkQjeyHJmQIs6Q5sOCabusg5y1+RHxfK0cDUpfYq9o0WDjfXw APd6WAnXdjwtv2IEgNevtGEmOBEbv8IsXl6IWn2U+PIXNgAY3Fk/TzvAfa4PQrxZnYFJ i7MClMBXF2HZhl7ybTQnCFoMYAI3Giu5Z5P75qw0dnwGyqr2jEhL/3ydq8HJByhzNY6J xxopq9DLaYu5h6Tfwhswr/2czJgGNJ9H4BLMCENWajmCJFRvPohk2SEeiJ1+2oFYgwdK AePw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746609688; x=1747214488; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+y8jPOzO/Gnjm1gvhE1qivFemvUWxShS+OkhHR4ZTcI=; b=NR3AGdAufAtCFTwtwd9SL8yX63I6l5B8Tuahk6Twl83wLj5i5PRWTjjnHTERIreNLG gt+tkpgZwwJwEdTT1SqPE72uJkdj0Dd99uMqscS/BrcQZg4zREKOBO7IDlijYhQreb6t OzQ4fO7OaZDcFCIRyi5ZUXMkuqUu/eC+iNJhqNbozzzrtWxaSLzHyS8TsQ0cJ2CR1hrD yoXYc6BGdYEa4apn9vyVwhBX/PStepqO2gsrb9Myys4SNFE81t5HTNIQUQWf6L4qyHG7 CUJf/KKHAC358KHywrBXQgl6/HdL+591MJVPjlSU7f7CdPm0AL+7rjqOAbiScQ4H1YiI b3yw== X-Forwarded-Encrypted: i=1; AJvYcCUqxcx/SCXKogCJsLwVEO8Bn9yPLsl/99cyTn1TCWu6GCvW+d591aIccZlD9bcKhpiKyJXaw8qmF9OpdOE=@vger.kernel.org X-Gm-Message-State: AOJu0YwHa1nmoJD6RZZYiZRYmJ1/ziiVWFpDEXy5YhMdv9ZfiYGCsunu 4+ikR05Lf7xGwchXcIRKsiyXkKqKkwCXVAazIHfME6iQUvjxUmA5J2ANUiuviIoGBC+U1GhSnSo i X-Gm-Gg: ASbGnctMyIaXE4sRWYHvhr/sW/kNcSDz/gUQFBwABebfN1i1U/PtQurcIUdfrpHYvCs z+3zojrN1AHt7+v1YsbqF70zxcHWGp6fMAvti3Wgw1c8HOjR/68+ayeFmL4yocf7IXYnu+e83bv AjQ5lm6EOhAtS2/jp8BTQ6PXMrY7AeALcTOf0mrJJ/BuNF1GtmdUoWHCsz2dB5mFWiAKGeSV+e6 vTbKeVhJLNHxW+ZBNIKY/Dm6D0FTjvOaNt6Bk1krwALkWe2qtkZoiWe7yQ/TK1caY/CJFDtXJJy V5igjgCN8YJm5L6ruUkxw7n8cnx2m35pNjTfUNg9Fpy/P+ekRQ== X-Google-Smtp-Source: AGHT+IGj/1ahHnSJ4e2xPVwr+AuBbHJ0wuhNIZomcjtqGtlqcAu1lDRaE0pf4RUZq68YnrfTUyA8AA== X-Received: by 2002:a5d:47c5:0:b0:3a0:7d47:8d7e with SMTP id ffacd0b85a97d-3a0b4a363a9mr745845f8f.8.1746609688581; Wed, 07 May 2025 02:21:28 -0700 (PDT) Received: from kuoka.. ([178.197.207.88]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a0b5764733sm1633431f8f.22.2025.05.07.02.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 May 2025 02:21:27 -0700 (PDT) From: Krzysztof Kozlowski To: Maxime Coquelin , Alexandre Torgue , Gatien Chevallier , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Patrice Chotard , stable@vger.kernel.org Subject: [PATCH] bus: firewall: Fix missing static inline annotations for stubs Date: Wed, 7 May 2025 11:21:22 +0200 Message-ID: <20250507092121.95121-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2063; i=krzysztof.kozlowski@linaro.org; h=from:subject; bh=Zuk4ngv1wcV3NMC95okNfizOZQtgYbFjGF2v7oWA7MU=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBoGyYROrndXK6jXz7UdfFDTRPGKx2tUXBG8hAo+ NjoRR0HvAyJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCaBsmEQAKCRDBN2bmhouD 1yXTEACTo9Eb1/KCCY3Jd9m8bNUsYfG6kBXHtTAAFI8wXEESF8U4GhmrAvx81vwof2w0YREvtxb ISMF0pjB6RnocBfCP85nQ746kCG8w4rVNu7MT0UDe2Jz018fFc7e0HVZvZYTA6jt8gJBKwCmqd/ OgFPMAwzCMmhAN0BMMRhei5JK5WBibxnRVJcAEQUEStj9wP5hwWVvHLNHyVpQvZfaC/8dWZBQtn zmtaN+U9IM6vKJGcwlagZLSUw66zRwLh2m+JGoab8bZzlOQ14Obp0WgsNouRNXtU9sKOglP/YrK Me7qo1tycDwv/7E4OHa3sRgrA68d2lbHXQc4FGvocItlGvWTu/gKzaXMeN7j0BXnWRU1GukWcOQ l5QHEjIyw1Vub0gO20KmikggPtrV01IS1/6oWur1TIG6J1cQDwQrWO3sOTlviVTRx7y/vrfwuuN w54+Az1E3GuM7qxNAvOY+CEG5RIzkNT/aVfRMbCZt4GBPLFctNStFxyP1qSRnD/nA+4AT9Nqy9Z D+nsGkQaCaMla6U9FWlPBqK6HaD1qzIz3Wd/OF8PYatfVDMZSP1QMZGFmYK2BV1r7DZV431BQET XmFwOSmhvwY44mJFyA9kdRO+00I/Vd3zISVSx8V6tEaHfIjeqV0ByI9r73KKQY17jhlYWNl1C6W qg3wA9+J6hsAWEg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Stubs in the header file for !CONFIG_STM32_FIREWALL case should be both static and inline, because they do not come with earlier declaration and should be inlined in every unit including the header. Cc: Patrice Chotard Cc: Fixes: 5c9668cfc6d7 ("firewall: introduce stm32_firewall framework") Signed-off-by: Krzysztof Kozlowski Reviewed-by: Patrice Chotard --- include/linux/bus/stm32_firewall_device.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/include/linux/bus/stm32_firewall_device.h b/include/linux/bus/= stm32_firewall_device.h index 5178b72bc920..eaa7a3f54450 100644 --- a/include/linux/bus/stm32_firewall_device.h +++ b/include/linux/bus/stm32_firewall_device.h @@ -114,27 +114,30 @@ void stm32_firewall_release_access_by_id(struct stm32= _firewall *firewall, u32 su =20 #else /* CONFIG_STM32_FIREWALL */ =20 -int stm32_firewall_get_firewall(struct device_node *np, struct stm32_firew= all *firewall, - unsigned int nb_firewall) +static inline int stm32_firewall_get_firewall(struct device_node *np, + struct stm32_firewall *firewall, + unsigned int nb_firewall) { return -ENODEV; } =20 -int stm32_firewall_grant_access(struct stm32_firewall *firewall) +static inline int stm32_firewall_grant_access(struct stm32_firewall *firew= all) { return -ENODEV; } =20 -void stm32_firewall_release_access(struct stm32_firewall *firewall) +static inline void stm32_firewall_release_access(struct stm32_firewall *fi= rewall) { } =20 -int stm32_firewall_grant_access_by_id(struct stm32_firewall *firewall, u32= subsystem_id) +static inline int stm32_firewall_grant_access_by_id(struct stm32_firewall = *firewall, + u32 subsystem_id) { return -ENODEV; } =20 -void stm32_firewall_release_access_by_id(struct stm32_firewall *firewall, = u32 subsystem_id) +static inline void stm32_firewall_release_access_by_id(struct stm32_firewa= ll *firewall, + u32 subsystem_id) { } =20 --=20 2.45.2