hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/include/asm-generic/atomic.h
....@@ -1,14 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Generic C implementation of atomic counter operations. Usable on
34 * UP systems only. Do not include in machine independent code.
45 *
56 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
67 * Written by David Howells (dhowells@redhat.com)
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public Licence
10
- * as published by the Free Software Foundation; either version
11
- * 2 of the Licence, or (at your option) any later version.
128 */
139 #ifndef __ASM_GENERIC_ATOMIC_H
1410 #define __ASM_GENERIC_ATOMIC_H
....@@ -162,8 +158,6 @@
162158 * Atomic operations that C can't guarantee us. Useful for
163159 * resource counting etc..
164160 */
165
-
166
-#define ATOMIC_INIT(i) { (i) }
167161
168162 /**
169163 * atomic_read - read atomic variable