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] [thread-next>] [day] [month] [year] [list]
Message-Id: <9ea84c5b-55db-4b16-aede-bf972e35f1f3@www.fastmail.com>
Date:   Sun, 28 Mar 2021 12:11:34 +0200
From:   "Sven Peter" <sven@...npeter.dev>
To:     "kernel test robot" <lkp@...el.com>
Cc:     "Will Deacon" <will@...nel.org>,
        "Robin Murphy" <robin.murphy@....com>,
        "Joerg Roedel" <joro@...tes.org>,
        "Rob Herring" <robh+dt@...nel.org>, kbuild-all@...ts.01.org,
        "Arnd Bergmann" <arnd@...nel.org>, devicetree@...r.kernel.org,
        "Hector Martin" <marcan@...can.st>, linux-kernel@...r.kernel.org,
        "Marc Zyngier" <maz@...nel.org>
Subject: Re: [PATCH v2 3/3] iommu: dart: Add DART iommu driver

Hi,


On Sun, Mar 28, 2021, at 11:34, kernel test robot wrote:
> 
> All error/warnings (new ones prefixed by >>):
> 
>    drivers/iommu/apple-dart-iommu.c: In function 'apple_dart_finalize_domain':
> >> drivers/iommu/apple-dart-iommu.c:427:34: error: implicit declaration of function 'DMA_BIT_MASK'; did you mean 'BIT_MASK'? [-Werror=implicit-function-declaration]
>      427 |  domain->geometry.aperture_end = DMA_BIT_MASK(32);
>          |                                  ^~~~~~~~~~~~
>          |                                  BIT_MASK


Fixed by adding the missing <linux/dma-mapping.h> include for DMA_BIT_MASK.

>    drivers/iommu/apple-dart-iommu.c: In function 'apple_dart_attach_stream':
> >> drivers/iommu/apple-dart-iommu.c:456:11: error: implicit declaration of function 'kzalloc'; did you mean 'kvzalloc'? [-Werror=implicit-function-declaration]
>      456 |  stream = kzalloc(sizeof(*stream), GFP_KERNEL);
>          |           ^~~~~~~
>          |           kvzalloc
> >> drivers/iommu/apple-dart-iommu.c:456:9: warning: assignment to 'struct apple_dart_stream *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
>      456 |  stream = kzalloc(sizeof(*stream), GFP_KERNEL);
>          |         ^
>    drivers/iommu/apple-dart-iommu.c: In function 'apple_dart_detach_stream':
> >> drivers/iommu/apple-dart-iommu.c:523:5: error: implicit declaration of function 'kfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
>      523 |     kfree(stream);
>          |     ^~~~~
>          |     kvfree
>    drivers/iommu/apple-dart-iommu.c: In function 'apple_dart_domain_alloc':
> >> drivers/iommu/apple-dart-iommu.c:627:14: warning: assignment to 'struct apple_dart_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
>      627 |  dart_domain = kzalloc(sizeof(*dart_domain), GFP_KERNEL);
>          |              ^
>    drivers/iommu/apple-dart-iommu.c: In function 'apple_dart_of_xlate':
> >> drivers/iommu/apple-dart-iommu.c:659:7: warning: assignment to 'struct apple_dart_master_cfg *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
>      659 |   cfg = kzalloc(struct_size(cfg, streams, 1), GFP_KERNEL);
>          |       ^
> >> drivers/iommu/apple-dart-iommu.c:663:13: error: implicit declaration 
> of function 'krealloc'; did you mean 'kvcalloc'? 
> [-Werror=implicit-function-declaration]
>      663 |   cfg_new = krealloc(
>          |             ^~~~~~~~
>          |             kvcalloc
>    drivers/iommu/apple-dart-iommu.c:663:11: warning: assignment to 
> 'struct apple_dart_master_cfg *' from 'int' makes pointer from integer 
> without a cast [-Wint-conversion]
>      663 |   cfg_new = krealloc(
>          |           ^
>    cc1: some warnings being treated as errors
> 
> 

Fixed by adding the missing <linux/slab.h> include for krealloc, kfree and kzalloc.


Thanks,

Sven

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ