All of lore.kernel.org
 help / color / mirror / Atom feed
From: shuah at kernel.org (Shuah Khan)
Subject: [PATCH] selftests:firmware: fixes a call to a wrong function name
Date: Wed, 25 Apr 2018 09:30:51 -0600	[thread overview]
Message-ID: <ad2a60e7-d8a1-fe6b-e3c4-bdb71060245e@kernel.org> (raw)
In-Reply-To: <20180425152657.GA5139@kroah.com>

On 04/25/2018 09:26 AM, Greg KH wrote:
> On Mon, Apr 23, 2018 at 09:39:02AM -0700, Kees Cook wrote:
>> On Mon, Apr 23, 2018 at 7:10 AM, Jeffrin Jose T <ahiliation at yahoo.co.in> wrote:
>>>  This is a patch to the tools/testing/selftests/firmware/fw_run_tests.sh
>>>  file which fixes a bug which calls to a wrong function name,which in turn
>>>  blocks the execution of certain tests.
>>>
>>> Signed-off-by: Jeffrin Jose T <jeffrin at rajagiritech.edu.in>
>>>
>>> ---
>>>  tools/testing/selftests/firmware/fw_run_tests.sh | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/tools/testing/selftests/firmware/fw_run_tests.sh b/tools/testing/selftests/firmware/fw_run_tests.sh
>>> index 06d638e9dc62..cffdd4eb0a57 100755
>>> --- a/tools/testing/selftests/firmware/fw_run_tests.sh
>>> +++ b/tools/testing/selftests/firmware/fw_run_tests.sh
>>> @@ -66,5 +66,5 @@ if [ -f $FW_FORCE_SYSFS_FALLBACK ]; then
>>>         run_test_config_0003
>>>  else
>>>         echo "Running basic kernel configuration, working with your config"
>>> -       run_test
>>> +       run_tests
>>>  fi
>>
>> I find it confusing that run_tests() uses $1 and $2 but later ignores
>> them unless -f $FW_FORCE_SYSFS_FALLBACK, which is checked at both the
>> top level and in proc_set_*_fallback()... I'd expected the test to
>> happen only in run_tests() and have it removed from from
>> proc_set_*_fallback().
>>
>> Regardless, the above patch is correct to run the tests. :)
> 
> Thanks, I'll go queue this up.
> 
> greg k-h
> 

Thanks. This probably has dependency on firmware tree.

Acked-by: Shuah Khan (Samsung OSG) <shuah at kernel.org>

-- Shuah
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: shuah@kernel.org (Shuah Khan)
Subject: [PATCH] selftests:firmware: fixes a call to a wrong function name
Date: Wed, 25 Apr 2018 09:30:51 -0600	[thread overview]
Message-ID: <ad2a60e7-d8a1-fe6b-e3c4-bdb71060245e@kernel.org> (raw)
Message-ID: <20180425153051.XfRo3uxJBCm-KzMeS7RtPCDMKTQKzzki3lV15CaNQjQ@z> (raw)
In-Reply-To: <20180425152657.GA5139@kroah.com>

On 04/25/2018 09:26 AM, Greg KH wrote:
> On Mon, Apr 23, 2018@09:39:02AM -0700, Kees Cook wrote:
>> On Mon, Apr 23, 2018@7:10 AM, Jeffrin Jose T <ahiliation@yahoo.co.in> wrote:
>>>  This is a patch to the tools/testing/selftests/firmware/fw_run_tests.sh
>>>  file which fixes a bug which calls to a wrong function name,which in turn
>>>  blocks the execution of certain tests.
>>>
>>> Signed-off-by: Jeffrin Jose T <jeffrin at rajagiritech.edu.in>
>>>
>>> ---
>>>  tools/testing/selftests/firmware/fw_run_tests.sh | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/tools/testing/selftests/firmware/fw_run_tests.sh b/tools/testing/selftests/firmware/fw_run_tests.sh
>>> index 06d638e9dc62..cffdd4eb0a57 100755
>>> --- a/tools/testing/selftests/firmware/fw_run_tests.sh
>>> +++ b/tools/testing/selftests/firmware/fw_run_tests.sh
>>> @@ -66,5 +66,5 @@ if [ -f $FW_FORCE_SYSFS_FALLBACK ]; then
>>>         run_test_config_0003
>>>  else
>>>         echo "Running basic kernel configuration, working with your config"
>>> -       run_test
>>> +       run_tests
>>>  fi
>>
>> I find it confusing that run_tests() uses $1 and $2 but later ignores
>> them unless -f $FW_FORCE_SYSFS_FALLBACK, which is checked at both the
>> top level and in proc_set_*_fallback()... I'd expected the test to
>> happen only in run_tests() and have it removed from from
>> proc_set_*_fallback().
>>
>> Regardless, the above patch is correct to run the tests. :)
> 
> Thanks, I'll go queue this up.
> 
> greg k-h
> 

Thanks. This probably has dependency on firmware tree.

Acked-by: Shuah Khan (Samsung OSG) <shuah at kernel.org>

-- Shuah
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Shuah Khan <shuah@kernel.org>
To: Greg KH <gregkh@linuxfoundation.org>, Kees Cook <keescook@chromium.org>
Cc: Jeffrin Jose T <ahiliation@yahoo.co.in>,
	"Luis R. Rodriguez" <mcgrof@kernel.org>,
	"open list:KERNEL SELFTEST FRAMEWORK"
	<linux-kselftest@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Jeffrin Jose T <jeffrin@rajagiritech.edu.in>,
	Shuah Khan <shuah@kernel.org>
Subject: Re: [PATCH] selftests:firmware: fixes a call to a wrong function name
Date: Wed, 25 Apr 2018 09:30:51 -0600	[thread overview]
Message-ID: <ad2a60e7-d8a1-fe6b-e3c4-bdb71060245e@kernel.org> (raw)
In-Reply-To: <20180425152657.GA5139@kroah.com>

On 04/25/2018 09:26 AM, Greg KH wrote:
> On Mon, Apr 23, 2018 at 09:39:02AM -0700, Kees Cook wrote:
>> On Mon, Apr 23, 2018 at 7:10 AM, Jeffrin Jose T <ahiliation@yahoo.co.in> wrote:
>>>  This is a patch to the tools/testing/selftests/firmware/fw_run_tests.sh
>>>  file which fixes a bug which calls to a wrong function name,which in turn
>>>  blocks the execution of certain tests.
>>>
>>> Signed-off-by: Jeffrin Jose T <jeffrin@rajagiritech.edu.in>
>>>
>>> ---
>>>  tools/testing/selftests/firmware/fw_run_tests.sh | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/tools/testing/selftests/firmware/fw_run_tests.sh b/tools/testing/selftests/firmware/fw_run_tests.sh
>>> index 06d638e9dc62..cffdd4eb0a57 100755
>>> --- a/tools/testing/selftests/firmware/fw_run_tests.sh
>>> +++ b/tools/testing/selftests/firmware/fw_run_tests.sh
>>> @@ -66,5 +66,5 @@ if [ -f $FW_FORCE_SYSFS_FALLBACK ]; then
>>>         run_test_config_0003
>>>  else
>>>         echo "Running basic kernel configuration, working with your config"
>>> -       run_test
>>> +       run_tests
>>>  fi
>>
>> I find it confusing that run_tests() uses $1 and $2 but later ignores
>> them unless -f $FW_FORCE_SYSFS_FALLBACK, which is checked at both the
>> top level and in proc_set_*_fallback()... I'd expected the test to
>> happen only in run_tests() and have it removed from from
>> proc_set_*_fallback().
>>
>> Regardless, the above patch is correct to run the tests. :)
> 
> Thanks, I'll go queue this up.
> 
> greg k-h
> 

Thanks. This probably has dependency on firmware tree.

Acked-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>

-- Shuah

  reply	other threads:[~2018-04-25 15:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-23 14:10 [PATCH] selftests:firmware: fixes a call to a wrong function name Jeffrin Jose T
2018-04-23 16:39 ` keescook
2018-04-23 16:39   ` Kees Cook
2018-04-23 16:39   ` Kees Cook
2018-04-25 15:26   ` gregkh
2018-04-25 15:26     ` Greg KH
2018-04-25 15:26     ` Greg KH
2018-04-25 15:30     ` shuah [this message]
2018-04-25 15:30       ` Shuah Khan
2018-04-25 15:30       ` Shuah Khan

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=ad2a60e7-d8a1-fe6b-e3c4-bdb71060245e@kernel.org \
    --to=unknown@example.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.