All of lore.kernel.org
 help / color / mirror / Atom feed
* [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef
@ 2020-05-03  4:27 Jacob Kroon
  2020-05-03  4:32 ` ✗ patchtest: failure for " Patchwork
  2020-05-03  5:28 ` [OE-core] [pseudo][PATCH] " Seebs
  0 siblings, 2 replies; 8+ messages in thread
From: Jacob Kroon @ 2020-05-03  4:27 UTC (permalink / raw)
  To: openembedded-core

'pseudo_access_t' is a type, so use typedef.

Fixes building pseudo with gcc 10 where -fno-common is the default.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
---
 pseudo_ipc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pseudo_ipc.h b/pseudo_ipc.h
index caeae5c..d945257 100644
--- a/pseudo_ipc.h
+++ b/pseudo_ipc.h
@@ -29,7 +29,7 @@ typedef struct {
 	char path[];
 } pseudo_msg_t;
 
-enum {
+typedef enum {
 	PSA_EXEC = 1,
 	PSA_WRITE = (PSA_EXEC << 1),
 	PSA_READ = (PSA_WRITE << 1),
-- 
2.26.2


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

* ✗ patchtest: failure for pseudo_ipc.h: Fix enum typedef
  2020-05-03  4:27 [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef Jacob Kroon
@ 2020-05-03  4:32 ` Patchwork
  2020-05-03  5:04   ` Jacob Kroon
  2020-05-03  5:28 ` [OE-core] [pseudo][PATCH] " Seebs
  1 sibling, 1 reply; 8+ messages in thread
From: Patchwork @ 2020-05-03  4:32 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: openembedded-core

== Series Details ==

Series: pseudo_ipc.h: Fix enum typedef
Revision: 1
URL   : https://patchwork.openembedded.org/series/23915/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at e44ca998c2)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe


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

* Re: ✗ patchtest: failure for pseudo_ipc.h: Fix enum typedef
  2020-05-03  4:32 ` ✗ patchtest: failure for " Patchwork
@ 2020-05-03  5:04   ` Jacob Kroon
  0 siblings, 0 replies; 8+ messages in thread
From: Jacob Kroon @ 2020-05-03  5:04 UTC (permalink / raw)
  To: openembedded-core

Pseudo README states that patches should be directed to 
openembedded-core ml.

Is there some special magic that needs to go in the message header ?

/Jacob

On 5/3/20 6:32 AM, Patchwork wrote:
> == Series Details ==
> 
> Series: pseudo_ipc.h: Fix enum typedef
> Revision: 1
> URL   : https://patchwork.openembedded.org/series/23915/
> State : failure
> 
> == Summary ==
> 
> 
> Thank you for submitting this patch series to OpenEmbedded Core. This is
> an automated response. Several tests have been executed on the proposed
> series by patchtest resulting in the following failures:
> 
> 
> 
> * Issue             Series does not apply on top of target branch [test_series_merge_on_head]
>    Suggested fix    Rebase your series on top of targeted branch
>    Targeted branch  master (currently at e44ca998c2)
> 
> 
> 
> If you believe any of these test results are incorrect, please reply to the
> mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
> Otherwise we would appreciate you correcting the issues and submitting a new
> version of the patchset if applicable. Please ensure you add/increment the
> version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
> [PATCH v3] -> ...).
> 
> ---
> Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
> Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
> Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
> 

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

* Re: [OE-core] [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef
  2020-05-03  4:27 [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef Jacob Kroon
  2020-05-03  4:32 ` ✗ patchtest: failure for " Patchwork
@ 2020-05-03  5:28 ` Seebs
  2020-05-03 15:49   ` Jacob Kroon
  1 sibling, 1 reply; 8+ messages in thread
From: Seebs @ 2020-05-03  5:28 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: openembedded-core

On Sun,  3 May 2020 06:27:12 +0200
"Jacob Kroon" <jacob.kroon@gmail.com> wrote:

> 'pseudo_access_t' is a type, so use typedef.
> 
> Fixes building pseudo with gcc 10 where -fno-common is the default.

Wow! That's amazing, and yes, that's a bug, and the fix looks right to
me. I don't know how that got missed all these years. (But don't rely
on this evaluation too heavily just yet, I haven't actually looked at
the code more carefully, but this seems obvious.)

-s

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

* Re: [OE-core] [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef
  2020-05-03  5:28 ` [OE-core] [pseudo][PATCH] " Seebs
@ 2020-05-03 15:49   ` Jacob Kroon
  2020-05-03 16:26     ` Seebs
  0 siblings, 1 reply; 8+ messages in thread
From: Jacob Kroon @ 2020-05-03 15:49 UTC (permalink / raw)
  To: Seebs; +Cc: openembedded-core

On 5/3/20 7:28 AM, Seebs wrote:
> On Sun,  3 May 2020 06:27:12 +0200
> "Jacob Kroon" <jacob.kroon@gmail.com> wrote:
> 
>> 'pseudo_access_t' is a type, so use typedef.
>>
>> Fixes building pseudo with gcc 10 where -fno-common is the default.
> 
> Wow! That's amazing, and yes, that's a bug, and the fix looks right to
> me. I don't know how that got missed all these years. (But don't rely
> on this evaluation too heavily just yet, I haven't actually looked at
> the code more carefully, but this seems obvious.)
> 
> -s
> 

The type has never been used, so an alternative fix would be to get rid 
of it altogether, and just keep the enum identifiers.

/Jacob

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

* Re: [OE-core] [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef
  2020-05-03 15:49   ` Jacob Kroon
@ 2020-05-03 16:26     ` Seebs
  2020-05-08  6:09       ` Jacob Kroon
  0 siblings, 1 reply; 8+ messages in thread
From: Seebs @ 2020-05-03 16:26 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: openembedded-core

On Sun, 3 May 2020 17:49:09 +0200
"Jacob Kroon" <jacob.kroon@gmail.com> wrote:

> The type has never been used, so an alternative fix would be to get
> rid of it altogether, and just keep the enum identifiers.

I think I anticipated the type being used for something but it did
indeed not happen. It could also just be changed to 'enum [type]
{ ... }', I guess.

But I think your fix is the simplest and closest to what I probably
thought I was doing at the time.

-s

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

* Re: [OE-core] [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef
  2020-05-03 16:26     ` Seebs
@ 2020-05-08  6:09       ` Jacob Kroon
  2020-05-08 14:04         ` Seebs
  0 siblings, 1 reply; 8+ messages in thread
From: Jacob Kroon @ 2020-05-08  6:09 UTC (permalink / raw)
  To: Seebs; +Cc: openembedded-core

Hi Peter,

On 5/3/20 6:26 PM, Seebs wrote:
> On Sun, 3 May 2020 17:49:09 +0200
> "Jacob Kroon" <jacob.kroon@gmail.com> wrote:
> 
>> The type has never been used, so an alternative fix would be to get
>> rid of it altogether, and just keep the enum identifiers.
> 
> I think I anticipated the type being used for something but it did
> indeed not happen. It could also just be changed to 'enum [type]
> { ... }', I guess.
> 
> But I think your fix is the simplest and closest to what I probably
> thought I was doing at the time.
> 

Do you have any plans on merging this, and also the pending patches in 
oe-core, anytime soon ? Then we could bump the pseudo git rev in oe-core 
and remove those patches, if not then I can add the patch to the pseudo 
recipe. Any way you'd prefer ?

/Jacob

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

* Re: [OE-core] [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef
  2020-05-08  6:09       ` Jacob Kroon
@ 2020-05-08 14:04         ` Seebs
  0 siblings, 0 replies; 8+ messages in thread
From: Seebs @ 2020-05-08 14:04 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: openembedded-core

On Fri, 8 May 2020 08:09:58 +0200
Jacob Kroon <jacob.kroon@gmail.com> wrote:

> Hi Peter,
> 
> On 5/3/20 6:26 PM, Seebs wrote:
> > On Sun, 3 May 2020 17:49:09 +0200
> > "Jacob Kroon" <jacob.kroon@gmail.com> wrote:
> > 
> >> The type has never been used, so an alternative fix would be to get
> >> rid of it altogether, and just keep the enum identifiers.
> > 
> > I think I anticipated the type being used for something but it did
> > indeed not happen. It could also just be changed to 'enum [type]
> > { ... }', I guess.
> > 
> > But I think your fix is the simplest and closest to what I probably
> > thought I was doing at the time.
> > 
> 
> Do you have any plans on merging this, and also the pending patches
> in oe-core, anytime soon ? Then we could bump the pseudo git rev in
> oe-core and remove those patches, if not then I can add the patch to
> the pseudo recipe. Any way you'd prefer ?

It probably makes sense to add things to the pseudo recipe for now, I'm
still trying to catch up on my task backlog from March.

-s

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

end of thread, other threads:[~2020-05-08 14:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-03  4:27 [pseudo][PATCH] pseudo_ipc.h: Fix enum typedef Jacob Kroon
2020-05-03  4:32 ` ✗ patchtest: failure for " Patchwork
2020-05-03  5:04   ` Jacob Kroon
2020-05-03  5:28 ` [OE-core] [pseudo][PATCH] " Seebs
2020-05-03 15:49   ` Jacob Kroon
2020-05-03 16:26     ` Seebs
2020-05-08  6:09       ` Jacob Kroon
2020-05-08 14:04         ` Seebs

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.