All of lore.kernel.org
 help / color / mirror / Atom feed
* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
@ 2019-12-02 15:37 Koch, Stefan
  2019-12-02 15:42 ` Fabrizio Castro
  0 siblings, 1 reply; 9+ messages in thread
From: Koch, Stefan @ 2019-12-02 15:37 UTC (permalink / raw)
  To: cip-dev

Hi

There is a NULL pointer exception issue within the gpiolib of the CIP 
4.4 kernel.
The CIP kernel output and a patch that fix the invalid null pointer 
access are attached.

The vanilla 4.4 kernel is not affected by this bug, because this 
regression affects only CIP 4.4.176-cip32 or newer kernels that contain 
back ported code for the gpiolib. The upstream vanilla kernel contains 
similar code beginning with version 4.17.

The following commits introduce the new functionality for the CIP 
4.4.176-cip32 kernel:
gpiolib: Avoid calling chip->request() for unused gpios, 
ed4f40244354af7b19b3bae5c56cce2620877b7c
gpiolib: Support 'gpio-reserved-ranges' property, 
baff4777cdb80256cd24dede2a3d0af761356307
gpiolib: Extract mask allocation into subroutine, 
171aad2d8519db9940d84e337da96aac8b1eb36c

Thank you.

-- 
Best regards
Stefan Koch

Siemens AG
Digital Industries
Process Automation
Software House Nbg
DI PA CI R&D 3
Gleiwitzer Str. 555
90475 Nuernberg, Germany
stefan-koch at siemens.com <mailto:stefan-koch@siemens.com>
www.siemens.com/ingenuityforlife <https://siemens.com/ingenuityforlife>
www.siemens.com/ingenuityforlife
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim Hagemann Snabe; Managing Board: Joe Kaeser, Chairman, President and Chief Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Cedrik Neike, Michael Sen, Ralf P. Thomas; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gpiolib-Fix-invalid-access-of-nullptr.patch
Type: text/x-patch
Size: 2053 bytes
Desc: 0001-gpiolib-Fix-invalid-access-of-nullptr.patch
URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20191202/2420f473/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kernel-panic.txt
URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20191202/2420f473/attachment.txt>

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-02 15:37 [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr Koch, Stefan
@ 2019-12-02 15:42 ` Fabrizio Castro
  2019-12-03  4:11   ` Johnson CH Chen (陳昭勳)
  2019-12-04  0:19   ` nobuhiro1.iwamatsu at toshiba.co.jp
  0 siblings, 2 replies; 9+ messages in thread
From: Fabrizio Castro @ 2019-12-02 15:42 UTC (permalink / raw)
  To: cip-dev

Hi Stefan,

That's a known problem, please have a  look at:
https://patchwork.kernel.org/patch/11235267/

Pavel, Iwamatsu-san, could you please take patch:
https://patchwork.kernel.org/patch/11235267/

I think this is quite urgent as others will stumble across the problem and will try and fix it.

Thanks,
Fab

> -----Original Message-----
> From: Koch, Stefan <stefan-koch@siemens.com>
> Sent: 02 December 2019 15:37
> To: cip-dev at lists.cip-project.org
> Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>; pavel at denx.de; nobuhiro1.iwamatsu at toshiba.co.jp
> Subject: [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
> 
> Hi
> 
> There is a NULL pointer exception issue within the gpiolib of the CIP
> 4.4 kernel.
> The CIP kernel output and a patch that fix the invalid null pointer
> access are attached.
> 
> The vanilla 4.4 kernel is not affected by this bug, because this
> regression affects only CIP 4.4.176-cip32 or newer kernels that contain
> back ported code for the gpiolib. The upstream vanilla kernel contains
> similar code beginning with version 4.17.
> 
> The following commits introduce the new functionality for the CIP
> 4.4.176-cip32 kernel:
> gpiolib: Avoid calling chip->request() for unused gpios,
> ed4f40244354af7b19b3bae5c56cce2620877b7c
> gpiolib: Support 'gpio-reserved-ranges' property,
> baff4777cdb80256cd24dede2a3d0af761356307
> gpiolib: Extract mask allocation into subroutine,
> 171aad2d8519db9940d84e337da96aac8b1eb36c
> 
> Thank you.
> 
> --
> Best regards
> Stefan Koch
> 
> Siemens AG
> Digital Industries
> Process Automation
> Software House Nbg
> DI PA CI R&D 3
> Gleiwitzer Str. 555
> 90475 Nuernberg, Germany
> stefan-koch at siemens.com <mailto:stefan-koch@siemens.com>
> www.siemens.com/ingenuityforlife <https://siemens.com/ingenuityforlife>
> www.siemens.com/ingenuityforlife
> Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim Hagemann Snabe; Managing Board: Joe Kaeser, Chairman,
> President and Chief Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Cedrik Neike, Michael Sen, Ralf P.
> Thomas; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684;
> WEEE-Reg.-No. DE 23691322
> 
> 

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-02 15:42 ` Fabrizio Castro
@ 2019-12-03  4:11   ` Johnson CH Chen (陳昭勳)
  2019-12-04  0:19   ` nobuhiro1.iwamatsu at toshiba.co.jp
  1 sibling, 0 replies; 9+ messages in thread
From: Johnson CH Chen (陳昭勳) @ 2019-12-03  4:11 UTC (permalink / raw)
  To: cip-dev

Hi Pavel and Iwamatsu-san,

> From: cip-dev <cip-dev-bounces@lists.cip-project.org> On Behalf Of 
> Fabrizio Castro
> Sent: Monday, December 2, 2019 11:43 PM
> To: Koch, Stefan <stefan-koch@siemens.com>; 
> cip-dev at lists.cip-project.org
> Cc: Biju Das <biju.das@bp.renesas.com>
> Subject: Re: [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access 
> of nullptr
>
> Hi Stefan,
>
> That's a known problem, please have a  look at:
> https://patchwork.kernel.org/patch/11235267/
>
> Pavel, Iwamatsu-san, could you please take patch:
> https://patchwork.kernel.org/patch/11235267/
>
> I think this is quite urgent as others will stumble across the problem and will try and fix it.
>

For "fix" a backport issue, should we follow upstream first in CIP?

> Thanks,
> Fab
>


Best regards,
Johnson

<span class="sew4j6gfd2s3o7x"><br></span>> > -----Original Message-----
> > From: Koch, Stefan <stefan-koch@siemens.com>
> > Sent: 02 December 2019 15:37
> > To: cip-dev at lists.cip-project.org
> > Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>; pavel at denx.de; 
> > nobuhiro1.iwamatsu at toshiba.co.jp
> > Subject: [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
> >
> > Hi
> >
> > There is a NULL pointer exception issue within the gpiolib of the 
> > CIP
> > 4.4 kernel.
> > The CIP kernel output and a patch that fix the invalid null pointer 
> > access are attached.
> >
> > The vanilla 4.4 kernel is not affected by this bug, because this 
> > regression affects only CIP 4.4.176-cip32 or newer kernels that 
> > contain back ported code for the gpiolib. The upstream vanilla 
> > kernel contains similar code beginning with version 4.17.
> >
> > The following commits introduce the new functionality for the CIP
> > 4.4.176-cip32 kernel:
> > gpiolib: Avoid calling chip->request() for unused gpios, 
> > ed4f40244354af7b19b3bae5c56cce2620877b7c
> > gpiolib: Support 'gpio-reserved-ranges' property,
> > baff4777cdb80256cd24dede2a3d0af761356307
> > gpiolib: Extract mask allocation into subroutine, 
> > 171aad2d8519db9940d84e337da96aac8b1eb36c
> >
> > Thank you.
> >
> > --
> > Best regards
> > Stefan Koch
> >
> > Siemens AG
> > Digital Industries
> > Process Automation
> > Software House Nbg
> > DI PA CI R&D 3
> > Gleiwitzer Str. 555
> > 90475 Nuernberg, Germany
> > stefan-koch at siemens.com <mailto:stefan-koch@siemens.com> 
> > www.siemens.com/ingenuityforlife 
> > <https://siemens.com/ingenuityforlife>
> > www.siemens.com/ingenuityforlife
> > Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim 
> > Hagemann Snabe; Managing Board: Joe Kaeser, Chairman, President and Chief Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Cedrik Neike, Michael Sen, Ralf P.
> > Thomas; Registered offices: Berlin and Munich, Germany; Commercial
> > registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684; 
> > WEEE-Reg.-No. DE 23691322
> >
> >
>
> _______________________________________________
> cip-dev mailing list
> cip-dev at lists.cip-project.org
> https://lists.cip-project.org/mailman/listinfo/cip-dev

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-02 15:42 ` Fabrizio Castro
  2019-12-03  4:11   ` Johnson CH Chen (陳昭勳)
@ 2019-12-04  0:19   ` nobuhiro1.iwamatsu at toshiba.co.jp
  2019-12-04  8:24     ` Fabrizio Castro
  2019-12-04 12:36     ` Pavel Machek
  1 sibling, 2 replies; 9+ messages in thread
From: nobuhiro1.iwamatsu at toshiba.co.jp @ 2019-12-04  0:19 UTC (permalink / raw)
  To: cip-dev

Hi Fabrizio, Stefan,

> -----Original Message-----
> From: Fabrizio Castro [mailto:fabrizio.castro at bp.renesas.com]
> Sent: Tuesday, December 3, 2019 12:43 AM
> To: Koch, Stefan <stefan-koch@siemens.com>;
> cip-dev at lists.cip-project.org
> Cc: pavel at denx.de; iwamatsu nobuhiro(?? ?? ????????)
> <nobuhiro1.iwamatsu@toshiba.co.jp>; Chris Paterson
> <Chris.Paterson2@renesas.com>; Biju Das <biju.das@bp.renesas.com>
> Subject: RE: [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
> 
> Hi Stefan,
> 
> That's a known problem, please have a  look at:
> https://patchwork.kernel.org/patch/11235267/
> 
> Pavel, Iwamatsu-san, could you please take patch:
> https://patchwork.kernel.org/patch/11235267/
> 
> I think this is quite urgent as others will stumble across the problem
> and will try and fix it.

OK, I will apply this with following comment if there is no other opinion.

NOTE: gpiochip_add_data()'s fixes is based on 6ff0497402ef7269ee6a72f62eb85adaa7a4768e.

Best regards,
  Nobuhiro

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-04  0:19   ` nobuhiro1.iwamatsu at toshiba.co.jp
@ 2019-12-04  8:24     ` Fabrizio Castro
  2019-12-04 12:36     ` Pavel Machek
  1 sibling, 0 replies; 9+ messages in thread
From: Fabrizio Castro @ 2019-12-04  8:24 UTC (permalink / raw)
  To: cip-dev

Hi Iwamatsu-san,

Thank you for your feedback!

> From: nobuhiro1.iwamatsu at toshiba.co.jp <nobuhiro1.iwamatsu@toshiba.co.jp>
> Sent: 04 December 2019 00:20
> Subject: RE: [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
> 
> Hi Fabrizio, Stefan,
> 
> > -----Original Message-----
> > From: Fabrizio Castro [mailto:fabrizio.castro at bp.renesas.com]
> > Sent: Tuesday, December 3, 2019 12:43 AM
> > To: Koch, Stefan <stefan-koch@siemens.com>;
> > cip-dev at lists.cip-project.org
> > Cc: pavel at denx.de; iwamatsu nobuhiro(?? ?? ????????)
> > <nobuhiro1.iwamatsu@toshiba.co.jp>; Chris Paterson
> > <Chris.Paterson2@renesas.com>; Biju Das <biju.das@bp.renesas.com>
> > Subject: RE: [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
> >
> > Hi Stefan,
> >
> > That's a known problem, please have a  look at:
> > https://patchwork.kernel.org/patch/11235267/
> >
> > Pavel, Iwamatsu-san, could you please take patch:
> > https://patchwork.kernel.org/patch/11235267/
> >
> > I think this is quite urgent as others will stumble across the problem
> > and will try and fix it.
> 
> OK, I will apply this with following comment if there is no other opinion.
> 
> NOTE: gpiochip_add_data()'s fixes is based on 6ff0497402ef7269ee6a72f62eb85adaa7a4768e.

Great, thanks!

Fab

> 
> Best regards,
>   Nobuhiro
> 

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-04  0:19   ` nobuhiro1.iwamatsu at toshiba.co.jp
  2019-12-04  8:24     ` Fabrizio Castro
@ 2019-12-04 12:36     ` Pavel Machek
  2019-12-04 23:21       ` nobuhiro1.iwamatsu at toshiba.co.jp
  1 sibling, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2019-12-04 12:36 UTC (permalink / raw)
  To: cip-dev

Hi!

> > That's a known problem, please have a  look at:
> > https://patchwork.kernel.org/patch/11235267/
> > 
> > Pavel, Iwamatsu-san, could you please take patch:
> > https://patchwork.kernel.org/patch/11235267/
> > 
> > I think this is quite urgent as others will stumble across the problem
> > and will try and fix it.
> 
> OK, I will apply this with following comment if there is no other opinion.
> 
> NOTE: gpiochip_add_data()'s fixes is based on 6ff0497402ef7269ee6a72f62eb85adaa7a4768e.

Sounds good to me.

Best regards,
								Pavel
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20191204/16963314/attachment.sig>

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-04 12:36     ` Pavel Machek
@ 2019-12-04 23:21       ` nobuhiro1.iwamatsu at toshiba.co.jp
  2019-12-05  9:44         ` Chris Paterson
  0 siblings, 1 reply; 9+ messages in thread
From: nobuhiro1.iwamatsu at toshiba.co.jp @ 2019-12-04 23:21 UTC (permalink / raw)
  To: cip-dev

> -----Original Message-----
> From: Pavel Machek [mailto:pavel at denx.de]
> Sent: Wednesday, December 4, 2019 9:37 PM
> To: iwamatsu nobuhiro(?? ?? ????????)
> <nobuhiro1.iwamatsu@toshiba.co.jp>
> Cc: fabrizio.castro at bp.renesas.com; stefan-koch at siemens.com;
> cip-dev at lists.cip-project.org; pavel at denx.de;
> Chris.Paterson2 at renesas.com; biju.das at bp.renesas.com
> Subject: Re: [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
> 
> Hi!
> 
> > > That's a known problem, please have a  look at:
> > > https://patchwork.kernel.org/patch/11235267/
> > >
> > > Pavel, Iwamatsu-san, could you please take patch:
> > > https://patchwork.kernel.org/patch/11235267/
> > >
> > > I think this is quite urgent as others will stumble across the
> > > problem and will try and fix it.
> >
> > OK, I will apply this with following comment if there is no other opinion.
> >
> > NOTE: gpiochip_add_data()'s fixes is based on
> 6ff0497402ef7269ee6a72f62eb85adaa7a4768e.
> 
> Sounds good to me.

Applied.

Best regards,
  Nobuhiro

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-04 23:21       ` nobuhiro1.iwamatsu at toshiba.co.jp
@ 2019-12-05  9:44         ` Chris Paterson
  2019-12-05 10:04           ` Fabrizio Castro
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Paterson @ 2019-12-05  9:44 UTC (permalink / raw)
  To: cip-dev

Hello all,

> From: nobuhiro1.iwamatsu at toshiba.co.jp
> <nobuhiro1.iwamatsu@toshiba.co.jp>
> Sent: 04 December 2019 23:21
> 
> > From: Pavel Machek [mailto:pavel at denx.de]
> > Sent: Wednesday, December 4, 2019 9:37 PM
> >
> > Hi!
> >
> > > > That's a known problem, please have a  look at:
> > > > https://patchwork.kernel.org/patch/11235267/
> > > >
> > > > Pavel, Iwamatsu-san, could you please take patch:
> > > > https://patchwork.kernel.org/patch/11235267/
> > > >
> > > > I think this is quite urgent as others will stumble across the
> > > > problem and will try and fix it.
> > >
> > > OK, I will apply this with following comment if there is no other opinion.
> > >
> > > NOTE: gpiochip_add_data()'s fixes is based on
> > 6ff0497402ef7269ee6a72f62eb85adaa7a4768e.
> >
> > Sounds good to me.
> 
> Applied.

This patch seems to have broken builds for 2/16 of our v4.4.y-cip configurations.
Pipeline: https://gitlab.com/cip-project/cip-kernel/linux-cip/pipelines/100757773

1) x86_plathome_obsvx1.config:  https://gitlab.com/cip-project/cip-kernel/linux-cip/-/jobs/369871332

Error log:
3274 drivers/gpio/gpiolib.c: In function 'gpiochip_add_data':
3275 drivers/gpio/gpiolib.c:363:12: error: 'struct gpio_chip' has no member named 'of_node'
3276   if ((!chip->of_node) && (chip->dev))
3277             ^~
3278 drivers/gpio/gpiolib.c:364:7: error: 'struct gpio_chip' has no member named 'of_node'
3279    chip->of_node = chip->dev->of_node;
3280        ^~
3281   CC      drivers/dma/ioat/prep.o
3282 scripts/Makefile.build:277: recipe for target 'drivers/gpio/gpiolib.o' failed
3283 make[2]: *** [drivers/gpio/gpiolib.o] Error 1
3284 scripts/Makefile.build:484: recipe for target 'drivers/gpio' failed
3285 make[1]: *** [drivers/gpio] Error 2
3286 make[1]: *** Waiting for unfinished jobs....


2) x86_siemens_iot2000.config: https://gitlab.com/cip-project/cip-kernel/linux-cip/-/jobs/369871333

Error log:
2729 drivers/gpio/gpiolib.c: In function 'gpiochip_add_data':
2730 drivers/gpio/gpiolib.c:363:12: error: 'struct gpio_chip' has no member named 'of_node'
2731   if ((!chip->of_node) && (chip->dev))
2732             ^~
2733 drivers/gpio/gpiolib.c:364:7: error: 'struct gpio_chip' has no member named 'of_node'
2734    chip->of_node = chip->dev->of_node;
2735        ^~
2736 scripts/Makefile.build:277: recipe for target 'drivers/gpio/gpiolib.o' failed
2737 make[2]: *** [drivers/gpio/gpiolib.o] Error 1
2738 make[1]: *** [drivers/gpio] Error 2
2739 make[1]: *** Waiting for unfinished jobs....
2740 scripts/Makefile.build:484: recipe for target 'drivers/gpio' failed


Kind regards, Chris

> 
> Best regards,
>   Nobuhiro

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

* [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
  2019-12-05  9:44         ` Chris Paterson
@ 2019-12-05 10:04           ` Fabrizio Castro
  0 siblings, 0 replies; 9+ messages in thread
From: Fabrizio Castro @ 2019-12-05 10:04 UTC (permalink / raw)
  To: cip-dev

Hi Chris,

Thank you for your feedback!

> From: Chris Paterson <Chris.Paterson2@renesas.com>
> Sent: 05 December 2019 09:44
> To: nobuhiro1.iwamatsu at toshiba.co.jp; pavel at denx.de
> Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>; stefan-koch at siemens.com; cip-dev at lists.cip-project.org; Biju Das
> <biju.das@bp.renesas.com>
> Subject: RE: [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr
> 
> Hello all,
> 
> > From: nobuhiro1.iwamatsu at toshiba.co.jp
> > <nobuhiro1.iwamatsu@toshiba.co.jp>
> > Sent: 04 December 2019 23:21
> >
> > > From: Pavel Machek [mailto:pavel at denx.de]
> > > Sent: Wednesday, December 4, 2019 9:37 PM
> > >
> > > Hi!
> > >
> > > > > That's a known problem, please have a  look at:
> > > > > https://patchwork.kernel.org/patch/11235267/
> > > > >
> > > > > Pavel, Iwamatsu-san, could you please take patch:
> > > > > https://patchwork.kernel.org/patch/11235267/
> > > > >
> > > > > I think this is quite urgent as others will stumble across the
> > > > > problem and will try and fix it.
> > > >
> > > > OK, I will apply this with following comment if there is no other opinion.
> > > >
> > > > NOTE: gpiochip_add_data()'s fixes is based on
> > > 6ff0497402ef7269ee6a72f62eb85adaa7a4768e.
> > >
> > > Sounds good to me.
> >
> > Applied.
> 
> This patch seems to have broken builds for 2/16 of our v4.4.y-cip configurations.
> Pipeline: https://gitlab.com/cip-project/cip-kernel/linux-cip/pipelines/100757773
> 
> 1) x86_plathome_obsvx1.config:  https://gitlab.com/cip-project/cip-kernel/linux-cip/-/jobs/369871332
> 
> Error log:
> 3274 drivers/gpio/gpiolib.c: In function 'gpiochip_add_data':
> 3275 drivers/gpio/gpiolib.c:363:12: error: 'struct gpio_chip' has no member named 'of_node'
> 3276   if ((!chip->of_node) && (chip->dev))
> 3277             ^~
> 3278 drivers/gpio/gpiolib.c:364:7: error: 'struct gpio_chip' has no member named 'of_node'
> 3279    chip->of_node = chip->dev->of_node;
> 3280        ^~
> 3281   CC      drivers/dma/ioat/prep.o
> 3282 scripts/Makefile.build:277: recipe for target 'drivers/gpio/gpiolib.o' failed
> 3283 make[2]: *** [drivers/gpio/gpiolib.o] Error 1
> 3284 scripts/Makefile.build:484: recipe for target 'drivers/gpio' failed
> 3285 make[1]: *** [drivers/gpio] Error 2
> 3286 make[1]: *** Waiting for unfinished jobs....
> 
> 
> 2) x86_siemens_iot2000.config: https://gitlab.com/cip-project/cip-kernel/linux-cip/-/jobs/369871333
> 
> Error log:
> 2729 drivers/gpio/gpiolib.c: In function 'gpiochip_add_data':
> 2730 drivers/gpio/gpiolib.c:363:12: error: 'struct gpio_chip' has no member named 'of_node'
> 2731   if ((!chip->of_node) && (chip->dev))
> 2732             ^~
> 2733 drivers/gpio/gpiolib.c:364:7: error: 'struct gpio_chip' has no member named 'of_node'
> 2734    chip->of_node = chip->dev->of_node;
> 2735        ^~
> 2736 scripts/Makefile.build:277: recipe for target 'drivers/gpio/gpiolib.o' failed
> 2737 make[2]: *** [drivers/gpio/gpiolib.o] Error 1
> 2738 make[1]: *** [drivers/gpio] Error 2
> 2739 make[1]: *** Waiting for unfinished jobs....
> 2740 scripts/Makefile.build:484: recipe for target 'drivers/gpio' failed

This makes a lot of sense, Intel would not have CONFIG_OF_GPIO set!
I'll send another version.

Thanks,
Fab

> 
> 
> Kind regards, Chris
> 
> >
> > Best regards,
> >   Nobuhiro

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

end of thread, other threads:[~2019-12-05 10:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02 15:37 [cip-dev] [PATCH 4.4.y-cip] gpiolib: Fix invalid access of nullptr Koch, Stefan
2019-12-02 15:42 ` Fabrizio Castro
2019-12-03  4:11   ` Johnson CH Chen (陳昭勳)
2019-12-04  0:19   ` nobuhiro1.iwamatsu at toshiba.co.jp
2019-12-04  8:24     ` Fabrizio Castro
2019-12-04 12:36     ` Pavel Machek
2019-12-04 23:21       ` nobuhiro1.iwamatsu at toshiba.co.jp
2019-12-05  9:44         ` Chris Paterson
2019-12-05 10:04           ` Fabrizio Castro

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.