#!/bin/sh # common_tests - Shell script commonly used by pstore test scripts # # Copyright (C) Hitachi Ltd., 2015 # Written by Hiraku Toyooka # # Released under the terms of the GPL v2. # Utilities errexit() { # message echo "Error: $1" 1>&2 exit 1 } absdir() { # file_path (cd `dirname $1`; pwd) } show_result() { # result_value if [ $1 -eq 0 ]; then prlog "ok" else prlog "FAIL" rc=1 fi } check_files_exist() { # type of pstorefs file if [ -e ${1}-${backend}-0 ]; then prlog "ok" for f in `ls ${1}-${backend}-*`; do prlog -e "\t${f}" done else prlog "FAIL" rc=1 fi } operate_files() { # tested value, files, operation if [ $1 -eq 0 ]; then prlog for f in $2; do prlog -ne "\t${f} ... " # execute operation $3 $f show_result $? done else prlog " ... FAIL" rc=1 fi } # Parameters TEST_STRING_PATTERN="Testing pstore: uuid=" UUID=`cat /proc/sys/kernel/random/uuid` TOP_DIR=`absdir $0` LOG_DIR=$TOP_DIR/logs/`date +%Y%m%d-%H%M%S`_${UUID}/ REBOOT_FLAG=$TOP_DIR/reboot_flag # Preparing logs LOG_FILE=$LOG_DIR/`basename $0`.log mkdir -p $LOG_DIR || errexit "Failed to make a log directory: $LOG_DIR" date > $LOG_FILE prlog() { # messages /bin/echo "$@" | tee -a $LOG_FILE } # Starting tests rc=0 prlog "=== Pstore unit tests (`basename $0`) ===" prlog "UUID="$UUID prlog -n "Checking pstore backend is registered ... " backend=`cat /sys/module/pstore/parameters/backend` show_result $? prlog -e "\tbackend=${backend}" prlog -e "\tcmdline=`cat /proc/cmdline`" if [ $rc -ne 0 ]; then exit 1 fi te-remove'>summaryrefslogtreecommitdiff
path: root/sound/soc/blackfin/bf5xx-i2s.c
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2017-01-15 20:15:00 +0200
committerDoug Ledford <dledford@redhat.com>2017-01-27 14:29:04 -0500
commitb4cfe3971f6eab542dd7ecc398bfa1aeec889934 (patch)
treec7ad49d05da0535170c8e7710cd44ae1cecc271f /sound/soc/blackfin/bf5xx-i2s.c
parent2d4b21e0a2913612274a69a3ba1bfee4cffc6e77 (diff)
RDMA/cma: Fix unknown symbol when CONFIG_IPV6 is not enabled
If IPV6 has not been enabled in the underlying kernel, we must avoid calling IPV6 procedures in rdma_cm.ko. This requires using "IS_ENABLED(CONFIG_IPV6)" in "if" statements surrounding any code which calls external IPV6 procedures. In the instance fixed here, procedure cma_bind_addr() called ipv6_addr_type() -- which resulted in calling external procedure __ipv6_addr_type(). Fixes: 6c26a77124ff ("RDMA/cma: fix IPv6 address resolution") Cc: <stable@vger.kernel.org> # v4.2+ Cc: Spencer Baugh <sbaugh@catern.com> Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Reviewed-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'sound/soc/blackfin/bf5xx-i2s.c')