mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
tegra: rtcpu: Fix build for Linux v6.12
In Linux v6.12 the definition 'no_llseek' was finally removed. Since Linux v6.0 it had been redefined as NULL. Add a test to conftest to determine if 'no_llseek' is present and if not then it is no longer necessary to populate this and we can leave as NULL. Bug 4876974 Change-Id: Idc0f5eff6f95f404a24b6d795f6a9460b99639e4 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3261670 Reviewed-by: svcacv <svcacv@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Pushpesh Pranjal <ppranjal@nvidia.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
#include <nvidia/conftest.h>
|
||||
|
||||
#include "soc/tegra/camrtc-trace.h"
|
||||
#include <linux/cdev.h>
|
||||
@@ -1614,7 +1616,9 @@ static int rtcpu_raw_trace_release(struct inode *inode, struct file *file)
|
||||
|
||||
static const struct file_operations rtcpu_raw_trace_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
#if defined(NV_NO_LLSEEK_PRESENT)
|
||||
.llseek = no_llseek,
|
||||
#endif
|
||||
.read = rtcpu_raw_trace_read,
|
||||
.write = rtcpu_raw_trace_write,
|
||||
.poll = rtcpu_raw_trace_poll,
|
||||
|
||||
Reference in New Issue
Block a user