Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp757068rdb; Mon, 29 Jan 2024 18:32:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IErYRgvNu97RkS3LJdb+a5JuGP65vRCKQoUrOMe91f8jkCyHD42kozii1nlpHdusNTGKX3I X-Received: by 2002:a05:6358:d049:b0:175:76bd:2c36 with SMTP id jb9-20020a056358d04900b0017576bd2c36mr6399678rwb.37.1706581953613; Mon, 29 Jan 2024 18:32:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706581953; cv=pass; d=google.com; s=arc-20160816; b=xJARzkTXzEZhT96H88adeejiJz/e7b/80Yhg9wovHY3VoRmVw2R1cjfIJMB9PhVokK suhXCEdzFuDvgKHB1/LBDiBcYCUTkKKaxek6/GEU+y66vYzD0/m68lAyjvhDgDlS8R5c Bx11yxx5MZxL5ZSvaJ+O4FoeopiXsqpXqgZhVSSyVk2MlgaKQnfN9QWDf1s6ilMN6s6g ycIHueRdnba1/sn8JQtoL7CiRhcgcIjo4o/b6CAHFQZ2nOp053qud/Ybh88I5CQK3f+D nXm/n1iQlCC0VedWSefQm7vCsiPkUqMsnEorzbhzULO4TSov6DQOLvWhiLiO115Ajb1V KZeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yqWSbwF5NH44g18kVWwJLR6zAlw8G2QsBTkijrmQatg=; fh=cs1r7UeIB/7P/5orvPochNrCqxdQgKU3KiIReM8VxQg=; b=CVefOKDyvEMtIgAXBkPGoCIeDYToQNFw/y4c78HwANaLxd7C4vJQMLd15w5OVdI40R KrgKolmLqewQazPTOp6c9603TkBYnCa6pHq4ASR083Bh8DrvTBJWRK2glMgiWzZBjPMI 6ewFVSh/TyV8/dyPOhtnIyPkFWXD4SzdD8kqc7QpSaI7E1v5+95IXVC4bJwtl4ZaclFt wF8zqShMfqch7B9+zGqj1peOlyApokdWlj248cW2nQxz3QMJwF7QxPATsyGJ7gEx3xud 0X1pDIZeCJ7dfr61AYqjFYYBYFJ2pMLupsh6o4m8Tv/KD8i6GNV52ob2SLg8JM/f+z1a hMqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=EPY0zTNl; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-43828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m3-20020a633f03000000b005cd89d9fae3si6555168pga.634.2024.01.29.18.32.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 18:32:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=EPY0zTNl; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-43828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 051E728ADD1 for ; Tue, 30 Jan 2024 02:30:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35F83383B8; Tue, 30 Jan 2024 02:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="EPY0zTNl" Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCE9536AF0; Tue, 30 Jan 2024 02:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.177.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581674; cv=none; b=BrT89KI2HaCWuXbEp6+Ogv4UvwxkZ1Ycc7l6gYILwuFv+AhaEwi0wMrfWE2soXUc/9YDZrZRygGI6d5PF4cocD16LearPR5Jg/CMzfRNHVzCMLDiDmFpj3TE7mfwRwwaihTkGxE9dk4xBOjnUhANqsX35RyUVRaEl7SCSzQ3mjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581674; c=relaxed/simple; bh=biDR4WVh8XwgitufaXUjQcfAIksXStyHX6/Ssx8yLmM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uTtf/LRf3ZDtRWSTU9AfEg5yzROZK7P11KoAwYver6w4G50Um5fec7kOL63kN79fy8S/azzGk9v0R0dsVrNAFIMYsLfNPi4OGsM7MpXfpmH6xbqyMzVLapYTgIuwdhX3XjP28/4XstvogX4cRQbSIDfzrMWSIjqYGErLOiYpmfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=EPY0zTNl; arc=none smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40TJi2N1017505; Tue, 30 Jan 2024 02:27:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2023-11-20; bh=yqWSbwF5NH44g18kVWwJLR6zAlw8G2QsBTkijrmQatg=; b=EPY0zTNlaC6RdOAGidWVfc/lvITKjkb0sa1LGnTqi27IQGOzP/p10mcYInB2g9apZmdd z5AsgaXZHReJeVe0neuVnPsqe9QTWivYRmftlXrKTwKIm1j2dETxEVBGMJA635uY/dIL jbOOxl59akhzW9b5UoNlMec81/HPwvgTwbHXZxwIYcBHEZGghKu52YMeC8rqO4QDkVCT LLOB8J4FP597TLt+cOEF/1z5VEyiK7GJst/mOJbt5xmw0XiMKvDVnhfhQWUzYnlHAr2Y 5hvEKQ/lJyywceMYEcoWYlS0yJwYRV+dINczlk5CKqcyX2HEWI2frC13XqDu3+YjPPy+ 1g== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vvseude7t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jan 2024 02:27:44 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 40U0evBW014627; Tue, 30 Jan 2024 02:27:43 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3vvr96g53t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jan 2024 02:27:43 +0000 Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 40U2RP02040916; Tue, 30 Jan 2024 02:27:42 GMT Received: from ca-mkp2.ca.oracle.com.com (mpeterse-ol9.allregionaliads.osdevelopmeniad.oraclevcn.com [100.100.251.135]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3vvr96g4y7-12; Tue, 30 Jan 2024 02:27:42 +0000 From: "Martin K. Petersen" To: "James E . J . Bottomley" , Petr Mladek Cc: "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Down , oe-kbuild-all@lists.linux.dev, kernel test robot Subject: Re: [PATCH] scsi: core: Safe warning about bad dev info string Date: Mon, 29 Jan 2024 21:27:08 -0500 Message-ID: <170657812665.784857.18111081210924770600.b4-ty@oracle.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240111162419.12406-1-pmladek@suse.com> References: <20240111162419.12406-1-pmladek@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-29_15,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 mlxlogscore=856 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401300015 X-Proofpoint-ORIG-GUID: SSQX7xMkesmg1gfh8kZFddCgohtmOVi4 X-Proofpoint-GUID: SSQX7xMkesmg1gfh8kZFddCgohtmOVi4 On Thu, 11 Jan 2024 17:24:19 +0100, Petr Mladek wrote: > Both "model" and "strflags" are passed to "%s" even when one or both > are NULL. > > It is safe because vsprintf() would detect the NULL pointer and print > "(null)". But it is a kernel-specific feature and compiler warns > about it: > > [...] Applied to 6.9/scsi-queue, thanks! [1/1] scsi: core: Safe warning about bad dev info string https://git.kernel.org/mkp/scsi/c/796cae1a79b1 -- Martin K. Petersen Oracle Linux Engineering