* [U-Boot] [PATCH] part: Drop duplication declaration of block_dev_desc_t
@ 2016-01-21 3:12 Simon Glass
2016-01-21 3:15 ` Bin Meng
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Simon Glass @ 2016-01-21 3:12 UTC (permalink / raw)
To: u-boot
This is already defined in ide.h, which part.h includes. So we don't need
the duplicate typedef. At least with my old blackfin gcc 4.3.5 tool chain,
this causes an error.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
include/part.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/part.h b/include/part.h
index 4d00e22..dc23949 100644
--- a/include/part.h
+++ b/include/part.h
@@ -10,8 +10,6 @@
#include <ide.h>
#include <common.h>
-typedef struct block_dev_desc block_dev_desc_t;
-
struct block_dev_desc {
int if_type; /* type of the interface */
int dev; /* device number */
--
2.7.0.rc3.207.g0ac5344
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] part: Drop duplication declaration of block_dev_desc_t
2016-01-21 3:12 [U-Boot] [PATCH] part: Drop duplication declaration of block_dev_desc_t Simon Glass
@ 2016-01-21 3:15 ` Bin Meng
2016-01-24 22:40 ` Andreas Bießmann
2016-01-25 21:29 ` [U-Boot] " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Bin Meng @ 2016-01-21 3:15 UTC (permalink / raw)
To: u-boot
On Thu, Jan 21, 2016 at 11:12 AM, Simon Glass <sjg@chromium.org> wrote:
> This is already defined in ide.h, which part.h includes. So we don't need
> the duplicate typedef. At least with my old blackfin gcc 4.3.5 tool chain,
> this causes an error.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> include/part.h | 2 --
> 1 file changed, 2 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] part: Drop duplication declaration of block_dev_desc_t
2016-01-21 3:12 [U-Boot] [PATCH] part: Drop duplication declaration of block_dev_desc_t Simon Glass
2016-01-21 3:15 ` Bin Meng
@ 2016-01-24 22:40 ` Andreas Bießmann
2016-01-25 21:29 ` [U-Boot] " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Bießmann @ 2016-01-24 22:40 UTC (permalink / raw)
To: u-boot
On 21.01.16 04:12, Simon Glass wrote:
> This is already defined in ide.h, which part.h includes. So we don't need
> the duplicate typedef. At least with my old blackfin gcc 4.3.5 tool chain,
> this causes an error.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andreas Bie?mann <andreas.devel@googlemail.com>
This fixes buildman breakage for avr32
> ---
>
> include/part.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/include/part.h b/include/part.h
> index 4d00e22..dc23949 100644
> --- a/include/part.h
> +++ b/include/part.h
> @@ -10,8 +10,6 @@
> #include <ide.h>
> #include <common.h>
>
> -typedef struct block_dev_desc block_dev_desc_t;
> -
> struct block_dev_desc {
> int if_type; /* type of the interface */
> int dev; /* device number */
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] part: Drop duplication declaration of block_dev_desc_t
2016-01-21 3:12 [U-Boot] [PATCH] part: Drop duplication declaration of block_dev_desc_t Simon Glass
2016-01-21 3:15 ` Bin Meng
2016-01-24 22:40 ` Andreas Bießmann
@ 2016-01-25 21:29 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2016-01-25 21:29 UTC (permalink / raw)
To: u-boot
On Wed, Jan 20, 2016 at 08:12:07PM -0700, Simon Glass wrote:
> This is already defined in ide.h, which part.h includes. So we don't need
> the duplicate typedef. At least with my old blackfin gcc 4.3.5 tool chain,
> this causes an error.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> Reviewed-by: Andreas Bie?mann <andreas.devel@googlemail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160125/6ade9941/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-25 21:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-21 3:12 [U-Boot] [PATCH] part: Drop duplication declaration of block_dev_desc_t Simon Glass
2016-01-21 3:15 ` Bin Meng
2016-01-24 22:40 ` Andreas Bießmann
2016-01-25 21:29 ` [U-Boot] " Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox