All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: drivers/iio/test/iio-test-format.c:98:1: warning: the frame size of 1520 bytes is larger than 1024 bytes
Date: Mon, 5 Jul 2021 05:08:34 +0800	[thread overview]
Message-ID: <202107050532.l9qfPdnR-lkp@intel.com> (raw)

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

Hi Lars-Peter,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   303392fd5c160822bf778270b28ec5ea50cab2b4
commit: 0bf49ffbfe949df21e95b8f95b5f308db379ac74 iio: Add basic unit test for iio_format_value()
date:   4 months ago
config: arm-randconfig-r024-20210705 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0bf49ffbfe949df21e95b8f95b5f308db379ac74
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0bf49ffbfe949df21e95b8f95b5f308db379ac74
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/iio/test/iio-test-format.c: In function 'iio_test_iio_format_value_fixedpoint':
>> drivers/iio/test/iio-test-format.c:98:1: warning: the frame size of 1520 bytes is larger than 1024 bytes [-Wframe-larger-than=]
      98 | }
         | ^


vim +98 drivers/iio/test/iio-test-format.c

    41	
    42	static void iio_test_iio_format_value_fixedpoint(struct kunit *test)
    43	{
    44		char *buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL);
    45		int values[2];
    46		int ret;
    47	
    48		/* positive >= 1 */
    49		values[0] = 1;
    50		values[1] = 10;
    51	
    52		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    53		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "1.000010\n");
    54	
    55		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    56		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "1.000010 dB\n");
    57	
    58		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    59		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "1.000000010\n");
    60	
    61		/* positive < 1 */
    62		values[0] = 0;
    63		values[1] = 12;
    64	
    65		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    66		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0.000012\n");
    67	
    68		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    69		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0.000012 dB\n");
    70	
    71		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    72		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0.000000012\n");
    73	
    74		/* negative <= -1 */
    75		values[0] = -1;
    76		values[1] = 10;
    77	
    78		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    79		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-1.000010\n");
    80	
    81		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    82		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-1.000010 dB\n");
    83	
    84		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    85		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-1.000000010\n");
    86	
    87		/* negative > -1 */
    88		values[0] = 0;
    89		values[1] = -123;
    90		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    91		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-0.000123\n");
    92	
    93		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    94		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-0.000123 dB\n");
    95	
    96		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    97		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-0.000000123\n");
  > 98	}
    99	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30419 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/iio/test/iio-test-format.c:98:1: warning: the frame size of 1520 bytes is larger than 1024 bytes
Date: Mon, 05 Jul 2021 05:08:34 +0800	[thread overview]
Message-ID: <202107050532.l9qfPdnR-lkp@intel.com> (raw)

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

Hi Lars-Peter,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   303392fd5c160822bf778270b28ec5ea50cab2b4
commit: 0bf49ffbfe949df21e95b8f95b5f308db379ac74 iio: Add basic unit test for iio_format_value()
date:   4 months ago
config: arm-randconfig-r024-20210705 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0bf49ffbfe949df21e95b8f95b5f308db379ac74
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0bf49ffbfe949df21e95b8f95b5f308db379ac74
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/iio/test/iio-test-format.c: In function 'iio_test_iio_format_value_fixedpoint':
>> drivers/iio/test/iio-test-format.c:98:1: warning: the frame size of 1520 bytes is larger than 1024 bytes [-Wframe-larger-than=]
      98 | }
         | ^


vim +98 drivers/iio/test/iio-test-format.c

    41	
    42	static void iio_test_iio_format_value_fixedpoint(struct kunit *test)
    43	{
    44		char *buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL);
    45		int values[2];
    46		int ret;
    47	
    48		/* positive >= 1 */
    49		values[0] = 1;
    50		values[1] = 10;
    51	
    52		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    53		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "1.000010\n");
    54	
    55		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    56		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "1.000010 dB\n");
    57	
    58		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    59		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "1.000000010\n");
    60	
    61		/* positive < 1 */
    62		values[0] = 0;
    63		values[1] = 12;
    64	
    65		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    66		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0.000012\n");
    67	
    68		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    69		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0.000012 dB\n");
    70	
    71		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    72		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0.000000012\n");
    73	
    74		/* negative <= -1 */
    75		values[0] = -1;
    76		values[1] = 10;
    77	
    78		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    79		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-1.000010\n");
    80	
    81		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    82		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-1.000010 dB\n");
    83	
    84		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    85		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-1.000000010\n");
    86	
    87		/* negative > -1 */
    88		values[0] = 0;
    89		values[1] = -123;
    90		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, 2, values);
    91		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-0.000123\n");
    92	
    93		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, 2, values);
    94		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-0.000123 dB\n");
    95	
    96		ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, 2, values);
    97		IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-0.000000123\n");
  > 98	}
    99	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30419 bytes --]

             reply	other threads:[~2021-07-04 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-04 21:08 kernel test robot [this message]
2021-07-04 21:08 ` drivers/iio/test/iio-test-format.c:98:1: warning: the frame size of 1520 bytes is larger than 1024 bytes kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-06-01  0:35 kernel test robot
2021-06-01  0:35 ` 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=202107050532.l9qfPdnR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=kbuild-all@lists.01.org \
    --cc=lars@metafoo.de \
    --cc=linux-kernel@vger.kernel.org \
    /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.