mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-22 06:04:15 -04:00
eth: fbnic: make fbnic_fw_log_write() parameter const
Make the log message parameter const, it's not modified and this lets us pass in strings which are const for the caller. Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20250916231420.1693955-2-kuba@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
18cfe3c1a1
commit
e6c8ab0a11
@@ -72,7 +72,7 @@ void fbnic_fw_log_free(struct fbnic_dev *fbd)
|
||||
}
|
||||
|
||||
int fbnic_fw_log_write(struct fbnic_dev *fbd, u64 index, u32 timestamp,
|
||||
char *msg)
|
||||
const char *msg)
|
||||
{
|
||||
struct fbnic_fw_log_entry *entry, *head, *tail, *next;
|
||||
struct fbnic_fw_log *log = &fbd->fw_log;
|
||||
|
||||
@@ -41,5 +41,5 @@ void fbnic_fw_log_disable(struct fbnic_dev *fbd);
|
||||
int fbnic_fw_log_init(struct fbnic_dev *fbd);
|
||||
void fbnic_fw_log_free(struct fbnic_dev *fbd);
|
||||
int fbnic_fw_log_write(struct fbnic_dev *fbd, u64 index, u32 timestamp,
|
||||
char *msg);
|
||||
const char *msg);
|
||||
#endif /* _FBNIC_FW_LOG_H_ */
|
||||
|
||||
Reference in New Issue
Block a user