From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 3E9E143B6D2 for ; Mon, 10 Aug 2026 19:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786389021; cv=none; b=nYJ6D1y43tUSpdKeAbdWgwzK7lRZtGKaNbqGOZ8fyNoIIW8cpGb4gofHMFVUYbYyZLDs/2Gky2KlYJTPVje4WqJVCpqcMMrBkSCA/7B19rGowf8D8shjq+1VQ1THsKCM58YR4sbi4HJcyUoFX6qbyWbj/C4Q4+Z96VD05SL/+mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786389021; c=relaxed/simple; bh=rP2NNXWgCVVP5EISrdmfCNqCWasfQLfPkPIVvsSfTGA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=FfY+mPWpAZg6taXlo/4huHYVwdZ7Q0GGv9Wni6deASqYYXKvioTVVepo5IulBRAHXdKrH+sMyqkiMDN7BDHXu3z8Tk4a+IXlT+HIFXjUWi43Z+aROIvwfbkMRgUQSqvOw1QspjT5TEo5h8FzJ7Fv6fxZGlY9nXur/8uAs9IUPeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bjpMjtZq; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bjpMjtZq" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5b15dcaca31so2154664e87.0 for ; Mon, 10 Aug 2026 12:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786389011; x=1786993811; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=lUtmuOmDDfQXLgwR5j7FKUowALg4M2TPbCa5zuYY4Vo=; b=bjpMjtZqWo948wtRvgmiggNfIN4efu1bitEQBqwid7THxFoepoUS83sAUBTT+cyt1L QWg4bPoNPCGpYZeo05+XsIHh07TS+MjYKMji8fOVKC6mNIaGI26cmvXeRYYt8xaqadxR XWWoyyQO01vHm4L9oV3k58umWs1AICGHQgrzpLydKWpsG6Hv7z5l+baQVkzat3TcFhVe 7n/0aSoE0iHFvXKytx2kWkIbdAuHippR+2OCx4NlBFzR2/EQjcpTA5+X3jnPj4XBE4PH CP8+6c/FSegoWpfv4UUhI2K3dfWWRAVx6Y6omw2PqWo3W50gOfRZSLKvOkB1jl/10qQz p8Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786389011; x=1786993811; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=lUtmuOmDDfQXLgwR5j7FKUowALg4M2TPbCa5zuYY4Vo=; b=qL8oQobl3yiQIuSjP7bI8K/4lZ1lO+e3kGxuFPFgsrY36hv5k5ricq3RP4R7/xEUJs oqhS4eksJ1NVnBFFFMCu1c1jT9H9N68E2DXhVPXSlaCAAcmEmuuyykDERfDxxFtr+38e goZ7zMG5ZhYusJwLSAp2jqY+vWilDFjSuVf2yR1tL+uingOMdhaF1yx68rXXhnLPa3iZ kEiwNJS6h9LuP05eQSCviDJyJZkfPlwkqLj4i7IN898sHodsWY85kLYHnpl1DtUxnmgt VVVSROlV6uCJVwWoiYWSyvVY/Q/pxBJhw1FXN25agFyhr9t8ytzL1ljpNE8EFCtNX9I/ tetA== X-Forwarded-Encrypted: i=1; AHgh+Rqiy80Un48v02yyXytuBmTxTMPvO0k4qpwYTfiLMaCHQvHnEallMXeg8IMDW35KW7SXWVKx9Wkw1M1FPKc=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3iKS/DJLG54/tJ7/9X6C4lt4puFpLC7LAXRi2mI2483Y1rYjm rtJCk8vJHXzwfRs9xOMqgUcHJVZKPlt+u4FaCj8C0L6G2FxyWQb8+KHE X-Gm-Gg: AR+sD1213mk4o9Fp0/qas+2Zwi+/GF188oJir1TzQgEdYXb3mJrXh/ffGbv3Rg1mtvF guQD+kz/L1paF8ubcBTArp9DyDadLNVeksny4yeyTF1l+nhY/m6N97iWdIrsa9lEWqjpkuGLoxk c34WQgjf7VcHAuULiUogPaHmrM1VgwdhtR1cUQx/ACaA+lnVxfS/f+bHMiTSwVJhOgYAZVxWgI5 ia0Lzbx0ph+TuwFtVPY8MFpZqnbCowtcHghG28wjaRLBJiTgAU/BDRWLW/dRcQoVfH9HL4VFjKX di7CFIB82obl4MuX4OlVlN+IHP6PTEPrcxyP25J7jPDPCUUih1L88xZWT36vFOaw2vJTcDYg2UH 3y3iW5UwRmk2xGbaIz6brlfcu/sHOnnvOScb4ZaVbiBWXvykYa4CquSJnEfPFyrJ4146Ucxn9iy BVTUE2dsfUA7EgsK5/DnRA03IprzlK62OD7rluZHNvJO47RHMzUKmM+ozO+YqOJvW2xh2r1raQn Fkv0r5F X-Received: by 2002:a05:6512:2083:b0:5ae:be4b:675e with SMTP id 2adb3069b0e04-5b2f4cdc41cmr4271525e87.52.1786389010698; Mon, 10 Aug 2026 12:10:10 -0700 (PDT) Received: from [192.168.243.250] ([94.229.19.199]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b3055dee63sm2176103e87.43.2026.08.10.12.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2026 12:10:10 -0700 (PDT) From: Nikolay Kulikov Date: Mon, 10 Aug 2026 22:10:02 +0300 Subject: [PATCH] mlxbf-bootctl: fix the build error with FIELD_PREP() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260810-mellanox_fix_implicit_declaration-v1-1-352e647b8f28@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yWNUQqDMBAFryL73UDUUmyvUkpI1td2S4ySxCKId ze1nwPz5q2UEAWJbtVKEV9JMoYC9akiftvwgpK+MDW6ueiu1mqA9zaMi3nKYmSYvLBk04O9jTa XtXKtQ6dbdrieqXSmiOIeH/fHn9PsPuD8C9O27VtimfyFAAAA X-Change-ID: 20260810-mellanox_fix_implicit_declaration-b3be803cbe94 To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Vadim Pasternak , Liming Sun Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Nikolay Kulikov X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786389009; l=1417; i=nikolayof23@gmail.com; s=20260402; h=from:subject:message-id; bh=rP2NNXWgCVVP5EISrdmfCNqCWasfQLfPkPIVvsSfTGA=; b=E4BPZ3Uy4vPzeqtulr8kJkExp1lewMZLUw1a9xHMQ/lDJBwl97/RAtZ5kWQQ4V68Zk6UqV/yN JpbfHdSvr3eCCxAqXIM7fri2IhOmYq70CYYBd6fdwQMXBnKVYvGMptQ X-Developer-Key: i=nikolayof23@gmail.com; a=ed25519; pk=2GWUU1isl5NJpkwSCQ4OG80EinZ3EUZXlrgAg6Pz5zI= rsh_log_store() calls the FIELD_PREP() macro without including the required header file, resulting a build error: CC drivers/platform/mellanox/mlxbf-bootctl.o drivers/platform/mellanox/mlxbf-bootctl.c: In function ‘rsh_log_store’: drivers/platform/mellanox/mlxbf-bootctl.c:429:16: error: implicit declaration of function ‘FIELD_PREP’ [-Wimplicit-function-declaration] 429 | data = FIELD_PREP(MLXBF_RSH_LOG_TYPE_MASK, MLXBF_RSH_LOG_TYPE_MSG); | ^~~~~~~~~~ Fix this by including the file. Fixes: e9d1b2d0f7d0 ("mlxbf-bootctl: Add sysfs file for BlueField boot log") Signed-off-by: Nikolay Kulikov --- drivers/platform/mellanox/mlxbf-bootctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/mellanox/mlxbf-bootctl.c b/drivers/platform/mellanox/mlxbf-bootctl.c index f67c7f56ab2b..9ddc7fa1a973 100644 --- a/drivers/platform/mellanox/mlxbf-bootctl.c +++ b/drivers/platform/mellanox/mlxbf-bootctl.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include --- base-commit: 36b1d3299d0b6aa51485cc9a79b8d94948d5f3d4 change-id: 20260810-mellanox_fix_implicit_declaration-b3be803cbe94 Best regards, -- Nikolay Kulikov