aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/bitops/arch_hweight.h
blob: c2705e1d220d1567186ecfc219c075fbe1aa0ba4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_
#define _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_

#include <asm/types.h>

static inline unsigned int __arch_hweight32(unsigned int w)
{
	return __sw_hweight32(w);
}

static inline unsigned int __arch_hweight16(unsigned int w)
{
	return __sw_hweight16(w);
}

static inline unsigned int __arch_hweight8(unsigned int w)
{
	return __sw_hweight8(w);
}

static inline unsigned long __arch_hweight64(__u64 w)
{
	return __sw_hweight64(w);
}
#endif /* _ASM_GENERIC_BITOPS_HWEIGHT_H_ */
s'>-2/+2 2021-11-18scsi: mpt3sas: Fix system going into read-only modeSreekanth Reddy2-1/+60 2021-11-18scsi: mpt3sas: Fix kernel panic during drive powercycle testSreekanth Reddy1-1/+1 2021-11-18scsi: ufs: ufs-mediatek: Add put_device() after of_find_device_by_node()Ye Guojin1-0/+1 2021-11-18scsi: scsi_debug: Fix type in min_t to avoid stack OOBGeorge Kennedy1-15/+19 2021-11-18scsi: qla2xxx: edif: Fix off by one bug in qla_edif_app_getfcinfo()Dan Carpenter1-1/+1 2021-11-18scsi: ufs: ufshpb: Fix warning in ufshpb_set_hpb_read_to_upiu()Bean Huo1-1/+1 2021-11-16scsi: qla2xxx: Fix mailbox direction flags in qla2xxx_get_adapter_id()Ewan D. Milne1-4/+2 2021-11-16scsi: ufs: core: Fix another task management completion raceAdrian Hunter1-2/+1 2021-11-16scsi: ufs: core: Fix task management completion timeout raceAdrian Hunter1-5/+0 2021-11-16scsi: core: sysfs: Fix hang when device state is set via sysfsMike Christie1-11/+19 2021-11-16scsi: iscsi: Unblock session then wake up error handlerMike Christie1-3/+3 2021-11-16scsi: ufs: core: Improve SCSI abort handlingBart Van Assche1-0/+1 2021-11-14Linux 5.16-rc1v5.16-rc1Linus Torvalds1-2/+2 2021-11-14kconfig: Add support for -Wimplicit-fallthroughGustavo A. R. Silva2-5/+6 2021-11-13perf tests: Remove bash constructs from stat_all_pmu.shJames Clark1-2/+2 2021-11-13perf tests: Remove bash construct from record+zstd_comp_decomp.shJames Clark1-1/+1 2021-11-13perf test: Remove bash construct from stat_bpf_counters.sh testJames Clark1-1/+1 2021-11-13perf bench futex: Fix memory leak of perf_cpu_map__new()Sohaib Mohamed4-0/+4 2021-11-13tools arch x86: Sync the msr-index.h copy with the kernel sourcesArnaldo Carvalho de Melo1-0/+2 2021-11-13tools headers UAPI: Sync drm/i915_drm.h with the kernel sourcesArnaldo Carvalho de Melo1-1/+241 2021-11-13tools headers UAPI: Sync sound/asound.h with the kernel sourcesArnaldo Carvalho de Melo1-1/+1 2021-11-13tools headers UAPI: Sync linux/prctl.h with the kernel sourcesArnaldo Carvalho de Melo1-0/+3 2021-11-13tools headers UAPI: Sync arch prctl headers with the kernel sourcesArnaldo Carvalho de Melo1-0/+4 2021-11-13perf tools: Add more weak libbpf functionsJiri Olsa1-0/+27 2021-11-13perf bpf: Avoid memory leak from perf_env__insert_btf()Ian Rogers3-3/+10 2021-11-13perf symbols: Factor out annotation init/exitIan Rogers3-1/+22 2021-11-13perf symbols: Bit pack to save a byteIan Rogers2-3/+3 2021-11-13perf symbols: Add documentation to 'struct symbol'Ian Rogers1-3/+14 2021-11-13tools headers UAPI: Sync files changed by new futex_waitv syscallArnaldo Carvalho de Melo2-1/+5 2021-11-13perf test bpf: Use ARRAY_CHECK() instead of ad-hoc equivalent, addressing arr...Guo Zhengkui1-1/+1 2021-11-13perf arm-spe: Support hardware-based PID tracingGerman Gomez1-29/+70 2021-11-13perf arm-spe: Save context ID in recordGerman Gomez2-0/+3 2021-11-13perf arm-spe: Update --switch-events docs in 'perf record'German Gomez2-2/+4 2021-11-13perf arm-spe: Track task context switch for cpu-mode eventsNamhyung Kim2-1/+30