All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Desaulniers <ndesaulniers@google.com>
To: kbuild test robot <lkp@intel.com>
Cc: Bart Van Assche <bvanassche@acm.org>,
	"Martin K . Petersen" <martin.petersen@oracle.com>,
	"James E . J . Bottomley" <jejb@linux.vnet.ibm.com>,
	kbuild-all@lists.01.org,
	clang-built-linux <clang-built-linux@googlegroups.com>,
	linux-scsi@vger.kernel.org, Daniel Wagner <dwagner@suse.de>,
	Himanshu Madhani <himanshu.madhani@oracle.com>,
	Hannes Reinecke <hare@suse.de>,
	Rajan Shanmugavelu <rajan.shanmugavelu@oracle.com>,
	Joe Jin <joe.jin@oracle.com>, Nilesh Javali <njavali@marvell.com>,
	Quinn Tran <qutran@marvell.com>, Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v5 02/11] qla2xxx: Suppress two recently introduced compiler warnings
Date: Thu, 7 May 2020 15:00:21 -0700	[thread overview]
Message-ID: <CAKwvOdnuXX2xpsz6fxV-qfvj1AqN3V7qyOwtwtCG4NWq+HzfAw@mail.gmail.com> (raw)
In-Reply-To: <202005080353.y49Uwj18%lkp@intel.com>

On Thu, May 7, 2020 at 12:18 PM kbuild test robot <lkp@intel.com> wrote:
>
> Hi Bart,
>
> I love your patch! Yet something to improve:
>
> [auto build test ERROR on scsi/for-next]
> [also build test ERROR on mkp-scsi/for-next tip/perf/core v5.7-rc4 next-20200507]
> [if your patch is applied to the wrong git tree, please drop us a note to help
> improve the system. BTW, we also suggest to use '--base' option to specify the
> base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
>
> url:    https://github.com/0day-ci/linux/commits/Bart-Van-Assche/Fix-qla2xxx-endianness-annotations/20200507-135245
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
> config: x86_64-allyesconfig (attached as .config)
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 54b35c066417d4856e9d53313f7e98b354274584)
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # install x86_64 cross compiling tool for clang build
>         # apt-get install binutils-x86-64-linux-gnu
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^

Hi Bart,
These compiler specific pragma's are not toolchain portable.  You'll
need to wrap them in:
#ifndef __clang__
preprocessor macros, or I think we have a pragma helper in tree that
helps with compiler specific pragmas.  IIRC it uses _Pragma to define
pragmas in macros.

>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:95:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:155:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:222:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:402:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:453:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:533:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:727:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:792:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:103:
>    In file included from include/trace/perf.h:90:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:104:
>    In file included from include/trace/bpf_probe.h:114:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    11 errors generated.
>
> vim +13 include/trace/events/qla.h
>
>     11
>     12  #pragma GCC diagnostic push
>   > 13  #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>     14
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202005080353.y49Uwj18%25lkp%40intel.com.



-- 
Thanks,
~Nick Desaulniers

WARNING: multiple messages have this Message-ID (diff)
From: Nick Desaulniers <ndesaulniers@google.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v5 02/11] qla2xxx: Suppress two recently introduced compiler warnings
Date: Thu, 07 May 2020 15:00:21 -0700	[thread overview]
Message-ID: <CAKwvOdnuXX2xpsz6fxV-qfvj1AqN3V7qyOwtwtCG4NWq+HzfAw@mail.gmail.com> (raw)
In-Reply-To: <202005080353.y49Uwj18%lkp@intel.com>

[-- Attachment #1: Type: text/plain, Size: 7679 bytes --]

On Thu, May 7, 2020 at 12:18 PM kbuild test robot <lkp@intel.com> wrote:
>
> Hi Bart,
>
> I love your patch! Yet something to improve:
>
> [auto build test ERROR on scsi/for-next]
> [also build test ERROR on mkp-scsi/for-next tip/perf/core v5.7-rc4 next-20200507]
> [if your patch is applied to the wrong git tree, please drop us a note to help
> improve the system. BTW, we also suggest to use '--base' option to specify the
> base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
>
> url:    https://github.com/0day-ci/linux/commits/Bart-Van-Assche/Fix-qla2xxx-endianness-annotations/20200507-135245
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
> config: x86_64-allyesconfig (attached as .config)
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 54b35c066417d4856e9d53313f7e98b354274584)
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # install x86_64 cross compiling tool for clang build
>         # apt-get install binutils-x86-64-linux-gnu
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^

Hi Bart,
These compiler specific pragma's are not toolchain portable.  You'll
need to wrap them in:
#ifndef __clang__
preprocessor macros, or I think we have a pragma helper in tree that
helps with compiler specific pragmas.  IIRC it uses _Pragma to define
pragmas in macros.

>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:95:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:155:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:222:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:402:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:453:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:533:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:727:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:102:
>    In file included from include/trace/trace_events.h:792:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:103:
>    In file included from include/trace/perf.h:90:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    In file included from drivers/scsi/qla2xxx/qla_dbg.c:77:
>    In file included from include/trace/events/qla.h:44:
>    In file included from include/trace/define_trace.h:104:
>    In file included from include/trace/bpf_probe.h:114:
> >> include/trace/events/qla.h:13:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option]
>    #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>                                   ^
>    11 errors generated.
>
> vim +13 include/trace/events/qla.h
>
>     11
>     12  #pragma GCC diagnostic push
>   > 13  #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
>     14
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
>
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe(a)googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202005080353.y49Uwj18%25lkp%40intel.com.



-- 
Thanks,
~Nick Desaulniers

  reply	other threads:[~2020-05-07 22:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07  4:28 [PATCH v5 00/11] Fix qla2xxx endianness annotations Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 01/11] qla2xxx: Fix spelling of a variable name Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 02/11] qla2xxx: Suppress two recently introduced compiler warnings Bart Van Assche
2020-05-07 19:17   ` kbuild test robot
2020-05-07 19:17     ` kbuild test robot
2020-05-07 22:00     ` Nick Desaulniers [this message]
2020-05-07 22:00       ` Nick Desaulniers
2020-05-07 23:16       ` Bart Van Assche
2020-05-08 21:25         ` Arnd Bergmann
2020-05-08 21:25           ` Arnd Bergmann
2020-05-08 22:29           ` Bart Van Assche
2020-05-09  7:59             ` Arnd Bergmann
2020-05-09  7:59               ` Arnd Bergmann
2020-05-07  4:28 ` [PATCH v5 03/11] qla2xxx: Sort BUILD_BUG_ON() statements alphabetically Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 04/11] qla2xxx: Add more BUILD_BUG_ON() statements Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 05/11] qla2xxx: Make a gap in struct qla2xxx_offld_chain explicit Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 06/11] qla2xxx: Increase the size of struct qla_fcp_prio_cfg to FCP_PRIO_CFG_SIZE Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 07/11] qla2xxx: Change two hardcoded constants into offsetof() / sizeof() expressions Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 08/11] qla2xxx: Fix the code that reads from mailbox registers Bart Van Assche
2020-05-07  4:28 ` [PATCH v5 09/11] qla2xxx: Change {RD,WRT}_REG_*() function names from upper case into lower case Bart Van Assche
2020-05-07  8:30   ` Hannes Reinecke
2020-05-07 10:57   ` [PATCH v5 09/11] qla2xxx: Change {RD, WRT}_REG_*() " kbuild test robot
2020-05-07  4:28 ` [PATCH v5 10/11] qla2xxx: Fix endianness annotations in header files Bart Van Assche
2020-05-07  8:31   ` Hannes Reinecke
2020-05-07  4:28 ` [PATCH v5 11/11] qla2xxx: Fix endianness annotations in source files Bart Van Assche
2020-05-07  9:05   ` Hannes Reinecke
2020-05-07 17:27     ` Bart Van Assche

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=CAKwvOdnuXX2xpsz6fxV-qfvj1AqN3V7qyOwtwtCG4NWq+HzfAw@mail.gmail.com \
    --to=ndesaulniers@google.com \
    --cc=arnd@arndb.de \
    --cc=bvanassche@acm.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dwagner@suse.de \
    --cc=hare@suse.de \
    --cc=himanshu.madhani@oracle.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=joe.jin@oracle.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=martin.petersen@oracle.com \
    --cc=njavali@marvell.com \
    --cc=qutran@marvell.com \
    --cc=rajan.shanmugavelu@oracle.com \
    /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.