mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] drop unused declarations
@ 2025-07-21  5:00 Antony Pavlov
  2025-07-21  5:00 ` [PATCH 1/4] include/stdio.h: drop serial_printf() declaration Antony Pavlov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Antony Pavlov @ 2025-07-21  5:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Antony Pavlov (4):
  include/stdio.h: drop serial_printf() declaration
  include/scsi.h: drop unused declarations
  include/of.h: drop of_parse_dtb() declaration
  include/driver.h: drop unused declarations

 include/driver.h |  9 ---------
 include/of.h     |  1 -
 include/scsi.h   | 14 --------------
 include/stdio.h  |  4 ----
 4 files changed, 28 deletions(-)

-- 
2.45.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/4] include/stdio.h: drop serial_printf() declaration
  2025-07-21  5:00 [PATCH 0/4] drop unused declarations Antony Pavlov
@ 2025-07-21  5:00 ` Antony Pavlov
  2025-07-21  5:00 ` [PATCH 2/4] include/scsi.h: drop unused declarations Antony Pavlov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2025-07-21  5:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The serial_printf() function was removed
in the commit af347d05abb8b69f ("svn_rev_380").

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 include/stdio.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/stdio.h b/include/stdio.h
index 50688feff4e..b4acc01bc39 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -10,10 +10,6 @@
 /*
  * STDIO based functions (can always be used)
  */
-
-/* serial stuff */
-void serial_printf(const char *fmt, ...) __printf(1, 2);
-
 int sprintf(char *buf, const char *fmt, ...) __printf(2, 3);
 int snprintf(char *buf, size_t size, const char *fmt, ...) __printf(3, 4);
 int scnprintf(char *buf, size_t size, const char *fmt, ...) __printf(3, 4);
-- 
2.45.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/4] include/scsi.h: drop unused declarations
  2025-07-21  5:00 [PATCH 0/4] drop unused declarations Antony Pavlov
  2025-07-21  5:00 ` [PATCH 1/4] include/stdio.h: drop serial_printf() declaration Antony Pavlov
@ 2025-07-21  5:00 ` Antony Pavlov
  2025-07-21  5:00 ` [PATCH 3/4] include/of.h: drop of_parse_dtb() declaration Antony Pavlov
  2025-07-21  5:00 ` [PATCH 4/4] include/driver.h: drop unused declarations Antony Pavlov
  3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2025-07-21  5:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Several U-Boot function declarations were introduced
in the commit 637b3aa727b5b4710b753563ccc3ee8128d0a71b
("USB mass storage device driver initial implementation").
At the moment these declarations are unused, so drop them.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 include/scsi.h | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/include/scsi.h b/include/scsi.h
index 23fc7abbaf4..cb8c95dc5ba 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -144,20 +144,6 @@
 /* values for service action in */
 #define	SAI_READ_CAPACITY_16	0x10
 
-/****************************************************************************
- * decleration of functions which have to reside in the LowLevel Part Driver
- */
-
-void scsi_bus_reset(void);
-void scsi_low_level_init(int busdevfunc);
-
-
-/***************************************************************************
- * functions residing inside cmd_scsi.c
- */
-void scsi_init(void);
-
-
 #define SCSI_IDENTIFY				0xC0  /* not used */
 
 /* Hardware errors  */
-- 
2.45.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 3/4] include/of.h: drop of_parse_dtb() declaration
  2025-07-21  5:00 [PATCH 0/4] drop unused declarations Antony Pavlov
  2025-07-21  5:00 ` [PATCH 1/4] include/stdio.h: drop serial_printf() declaration Antony Pavlov
  2025-07-21  5:00 ` [PATCH 2/4] include/scsi.h: drop unused declarations Antony Pavlov
@ 2025-07-21  5:00 ` Antony Pavlov
  2025-07-21  5:00 ` [PATCH 4/4] include/driver.h: drop unused declarations Antony Pavlov
  3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2025-07-21  5:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The of_parse_dtb() function was renamed in the commit
86e787e84565e6c08696450e9d14d066f3f76056
("of: rename of_parse_dtb to of_unflatten_dtb").

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 include/of.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/of.h b/include/of.h
index 2258cd501b7..f99f7763251 100644
--- a/include/of.h
+++ b/include/of.h
@@ -116,7 +116,6 @@ void of_print_nodes(struct device_node *node, int indent, unsigned maxpropsize);
 void of_print_properties(struct device_node *node, unsigned maxpropsize);
 int of_diff(struct device_node *a, struct device_node *b, int indent);
 int of_probe(void);
-int of_parse_dtb(struct fdt_header *fdt);
 struct device_node *of_unflatten_dtb(const void *fdt, int size);
 struct device_node *of_unflatten_dtb_const(const void *infdt, int size);
 
-- 
2.45.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 4/4] include/driver.h: drop unused declarations
  2025-07-21  5:00 [PATCH 0/4] drop unused declarations Antony Pavlov
                   ` (2 preceding siblings ...)
  2025-07-21  5:00 ` [PATCH 3/4] include/of.h: drop of_parse_dtb() declaration Antony Pavlov
@ 2025-07-21  5:00 ` Antony Pavlov
  3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2025-07-21  5:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 include/driver.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/include/driver.h b/include/driver.h
index dd50a7aa3cc..5169b959f92 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -117,13 +117,6 @@ static inline void device_rescan(struct device *dev)
 #define device_for_each_child_safe(dev, tmpdev, child) \
 	list_for_each_entry_safe(child, tmpdev, &(dev)->children, sibling)
 
-/* Iterate through the devices of a given type. if last is NULL, the
- * first device of this type is returned. Put this pointer in as
- * 'last' to get the next device. This functions returns NULL if no
- * more devices are found.
- */
-struct device *get_device_by_type(ulong type, struct device *last);
-struct device *get_device_by_id(const char *id);
 struct device *get_device_by_name(const char *name);
 
 /* Find a device by name and if not found look up by device tree path
@@ -137,8 +130,6 @@ struct device *find_device(const char *str);
  */
 int get_free_deviceid(const char *name_template);
 
-char *deviceid_from_spec_str(const char *str, char **endp);
-
 static inline const char *dev_id(const struct device *dev)
 {
 	if (!dev)
-- 
2.45.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-07-21  5:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-21  5:00 [PATCH 0/4] drop unused declarations Antony Pavlov
2025-07-21  5:00 ` [PATCH 1/4] include/stdio.h: drop serial_printf() declaration Antony Pavlov
2025-07-21  5:00 ` [PATCH 2/4] include/scsi.h: drop unused declarations Antony Pavlov
2025-07-21  5:00 ` [PATCH 3/4] include/of.h: drop of_parse_dtb() declaration Antony Pavlov
2025-07-21  5:00 ` [PATCH 4/4] include/driver.h: drop unused declarations Antony Pavlov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox