public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tyler <uboot@pukatronic.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] __kernel_size_t vs size_t which to use
Date: Mon, 2 Nov 2015 20:41:13 -0500	[thread overview]
Message-ID: <563810B9.7020600@pukatronic.net> (raw)

hey folks,

busy list!  Quick question.

I'm trying to build on ! linux and I'm just wondering about the 
consistency of use of __kernel_size_t vs size_t use in the code base 
what is 'correct'?

I end up with the a little bit of fallout when I build.

   CC      arch/arm/cpu/armv7/am33xx/board.o
In file included from ../include/linux/compat.h:4:0,
                  from ../include/dm/device.h:17,
                  from ../include/dm.h:10,
                  from ../arch/arm/cpu/armv7/am33xx/board.c:12:
../include/malloc.h:364:7: error: conflicting types for 'memset'
  void* memset(void*, int, size_t);
        ^
In file included from ../include/common.h:22:0,
                  from ../arch/arm/cpu/armv7/am33xx/board.c:11:
../include/linux/string.h:78:15: note: previous declaration of 'memset' 
was here
  extern void * memset(void *,int,__kernel_size_t);

Quick examination shows we probably want to change the prototype in 
include/malloc.h to be __kernel_size_t since the various machines 
posix_types.h appear to be defining the correct width type to that 
definition (most of the time anyway).

Is this the right thing to do?

Thanks!

                 reply	other threads:[~2015-11-03  1:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=563810B9.7020600@pukatronic.net \
    --to=uboot@pukatronic.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox