[PATCH 08/10] staging: gasket: remove gasket logging header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Todd Poynor <toddpoynor@xxxxxxxxxx>

Gasket logging functions no longer used.

Signed-off-by: Todd Poynor <toddpoynor@xxxxxxxxxx>
---
 drivers/staging/gasket/gasket_logging.h | 64 -------------------------
 1 file changed, 64 deletions(-)
 delete mode 100644 drivers/staging/gasket/gasket_logging.h

diff --git a/drivers/staging/gasket/gasket_logging.h b/drivers/staging/gasket/gasket_logging.h
deleted file mode 100644
index 54bbe516b0716..0000000000000
--- a/drivers/staging/gasket/gasket_logging.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Common logging utilities for the Gasket driver framework.
- *
- * Copyright (C) 2018 Google, Inc.
- */
-
-#include <linux/pci.h>
-#include <linux/printk.h>
-
-#ifndef _GASKET_LOGGING_H_
-#define _GASKET_LOGGING_H_
-
-/* Base macro; other logging can/should be built on top of this. */
-#define gasket_dev_log(level, device, pci_dev, format, arg...)                 \
-	if (false) {                                                           \
-		if (pci_dev) {                                                 \
-			dev_##level(&(pci_dev)->dev, "%s: " format "\n",       \
-				__func__, ##arg);                              \
-		} else {                                                       \
-			gasket_nodev_log(level, format, ##arg);                \
-		}                                                              \
-	}
-
-/* "No-device" logging macros. */
-#define gasket_nodev_log(level, format, arg...)                                \
-	if (false) pr_##level("gasket: %s: " format "\n", __func__, ##arg)
-
-#define gasket_nodev_debug(format, arg...)                                     \
-	if (false) gasket_nodev_log(debug, format, ##arg)
-
-#define gasket_nodev_info(format, arg...)                                      \
-	if (false) gasket_nodev_log(info, format, ##arg)
-
-#define gasket_nodev_warn(format, arg...)                                      \
-	if (false) gasket_nodev_log(warn, format, ##arg)
-
-#define gasket_nodev_error(format, arg...)                                     \
-	if (false) gasket_nodev_log(err, format, ##arg)
-
-/* gasket_dev logging macros */
-#define gasket_log_info(gasket_dev, format, arg...)                            \
-	if (false) gasket_dev_log(info, (gasket_dev)->dev_info.device,         \
-		(gasket_dev)->pci_dev, format, ##arg)
-
-#define gasket_log_warn(gasket_dev, format, arg...)                            \
-	if (false) gasket_dev_log(warn, (gasket_dev)->dev_info.device,         \
-		(gasket_dev)->pci_dev, format, ##arg)
-
-#define gasket_log_error(gasket_dev, format, arg...)                           \
-	if (false) gasket_dev_log(err, (gasket_dev)->dev_info.device,          \
-		(gasket_dev)->pci_dev, format, ##arg)
-
-#define gasket_log_debug(gasket_dev, format, arg...)                           \
-	if (false){                                                            \
-		if ((gasket_dev)->pci_dev) {                                   \
-			dev_dbg(&((gasket_dev)->pci_dev)->dev, "%s: " format   \
-			"\n", __func__, ##arg);                                \
-		} else {                                                       \
-			gasket_nodev_log(debug, format, ##arg);                \
-		}                                                              \
-	}
-
-#endif
-- 
2.18.0.345.g5c9ce644c3-goog

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux