lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230404085224.21843f6e@canb.auug.org.au>
Date:   Tue, 4 Apr 2023 08:52:50 +1000
From:   Stephen Rothwell <sfr@...b.auug.org.au>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     Nathan Chancellor <nathan@...nel.org>,
        Linux Next Mailing List <linux-next@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: linux-next: Tree for Apr 3

Hi Greg,

On Mon, 3 Apr 2023 18:01:38 +0200 Greg Kroah-Hartman <gregkh@...uxfoundation.org> wrote:
>
> On Mon, Apr 03, 2023 at 08:51:47AM -0700, Nathan Chancellor wrote:
> > Hi Stephen (and Greg, just as an FYI):
> > 
> > On Mon, Apr 03, 2023 at 08:24:12PM +1000, Stephen Rothwell wrote:
> > 
> > ...
> >   
> > > Merging driver-core/driver-core-next (43ba3d4af7a7 pktcdvd: simplify the class_pktcdvd logic)  
> > 
> > ...
> >   
> > > Merging char-misc/char-misc-next (48a6c7bced2a cdx: add device attributes)  
> > 
> > There is a semantic conflict between these two trees:
> > 
> >   drivers/cdx/cdx.c:393:8: error: incompatible function pointer types initializing 'ssize_t (*)(const struct bus_type *, const char *, size_t)' (aka 'long (*)(const struct bus_type *, const char *, unsigned long)') with an expression of type
> >    'ssize_t (struct bus_type *, const char *, size_t)' (aka 'long (struct bus_type *, const char *, unsigned long)') [-Wincompatible-function-pointer-types]
> >   static BUS_ATTR_WO(rescan);
> >          ^~~~~~~~~~~~~~~~~~~
> >   include/linux/device/bus.h:129:42: note: expanded from macro 'BUS_ATTR_WO'
> >           struct bus_attribute bus_attr_##_name = __ATTR_WO(_name)
> >                                                   ^~~~~~~~~~~~~~~~
> >   include/linux/sysfs.h:135:11: note: expanded from macro '__ATTR_WO'
> >           .store  = _name##_store,                                        \
> >                     ^~~~~~~~~~~~~
> >   <scratch space>:30:1: note: expanded from here
> >   rescan_store
> >   ^~~~~~~~~~~~
> >   1 error generated.
> > 
> > caused by commit 75cff725d956 ("driver core: bus: mark the struct
> > bus_type for sysfs callbacks as constant") in the driver-core tree
> > interacting with commit 2959ab247061 ("cdx: add the cdx bus driver") in
> > the char-misc tree. The following diff fixes it for me, could it be
> > applied to the merge of the char-misc tree (if I am reading the order of
> > your merges correctly)?
> > 
> > If there is a better or more appropriate way to report this, please let
> > me know.
> > 
> > Cheers,
> > Nathan
> > 
> > diff --git a/drivers/cdx/cdx.c b/drivers/cdx/cdx.c
> > index 67c32cb2c006..38511fd36325 100644
> > --- a/drivers/cdx/cdx.c
> > +++ b/drivers/cdx/cdx.c
> > @@ -363,7 +363,7 @@ static struct attribute *cdx_dev_attrs[] = {
> >  };
> >  ATTRIBUTE_GROUPS(cdx_dev);
> >  
> > -static ssize_t rescan_store(struct bus_type *bus,
> > +static ssize_t rescan_store(const struct bus_type *bus,
> >  			    const char *buf, size_t count)
> >  {
> >  	struct cdx_controller *cdx;  
> 
> 
> A patch was already sent for this:
> 	https://lore.kernel.org/r/20230403140416.28183-1-nipun.gupta@amd.com

I will apply that to the chat-misc tree merge from today.

-- 
Cheers,
Stephen Rothwell

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ