All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Cassel <Niklas.Cassel@wdc.com>
To: kernel test robot <lkp@intel.com>
Cc: Damien Le Moal <dlemoal@kernel.org>,
	"oe-kbuild-all@lists.linux.dev" <oe-kbuild-all@lists.linux.dev>,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Linus Walleij <linus.walleij@linaro.org>
Subject: Re: [mkp-scsi:for-next 70/83] ./usr/include/linux/ioprio.h:107:8: error: unknown type name '__always_inline'
Date: Thu, 15 Jun 2023 09:53:02 +0000	[thread overview]
Message-ID: <ZIrffaXbecwgjG7S@x1-carbon> (raw)
In-Reply-To: <202306151347.WblKhRwQ-lkp@intel.com>

On Thu, Jun 15, 2023 at 02:00:21PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
> head:   aca416ac0b1fbe89d563f88cdb9884f986863d34
> commit: bfaaaa3d9d09974828dc5c5d44eb2657a65d6b60 [70/83] scsi: block: Improve ioprio value validity checks
> config: i386-randconfig-i012-20230614 (https://download.01.org/0day-ci/archive/20230615/202306151347.WblKhRwQ-lkp@intel.com/config)
> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
> reproduce (this is a W=1 build):
>         # https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?id=bfaaaa3d9d09974828dc5c5d44eb2657a65d6b60
>         git remote add mkp-scsi https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
>         git fetch --no-tags mkp-scsi for-next
>         git checkout bfaaaa3d9d09974828dc5c5d44eb2657a65d6b60
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         make W=1 O=build_dir ARCH=i386 olddefconfig
>         make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202306151347.WblKhRwQ-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from <command-line>:
> >> ./usr/include/linux/ioprio.h:107:8: error: unknown type name '__always_inline'
>      107 | static __always_inline __u16 ioprio_value(int class, int level, int hint)
>          |        ^~~~~~~~~~~~~~~
> >> ./usr/include/linux/ioprio.h:107:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ioprio_value'
>      107 | static __always_inline __u16 ioprio_value(int class, int level, int hint)
>          |                              ^~~~~~~~~~~~
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki


If we really want to use __always_inline,
I think that the uapi header should include:
<linux/stddef.h>

see how e.g.
include/uapi/linux/swab.h:#include <linux/stddef.h>
which also uses __always_inline does it.


(stddef.h includes compiler_attributes.h which redefines
__always_inline to also include inline, and stddef.h also
defines __always_inline if it isn't defined.)


So I suppose:
1) either replace __always_inline with inline in ioprio.h
or
2) let ioprio.h include <linux/stddef.h>


Kind regards,
Niklas

  reply	other threads:[~2023-06-15  9:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15  6:00 [mkp-scsi:for-next 70/83] ./usr/include/linux/ioprio.h:107:8: error: unknown type name '__always_inline' kernel test robot
2023-06-15  9:53 ` Niklas Cassel [this message]
2023-06-16  1:56   ` Damien Le Moal
  -- strict thread matches above, loose matches on Subject: below --
2023-06-15  7:24 kernel test robot

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=ZIrffaXbecwgjG7S@x1-carbon \
    --to=niklas.cassel@wdc.com \
    --cc=dlemoal@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=lkp@intel.com \
    --cc=martin.petersen@oracle.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.