[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YDvMkmgEjkDD08pC@localhost.localdomain>
Date: Sun, 28 Feb 2021 20:02:10 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: torvalds@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
mirq-linux@...e.qmqm.pl
Subject: [PATCH 06/11] pragma once: convert include/linux/cb710.h
>From 1c4107e55b322dada46879837d4d64841bc5f150 Mon Sep 17 00:00:00 2001
From: Alexey Dobriyan <adobriyan@...il.com>
Date: Tue, 9 Feb 2021 16:56:54 +0300
Subject: [PATCH 06/11] pragma once: convert include/linux/cb710.h
This file is concatenation of two files with two include guards.
Convert it manually.
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---
include/linux/cb710.h | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/include/linux/cb710.h b/include/linux/cb710.h
index 405657a9a0d5..f3055e9442db 100644
--- a/include/linux/cb710.h
+++ b/include/linux/cb710.h
@@ -1,12 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#pragma once
/*
* cb710/cb710.h
*
* Copyright by Michał Mirosław, 2008-2009
*/
-#ifndef LINUX_CB710_DRIVER_H
-#define LINUX_CB710_DRIVER_H
-
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
@@ -121,15 +119,11 @@ void cb710_dump_regs(struct cb710_chip *chip, unsigned dump);
#define CB710_DUMP_ACCESS_ALL 0x700
#define CB710_DUMP_ACCESS_MASK 0x700
-#endif /* LINUX_CB710_DRIVER_H */
/*
* cb710/sgbuf2.h
*
* Copyright by Michał Mirosław, 2008-2009
*/
-#ifndef LINUX_CB710_SG_H
-#define LINUX_CB710_SG_H
-
#include <linux/highmem.h>
#include <linux/scatterlist.h>
@@ -197,5 +191,3 @@ static inline void cb710_sg_dwiter_read_to_io(struct sg_mapping_iter *miter,
while (count-- > 0)
iowrite32(cb710_sg_dwiter_read_next_block(miter), port);
}
-
-#endif /* LINUX_CB710_SG_H */
--
2.29.2
Powered by blists - more mailing lists