From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 985F4145B1C for ; Thu, 11 Apr 2024 09:40:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712828435; cv=none; b=q/fny/coj12yuqEsmQGGfIsVbEFg3lv1CpdFeDX4YCWLn2guzJdYmzVHl0vKyrFodGVVG3MeDg9FOGQS1hjFg8IBCnBYWxcAvT89K3+1QVP71Tx8NZ41vq+SYnL63y78DR0Oy9vSxt81m3/8q4toBL8FrCuWns9w7WdrYhNnuYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712828435; c=relaxed/simple; bh=azO9wtV6llgdxAslyD4HARSVVta3ZzPnL/RhPI/orH0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nBMIYUpRJl25bPz+k+MW2ds20v7Y5rK09fqJkAcBiZ9UgVtK35fKXkHNnd+P2houhHEIu+lXpuJ75UcRzp3qlBtlfBiFBdHF63rNF7DomLVObm7fi49pvZ4J6nSS03DcuAZaFl9wePIaAGuZg/QzGwaCGeSJC8ArdwkLIcsCoGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OEM8gLYe; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OEM8gLYe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712828432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EmraJ1/O9LsKt0hu6c7bP8/lU6CtsirLWmswTT7M3Eg=; b=OEM8gLYe+rXyN35Wq7J9SRnyY6ikgqIt/8PzR5UN4rFM3xHP493Av9JPxYjDm76ug2Xp4b rEquT7yXnL5WgeQ3gzFwkiziH6YtkNBsWpbmIui/BewJPZjg3eBOtzGG86r+MJOqsUlFFc p9TEwB8aFCuVuApmREmW5Lz64eP0mlM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-407-NDfhiVXhNJqRSFUu2Uapog-1; Thu, 11 Apr 2024 05:40:27 -0400 X-MC-Unique: NDfhiVXhNJqRSFUu2Uapog-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3909C104456D; Thu, 11 Apr 2024 09:40:26 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.225.235]) by smtp.corp.redhat.com (Postfix) with SMTP id 83B30C28102; Thu, 11 Apr 2024 09:40:22 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 11 Apr 2024 11:39:00 +0200 (CEST) Date: Thu, 11 Apr 2024 11:38:51 +0200 From: Oleg Nesterov To: John Stultz Cc: LKML , Shuah Khan , Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Stephen Boyd , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andrew Morton , Edward Liaw , Carlos Llamas , kernel-team@android.com, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 1/3] selftests: timers: Fix posix_timers ksft_print_msg warning Message-ID: <20240411093851.GB5494@redhat.com> References: <20240410232637.4135564-1-jstultz@google.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240410232637.4135564-1-jstultz@google.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 On 04/10, John Stultz wrote: > > After commit 6d029c25b71f ("selftests/timers/posix_timers: > Reimplement check_timer_distribution()") I started seeing the > following warning building with an older gcc: > > posix_timers.c:250:2: warning: format not a string literal and no format arguments [-Wformat-security] > 250 | ksft_print_msg(errmsg); > | ^~~~~~~~~~~~~~ ... > - ksft_print_msg(errmsg); > + ksft_print_msg("%s", errmsg); > return -1; Thanks, Oleg.