All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib-ubsan-remove-returns-nonnull-attribute-checks-fix
@ 2018-01-22 16:57 Andrey Ryabinin
  0 siblings, 0 replies; only message in thread
From: Andrey Ryabinin @ 2018-01-22 16:57 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Andrey Ryabinin

Fixes:
 lib/ubsan.c:144:13: warning: ‘location_is_valid’ defined but not used [-Wunused-function]
 static bool location_is_valid(struct source_location *loc)

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 lib/ubsan.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/ubsan.c b/lib/ubsan.c
index adada1dbbe94..59fee96c29a0 100644
--- a/lib/ubsan.c
+++ b/lib/ubsan.c
@@ -141,11 +141,6 @@ static void val_to_string(char *str, size_t size, struct type_descriptor *type,
 	}
 }
 
-static bool location_is_valid(struct source_location *loc)
-{
-	return loc->file_name != NULL;
-}
-
 static DEFINE_SPINLOCK(report_lock);
 
 static void ubsan_prologue(struct source_location *location,
-- 
2.13.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-22 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-22 16:57 [PATCH] lib-ubsan-remove-returns-nonnull-attribute-checks-fix Andrey Ryabinin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.