mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-14 21:29:37 +02:00

Cross-merge networking fixes after downstream PR. Conflicts: net/unix/garbage.c47d8ac011f
("af_unix: Fix garbage collector racing against connect()")4090fa373f
("af_unix: Replace garbage collection algorithm.") Adjacent changes: drivers/net/ethernet/broadcom/bnxt/bnxt.cfaa12ca245
("bnxt_en: Reset PTP tx_avail after possible firmware reset")b3d0083caf
("bnxt_en: Support RSS contexts in ethtool .{get|set}_rxfh()") drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c7ac10c7d72
("bnxt_en: Fix possible memory leak in bnxt_rdma_aux_device_init()")194fad5b27
("bnxt_en: Refactor bnxt_rdma_aux_device_init/uninit functions") drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c958f56e483
("net/mlx5e: Un-expose functions in en.h")49e6c93870
("net/mlx5e: RSS, Block XOR hash with over 128 channels") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
43 lines
857 B
C
43 lines
857 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _TOOLS_LINUX_MM_H
|
|
#define _TOOLS_LINUX_MM_H
|
|
|
|
#include <linux/align.h>
|
|
#include <linux/mmzone.h>
|
|
|
|
#define PAGE_SHIFT 12
|
|
#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
|
#define PAGE_MASK (~(PAGE_SIZE - 1))
|
|
|
|
#define PHYS_ADDR_MAX (~(phys_addr_t)0)
|
|
|
|
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
|
|
|
|
#define __va(x) ((void *)((unsigned long)(x)))
|
|
#define __pa(x) ((unsigned long)(x))
|
|
|
|
#define pfn_to_page(pfn) ((void *)((pfn) * PAGE_SIZE))
|
|
|
|
#define phys_to_virt phys_to_virt
|
|
static inline void *phys_to_virt(unsigned long address)
|
|
{
|
|
return __va(address);
|
|
}
|
|
|
|
void reserve_bootmem_region(phys_addr_t start, phys_addr_t end, int nid);
|
|
|
|
static inline void totalram_pages_inc(void)
|
|
{
|
|
}
|
|
|
|
static inline void totalram_pages_add(long count)
|
|
{
|
|
}
|
|
|
|
static inline int early_pfn_to_nid(unsigned long pfn)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif
|